Uploaded image for project: 'Help-Desk'
  1. Help-Desk
  2. HELP-16155

[fiware-stackoverflow] Cannot start Cygnus with 2 instances as a service

    Details

      Description

      Created question in FIWARE Q/A platform on 16-09-2019 at 02:09
      Please, ANSWER this question AT https://stackoverflow.com/questions/57949092/cannot-start-cygnus-with-2-instances-as-a-service

      Question:
      Cannot start Cygnus with 2 instances as a service

      Description:
      I have configured 2 cygnus intances with their agents but when I start cygnus as a service I get the following error:

      sudo service cygnus start
      Starting cygnus (via systemctl): Job for cygnus.service failed because the control process exited with error code. See "systemctl status cygnus.service" and "journalctl -xe" for details.
      [FAILED]

      Also when I run the "systemctl status cygnus.service" command I get this output:

      [root@orion conf]# systemctl status cygnus.service
      ● cygnus.service - SYSV: cygnus
      Loaded: loaded (/etc/rc.d/init.d/cygnus; bad; vendor preset: disabled)
      Active: failed (Result: exit-code) since Mon 2019-09-16 00:01:02 UTC; 18s ago
      Docs: man:systemd-sysv-generator(8)
      Process: 14719 ExecStart=/etc/rc.d/init.d/cygnus start (code=exited, status=2)

      Sep 16 00:01:00 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_1.pid’: No such file or directory
      Sep 16 00:01:00 orion.novalocal su[14766]: (to cygnus) root on none
      Sep 16 00:01:00 orion.novalocal cygnus[14719]: Starting Cygnus test... bash: /var/run/cygnus/cygnus_test.pid: No such file or directory
      Sep 16 00:01:02 orion.novalocal cygnus[14719]: cat: /var/run/cygnus/cygnus_test.pid: No such file or directory
      Sep 16 00:01:02 orion.novalocal cygnus[14719]: [FAILED]
      Sep 16 00:01:02 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_test.pid’: No such file or directory
      Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service: control process exited, code=exited status=2
      Sep 16 00:01:02 orion.novalocal systemd[1]: Failed to start SYSV: cygnus.
      Sep 16 00:01:02 orion.novalocal systemd[1]: Unit cygnus.service entered failed state.
      Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service failed.

      There seems to be problem with the pid files at /var/run/cygnus/ path.
      Also these are the 2 configured instances:
      cygnus_instance_test.conf:

      CYGNUS_USER=cygnus
      CONFIG_FOLDER=/usr/cygnus/conf
      CONFIG_FILE=/usr/cygnus/conf/agent_test.conf
      AGENT_NAME=cygnus-ngsi
      LOGFILE_NAME=cygnus.log
      ADMIN_PORT=8081
      POLLING_INTERVAL=30

      cygnus_instance_1.conf:

      CYGNUS_USER=cygnus
      CONFIG_FOLDER=/usr/cygnus/conf
      CONFIG_FILE=/usr/cygnus/conf/agent_1.conf
      AGENT_NAME=cygnus-ngsi
      LOGFILE_NAME=cygnus.log
      ADMIN_PORT=8081
      POLLING_INTERVAL=30

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        79d 7h 45m 1 José Ignacio Carretero Guarde 04/Dec/19 9:51 AM
        In Progress In Progress Answered Answered
        2s 1 José Ignacio Carretero Guarde 04/Dec/19 9:51 AM
        Answered Answered Closed Closed
        2s 1 José Ignacio Carretero Guarde 04/Dec/19 9:51 AM
        fla Fernando Lopez made changes -
        Fix Version/s 2021 [ 12600 ]
        jicg José Ignacio Carretero Guarde made changes -
        Resolution Done [ 10000 ]
        Status Answered [ 10104 ] Closed [ 6 ]
        jicg José Ignacio Carretero Guarde made changes -
        Status In Progress [ 3 ] Answered [ 10104 ]
        jicg José Ignacio Carretero Guarde made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        jicg José Ignacio Carretero Guarde made changes -
        Priority Major [ 3 ] Minor [ 4 ]
        fla Fernando Lopez made changes -
        Assignee José Ignacio Carretero Guarde [ jicg ]
        fla Fernando Lopez made changes -
        HD-Enabler Unknown [ 10910 ] Cygnus [ 11304 ]
        Description
        Created question in FIWARE Q/A platform on 16-09-2019 at 02:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57949092/cannot-start-cygnus-with-2-instances-as-a-service


        +Question:+
        Cannot start Cygnus with 2 instances as a service

        +Description:+
        I have configured 2 cygnus intances with their agents but when I start cygnus as a service I get the following error:

        sudo service cygnus start
        Starting cygnus (via systemctl): Job for cygnus.service failed because the control process exited with error code. See "systemctl status cygnus.service" and "journalctl -xe" for details.
                                                                   [FAILED]


        Also when I run the "systemctl status cygnus.service" command I get this output:

        [root@orion conf]# systemctl status cygnus.service
        ● cygnus.service - SYSV: cygnus
           Loaded: loaded (/etc/rc.d/init.d/cygnus; bad; vendor preset: disabled)
           Active: failed (Result: exit-code) since Mon 2019-09-16 00:01:02 UTC; 18s ago
             Docs: man:systemd-sysv-generator(8)
          Process: 14719 ExecStart=/etc/rc.d/init.d/cygnus start (code=exited, status=2)

        Sep 16 00:01:00 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_1.pid’: No such file or directory
        Sep 16 00:01:00 orion.novalocal su[14766]: (to cygnus) root on none
        Sep 16 00:01:00 orion.novalocal cygnus[14719]: Starting Cygnus test... bash: /var/run/cygnus/cygnus_test.pid: No such file or directory
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: cat: /var/run/cygnus/cygnus_test.pid: No such file or directory
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: [FAILED]
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_test.pid’: No such file or directory
        Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service: control process exited, code=exited status=2
        Sep 16 00:01:02 orion.novalocal systemd[1]: Failed to start SYSV: cygnus.
        Sep 16 00:01:02 orion.novalocal systemd[1]: Unit cygnus.service entered failed state.
        Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service failed.


        There seems to be problem with the pid files at /var/run/cygnus/ path.
        Also these are the 2 configured instances:
        cygnus_instance_test.conf:

        CYGNUS_USER=cygnus
        CONFIG_FOLDER=/usr/cygnus/conf
        CONFIG_FILE=/usr/cygnus/conf/agent_test.conf
        AGENT_NAME=cygnus-ngsi
        LOGFILE_NAME=cygnus.log
        ADMIN_PORT=8081
        POLLING_INTERVAL=30


        cygnus_instance_1.conf:

        CYGNUS_USER=cygnus
        CONFIG_FOLDER=/usr/cygnus/conf
        CONFIG_FILE=/usr/cygnus/conf/agent_1.conf
        AGENT_NAME=cygnus-ngsi
        LOGFILE_NAME=cygnus.log
        ADMIN_PORT=8081
        POLLING_INTERVAL=30

        Created question in FIWARE Q/A platform on 16-09-2019 at 02:09
        {color: red}Please, ANSWER this question AT{color} https://stackoverflow.com/questions/57949092/cannot-start-cygnus-with-2-instances-as-a-service


        +Question:+
        Cannot start Cygnus with 2 instances as a service

        +Description:+
        I have configured 2 cygnus intances with their agents but when I start cygnus as a service I get the following error:

        sudo service cygnus start
        Starting cygnus (via systemctl): Job for cygnus.service failed because the control process exited with error code. See "systemctl status cygnus.service" and "journalctl -xe" for details.
                                                                   [FAILED]


        Also when I run the "systemctl status cygnus.service" command I get this output:

        [root@orion conf]# systemctl status cygnus.service
        ● cygnus.service - SYSV: cygnus
           Loaded: loaded (/etc/rc.d/init.d/cygnus; bad; vendor preset: disabled)
           Active: failed (Result: exit-code) since Mon 2019-09-16 00:01:02 UTC; 18s ago
             Docs: man:systemd-sysv-generator(8)
          Process: 14719 ExecStart=/etc/rc.d/init.d/cygnus start (code=exited, status=2)

        Sep 16 00:01:00 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_1.pid’: No such file or directory
        Sep 16 00:01:00 orion.novalocal su[14766]: (to cygnus) root on none
        Sep 16 00:01:00 orion.novalocal cygnus[14719]: Starting Cygnus test... bash: /var/run/cygnus/cygnus_test.pid: No such file or directory
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: cat: /var/run/cygnus/cygnus_test.pid: No such file or directory
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: [FAILED]
        Sep 16 00:01:02 orion.novalocal cygnus[14719]: rm: cannot remove ‘/var/run/cygnus/cygnus_test.pid’: No such file or directory
        Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service: control process exited, code=exited status=2
        Sep 16 00:01:02 orion.novalocal systemd[1]: Failed to start SYSV: cygnus.
        Sep 16 00:01:02 orion.novalocal systemd[1]: Unit cygnus.service entered failed state.
        Sep 16 00:01:02 orion.novalocal systemd[1]: cygnus.service failed.


        There seems to be problem with the pid files at /var/run/cygnus/ path.
        Also these are the 2 configured instances:
        cygnus_instance_test.conf:

        CYGNUS_USER=cygnus
        CONFIG_FOLDER=/usr/cygnus/conf
        CONFIG_FILE=/usr/cygnus/conf/agent_test.conf
        AGENT_NAME=cygnus-ngsi
        LOGFILE_NAME=cygnus.log
        ADMIN_PORT=8081
        POLLING_INTERVAL=30


        cygnus_instance_1.conf:

        CYGNUS_USER=cygnus
        CONFIG_FOLDER=/usr/cygnus/conf
        CONFIG_FILE=/usr/cygnus/conf/agent_1.conf
        AGENT_NAME=cygnus-ngsi
        LOGFILE_NAME=cygnus.log
        ADMIN_PORT=8081
        POLLING_INTERVAL=30

        backlogmanager Backlog Manager made changes -
        HD-Enabler Unknown [ 10910 ]
        HD-Chapter Unknown [ 10845 ]
        HD-Node Unknown [ 10852 ]
        backlogmanager Backlog Manager made changes -
        Field Original Value New Value
        Component/s FIWARE-TECH-HELP [ 10278 ]
        Hide
        backlogmanager Backlog Manager added a comment -

        2019-09-16 03:06|CREATED monitor | # answers= 0, accepted answer= False

        Show
        backlogmanager Backlog Manager added a comment - 2019-09-16 03:06|CREATED monitor | # answers= 0, accepted answer= False
        backlogmanager Backlog Manager created issue -

          People

          • Assignee:
            jicg José Ignacio Carretero Guarde
            Reporter:
            backlogmanager Backlog Manager
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: