Error upon uploading Interface to server

Forum Home Forums Understanding the Software Error upon uploading Interface to server

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #15233
    Sergei
    Participant

    Hi. 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?

    #15237
    Mikhail
    Moderator

    Hi,

    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.

    #15245
    Sergei
    Participant

    This is the error:
    error msg

    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 ---
    • This reply was modified 11 months, 3 weeks ago by Sergei.
    • This reply was modified 11 months, 3 weeks ago by Sergei.
    • This reply was modified 11 months, 3 weeks ago by Mikhail.
    #15248
    Sergei
    Participant

    https://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)

    • This reply was modified 11 months, 3 weeks ago by Sergei.
    • This reply was modified 11 months, 3 weeks ago by Sergei.
    • This reply was modified 11 months, 3 weeks ago by Mikhail.
    #15253
    Mikhail
    Moderator
    Scada.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.

    #15254
    Mikhail
    Moderator

    I suggest to upgrade to the version 6.

    #15257
    Sergei
    Participant

    I 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.
    #15259
    Mikhail
    Moderator

    While 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.
    #15260
    Mikhail
    Moderator

    To 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.

    #15262
    Mikhail
    Moderator

    Also check ScadaAgent.log for more details.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.