Forum Home › Forums › Understanding the Software › Error upon uploading Interface to server
- This topic has 9 replies, 2 voices, and was last updated 11 months, 3 weeks ago by
Mikhail.
-
AuthorPosts
-
August 26, 2024 at 5:35 pm #15233
Sergei
ParticipantHi. I have a remote Scada Linux machine (R-Pi 4) which is deployed through Agent from a centralized Windows machine Scada (both are RS v5).
Recently I encountered a “cannot pack files” error message in the Windows machine Scada Administrator upon uploading just the Interface. It wasn’t uploaded correctly and the machine was left with an incomplete and non-working interface (login screen and side menu for the deployed scada appears on screen, but the contents do not (warning about a “no permissions” error).
Is there a limit on the size of the packed interface taht can be handled or transmitted by the Agent?
August 27, 2024 at 9:54 am #15237Mikhail
ModeratorHi,
Please copy the full error message to this topic. Check C:\Users\_user_\AppData\Local\ScadaAdmin\Log\ScadaAdmin.log for additional error details.
There is no size limits. May be some required folders are missing.
August 27, 2024 at 6:25 pm #15245Sergei
ParticipantThis is the error:
ScadaAdmin.err
Server stack trace: at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.WebRequestOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.IO.BufferedStream.Write(Byte[] array, Int32 offset, Int32 count) at System.Xml.XmlStreamNodeWriter.FlushBuffer() at System.Xml.XmlUTF8NodeWriter.InternalWriteBase64Text(Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlUTF8NodeWriter.WriteBase64Text(Byte[] trailBytes, Int32 trailByteCount, Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlBaseWriter.WriteBase64(Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlDictionaryWriter.WriteValue(IStreamProvider value) at System.ServiceModel.Dispatcher.StreamFormatter.Serialize(XmlDictionaryWriter writer, Object[] parameters, Object returnValue) at System.ServiceModel.Dispatcher.OperationFormatter.SerializeBodyContents(XmlDictionaryWriter writer, MessageVersion version, Object[] parameters, Object returnValue, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.OperationFormatterMessage.OperationFormatterBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer) at System.ServiceModel.Channels.BodyWriterMessage.OnWriteBodyContents(XmlDictionaryWriter writer) at System.ServiceModel.Channels.Message.OnWriteMessage(XmlDictionaryWriter writer) at System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.WriteMessage(Message message, Stream stream) at System.ServiceModel.Channels.HttpOutput.WriteStreamedMessage(TimeSpan timeout) at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) at System.ServiceModel.Channels.HttpChannelFactory` 1.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Scada.Agent.Connector.AgentSvcRef.AgentSvc.UploadConfig(ConfigUploadMessage request) at Scada.Agent.Connector.AgentSvcRef.AgentSvcClient.Scada.Agent.Connector.AgentSvcRef.AgentSvc.UploadConfig(ConfigUploadMessage request) at Scada.Agent.Connector.AgentWcfClient.UploadConfig(String srcFileName, ConfigOptions configOptions) at Scada.Admin.App.Forms.Deployment.FrmUploadConfig.UploadConfig(DeploymentProfile profile) 2024-08-22 02:45:43 <WIN-4UEM89ID0AB><Administrator><EXC> Error uploading configuration: System.ServiceModel.CommunicationException: An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel. ---> System.Net.WebException: The request was aborted: The request was canceled. at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.ServiceModel.Channels.BytesReadPositionStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.WebRequestOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count) --- End of inner exception stack trace --- Server stack trace: at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.WebRequestOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.IO.BufferedStream.Write(Byte[] array, Int32 offset, Int32 count) at System.Xml.XmlStreamNodeWriter.FlushBuffer() at System.Xml.XmlUTF8NodeWriter.InternalWriteBase64Text(Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlUTF8NodeWriter.WriteBase64Text(Byte[] trailBytes, Int32 trailByteCount, Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlBaseWriter.WriteBase64(Byte[] buffer, Int32 offset, Int32 count) at System.Xml.XmlDictionaryWriter.WriteValue(IStreamProvider value) at System.ServiceModel.Dispatcher.StreamFormatter.Serialize(XmlDictionaryWriter writer, Object[] parameters, Object returnValue) at System.ServiceModel.Dispatcher.OperationFormatter.SerializeBodyContents(XmlDictionaryWriter writer, MessageVersion version, Object[] parameters, Object returnValue, Boolean isRequest) at System.ServiceModel.Dispatcher.OperationFormatter.OperationFormatterMessage.OperationFormatterBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer) at System.ServiceModel.Channels.BodyWriterMessage.OnWriteBodyContents(XmlDictionaryWriter writer) at System.ServiceModel.Channels.Message.OnWriteMessage(XmlDictionaryWriter writer) at System.ServiceModel.Channels.TextMessageEncoderFactory.TextMessageEncoder.WriteMessage(Message message, Stream stream) at System.ServiceModel.Channels.HttpOutput.WriteStreamedMessage(TimeSpan timeout) at System.ServiceModel.Channels.HttpOutput.Send(TimeSpan timeout) at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.SendRequest(Message message, TimeSpan timeout) at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout) at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message) Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at Scada.Agent.Connector.AgentSvcRef.AgentSvc.UploadConfig(ConfigUploadMessage request) at Scada.Agent.Connector.AgentSvcRef.AgentSvcClient.Scada.Agent.Connector.AgentSvcRef.AgentSvc.UploadConfig(ConfigUploadMessage request) at Scada.Agent.Connector.AgentWcfClient.UploadConfig(String srcFileName, ConfigOptions configOptions) at Scada.Admin.App.Forms.Deployment.FrmUploadConfig.UploadConfig(DeploymentProfile profile) 2024-08-22 12:42:40 <WIN-4UEM89ID0AB><Administrator><EXC> Error uploading configuration: Scada.ScadaException: Unable to unpack the configuration archive. at Scada.Agent.Connector.AgentWcfClient.UploadConfig(String srcFileName, ConfigOptions configOptions) at Scada.Admin.App.Forms.Deployment.FrmUploadConfig.UploadConfig(DeploymentProfile profile) 2024-08-22 12:43:06 <WIN-4UEM89ID0AB><Administrator><EXC> Error uploading configuration: Scada.ScadaException: Unable to unpack the configuration archive. at Scada.Agent.Connector.AgentWcfClient.UploadConfig(String srcFileName, ConfigOptions configOptions) at Scada.Admin.App.Forms.Deployment.FrmUploadConfig.UploadConfig(DeploymentProfile profile) 2024-08-22 12:45:39 <WIN-4UEM89ID0AB><Administrator><EXC> Error uploading configuration: Scada.ScadaException: Unable to unpack the configuration archive. at Scada.Agent.Connector.AgentWcfClient.UploadConfig(String srcFileName, ConfigOptions configOptions) at Scada.Admin.App.Forms.Deployment.FrmUploadConfig.UploadConfig(DeploymentProfile profile) 2024-08-23 19:08:30 <WIN-4UEM89ID0AB><Administrator><EXC> Error uploading configuration: System.ServiceModel.CommunicationException: An error (The request was aborted: The request was canceled.) occurred while transmitting data over the HTTP channel. ---> System.Net.WebException: The request was aborted: The request was canceled. at System.Net.ConnectStream.InternalWrite(Boolean async, Byte[] buffer, Int32 offset, Int32 size, AsyncCallback callback, Object state) at System.Net.ConnectStream.Write(Byte[] buffer, Int32 offset, Int32 size) at System.ServiceModel.Channels.BytesReadPositionStream.Write(Byte[] buffer, Int32 offset, Int32 count) at System.ServiceModel.Channels.HttpOutput.WebRequestHttpOutput.WebRequestOutputStream.Write(Byte[] buffer, Int32 offset, Int32 count) --- End of inner exception stack trace ---
August 27, 2024 at 6:32 pm #15248Sergei
Participanthttps://ibb.co/rQY0gY4 Error message
(note: Couldn’t edit the message to fix image link. It simply isn’t shown or displayed. Here it goes.. again)
August 28, 2024 at 10:33 am #15253Mikhail
ModeratorScada.ScadaException: Unable to unpack the configuration archive.
This error can occur when you upload the configuration locally on the same computer. It is generated by the Agent service.
Check, may be some directories do not exist.August 28, 2024 at 10:34 am #15254Mikhail
ModeratorI suggest to upgrade to the version 6.
August 28, 2024 at 3:47 pm #15257Sergei
ParticipantI suggest to upgrade to the version 6.
I’m afraid it’s not possible without extensive work and testing. These are production servers and I understand migration to v6 isn’t straightforward, especially in the case of remote SCADA’s connected to the central server.
We need to keep v5 as the production version for the time being.
Besides this, what aspects related these issues does v6 solve? Or is it more of a support issue?
-
This reply was modified 11 months, 3 weeks ago by
Sergei.
August 29, 2024 at 11:34 am #15259Mikhail
ModeratorWhile upgrading to version 6 takes some effort, it’s worth it. The v5 is frozen since 2022. The good fact is that v5 and v6 can work in parallel on the same computer, so you can keep v5 running as long as needed.
-
This reply was modified 11 months, 3 weeks ago by
Mikhail.
August 29, 2024 at 11:35 am #15260Mikhail
ModeratorTo fix the current error, you should check if all configuration directories exist or not. May be some Rapid SCADA apps are not installed. You can just create configuration directories for them.
August 29, 2024 at 11:36 am #15262Mikhail
ModeratorAlso check ScadaAgent.log for more details.
-
This reply was modified 11 months, 3 weeks ago by
-
AuthorPosts
- You must be logged in to reply to this topic.