Error Uploading Configuration

Forum Home Forums Uncategorized Issues Error Uploading Configuration

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #10341
    tom040264
    Participant

    Hi guys,

    from time to time I got an error during the uploading the configuration:

    “Error Uploading Configuration
    The operation has timed out.”

    It takes a minute and then appears this message. When it works, it takes a couple of seconds.

    It runs on a raspberry pi.

    What could be the reason?

    Regards
    T.

    • This topic was modified 1 week, 3 days ago by Mikhail.
    #10342
    Mikhail
    Moderator

    Hi,

    The ScadaAgent service works on Raspberry, keeps the TCP port 10002 open, and waits for connections.
    Probably, when you get an error, the ScadaAgent service is not available.
    If the problem repeats, check the Agent’s log file in the directory /opt/scada/ScadaAgent/Log

    #10343
    tom040264
    Participant

    Hello Mikhail,

    This is a part of the logfile after an error. A minute later worked everything without any changes in the meantime. Is this a problem of raspberry?

    Regards
    T.

    ********************************

    2022-06-14 09:54:16 <raspberrypi><root><ACT> Session with ID -3803335764762174100 created
    2022-06-14 09:54:16 <raspberrypi><root><ACT> User ScadaAdmin connected to Default
    2022-06-14 09:54:17 <raspberrypi><root><EXC> Error controlling service:
    System.ComponentModel.Win32Exception (0x80004005): ApplicationName=’/opt/scada/ScadaServer/svc_restart.sh’, CommandLine=”, CurrentDirectory=”, Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at Scada.Agent.Engine.ScadaInstance.ControlService (Scada.Agent.ServiceApp serviceApp, Scada.Agent.ServiceCommand command) [0x00039] in <d8148ef5f8474bc49c943117e9a7575a>:0
    2022-06-14 09:54:17 <raspberrypi><root><EXC> Error controlling service:
    System.ComponentModel.Win32Exception (0x80004005): ApplicationName=’/opt/scada/ScadaComm/svc_restart.sh’, CommandLine=”, CurrentDirectory=”, Native error= Access denied
    at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x0029f] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at System.Diagnostics.Process.Start () [0x0003a] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
    at System.Diagnostics.Process.Start (System.Diagnostics.ProcessStartInfo startInfo) [0x0001b] in <9c6e2cb7ddd8473fa420642ddcf7ce48>:0
    at Scada.Agent.Engine.ScadaInstance.ControlService (Scada.Agent.ServiceApp serviceApp, Scada.Agent.ServiceCommand command) [0x00039] in <d8148ef5f8474bc49c943117e9a7575a>:0
    ****************************

    #10347
    Mikhail
    Moderator

    Hello,

    Check Linux attributes of the file /opt/scada/ScadaServer/svc_restart.sh
    Is it executable?

    #10348
    Mikhail
    Moderator

    Is there 100% correlation between long waiting for response in Administrator and the “Error controlling service” message?

    #10349
    tom040264
    Participant

    1. /opt/scada/ScadaServer/svc_restart.sh is not executable.

    2. Yes, there is 100% correlation between long waiting for response in Administrator and the “Error controlling service” message.

    #10350
    Mikhail
    Moderator

    All *.sh files inside the scada directory must be executable.
    You could run make_executable.sh to make them executable.

    #10353
    tom040264
    Participant

    I did it but nothing changed.
    It doesn’t matter, it’s just a matter of patience. Sometimes it takes a few minutes and sometimes seconds.

    Thank you Mikhail

    #10354
    Mikhail
    Moderator

    Could you provide a screenshot of *.sh file attributes?
    It would be better to solve it.

    #10356
    tom040264
    Participant

    Could you try please to open this link:

    https://drive.google.com/file/d/19GyHLXJTDAB_COHXx_9WjG5SU20Wv-FY/view?usp=sharing

    I am not shure whether it will work.

    #10359
    Mikhail
    Moderator

    All *.sh files should be executable. Not only svc_restart.sh
    I suggest to run make_executable.sh

    #10363
    tom040264
    Participant

    I did it and will report accordingly.

    #10369
    tom040264
    Participant

    Hi Mikhail,

    Nothing has changed. It can happen that everything works 5 times in a row and then suddenly everything gets stuck again. Then I have to start uploading 2-3 times and wait for the timeout until it works again. I haven’t noticed any regularity. Maybe it’s my Raspberry and I should get a new device.

    Let’s close this topic. Thanks for the support.

    Regards
    T.

    #10374
    Mikhail
    Moderator

    Let’s close this topic.

    OK.
    The issue is weird. In version 6 we’ve made uploading configuration more clear, and I expect that such problem will not appear.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Error Uploading Configuration’ is closed to new replies.