Cannot start services on Ubuntu 16

Forum Home Forums Installation Issues Cannot start services on Ubuntu 16

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6157
    Rico
    Participant

    I’ve downloaded RapidSCADA (scada_5.7.1_mono_en.zip) and installed it on Ubuntu 16 but cannot start ScadaServer, ScadaAgent and ScadaComm services.
    I can access the login page but attemps to log in result in “Server is unavailable.”!

    launching /opt/scada/scadastart.sh gives the following errors :
    # /opt/scada/scadastart.sh
    Starting Rapid SCADA…
    Job for scadaserver.service failed because the control process exited with error code. See “systemctl status scadaserver.service” and “journalctl -xe” for details.
    Job for scadacomm.service failed because the control process exited with error code. See “systemctl status scadacomm.service” and “journalctl -xe” for details.
    Job for scadaagent.service failed because the control process exited with error code. See “systemctl status scadaagent.service” and “journalctl -xe” for details.

    # journalctl -xe
    déc. 06 18:37:38 server01 systemd[1]: Failed to start scadacomm.service.
    — Subject: L’unité (unit) scadacomm.service a échoué
    — Defined-By: systemd
    — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

    — L’unité (unit) scadacomm.service a échoué, avec le résultat failed.
    déc. 06 18:37:38 server01 systemd[1]: scadacomm.service: Unit entered failed state.
    déc. 06 18:37:38 server01 systemd[1]: scadacomm.service: Failed with result ‘exit-code’.
    déc. 06 18:37:38 server01 sudo[6474]: pam_unix(sudo:session): session closed for user root
    déc. 06 18:37:38 server01 sudo[6511]: root : problem with defaults entries ; TTY=pts/0 ; PWD=/root ;
    déc. 06 18:37:38 server01 sudo[6511]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/sbin/service scadaagent start
    déc. 06 18:37:38 server01 sudo[6511]: pam_unix(sudo:session): session opened for user root by j12470(uid=0)
    déc. 06 18:37:39 server01 systemd[1]: Starting scadaagent.service…
    — Subject: L’unité (unit) scadaagent.service a commencé à démarrer
    — Defined-By: systemd
    — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

    — L’unité (unit) scadaagent.service a commencé à démarrer.
    déc. 06 18:37:39 server01 scadaagent[6542]: Unhandled Exception:
    déc. 06 18:37:39 server01 scadaagent[6542]: System.IO.FileNotFoundException: Could not load file or assembly ‘ScadaAgentNet, Version=5.
    déc. 06 18:37:39 server01 scadaagent[6542]: File name: ‘ScadaAgentNet, Version=5.0.2.0, Culture=neutral, PublicKeyToken=null’
    déc. 06 18:37:39 server01 scadaagent[6542]: [ERROR] FATAL UNHANDLED EXCEPTION: System.IO.FileNotFoundException: Could not load file or
    déc. 06 18:37:39 server01 scadaagent[6542]: File name: ‘ScadaAgentNet, Version=5.0.2.0, Culture=neutral, PublicKeyToken=null’
    déc. 06 18:37:39 server01 systemd[1]: scadaagent.service: Control process exited, code=exited status=1
    déc. 06 18:37:39 server01 systemd[1]: Failed to start scadaagent.service.
    — Subject: L’unité (unit) scadaagent.service a échoué
    — Defined-By: systemd
    — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel

    — L’unité (unit) scadaagent.service a échoué, avec le résultat failed.
    déc. 06 18:37:39 server01 systemd[1]: scadaagent.service: Unit entered failed state.
    déc. 06 18:37:39 server01 systemd[1]: scadaagent.service: Failed with result ‘exit-code’.
    déc. 06 18:37:39 server01 sudo[6511]: pam_unix(sudo:session): session closed for user root
    lines 2171-2203/2203 (END)

    It shows a System.IO.FileNotFoundException on ScadaAgentNet but ScadaAgentNet.dll exists !
    Creating a link in /opt/scada/ScadaAgent (ln -s ScadaAgentNet ScadaAgentNet.dll) does not solve the problem.

    Am I missing something ?

    #6167
    Mikhail
    Moderator

    Set the server folder as a current and run
    mono ScadaServerMono.exe
    What is the result?

    #6170
    Rico
    Participant

    server01:/opt/scada/ScadaServer# mono ScadaServerMono.exe
    Starting SCADA-Server…
    SCADA-Server is started
    Press ‘x’ or create ‘serverstop’ file to stop SCADA-Server

    I can now log in! Thanx.
    How can I check that all is OK ?

    • This reply was modified 4 years, 3 months ago by Rico.
    #6172
    Mikhail
    Moderator

    You started SCADA-Server from command line, but it should be started automatically as a daemon. Probably some installation steps failed and daemons are not registered properly.

    There are 3 daemons: Server, Communicator and Agent. You can find them in the appropriate folders. All of them should be started.

    The daemons write log files located in “Log” subfolders. You should check these files.

    #6178
    Rico
    Participant

    Thanx for these precisions.
    All is fine after server reboot !

    #6179
    Mikhail
    Moderator

    Good 🙂

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