Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-2042

"oaconfig install" fails with "Job for nagios.service failed because start of the service was attempted too often."

    XMLWordPrintable

    Details

    • Story Points:
      5

      Description

      This can be observed on distributions that useĀ systemd for service management (e.g. EL7, Ubuntu Xenial). When running oaconfig install, the installation will abort with the following error message:

        File "/usr/share/openattic/systemd/procutils.py", line 116, in invoke}}
          raise SystemError("%s failed: %s" % (cmdline, procerr))}}
      SystemError: "systemctl" "reload-or-restart" "nagios" failed: Job for nagios.service failed because start of the service was attempted too often. See "systemctl status nagios.service" and "journalctl -xe" for details.
      To force a start use "systemctl reset-failed nagios.service" followed by "systemctl start nagios.service" again.
      

      This is due to the fact that the installation creates a number of Nagios configuration files and restarts Nagios in short succession to trigger a reload of the configuration:

      [root@centos7 ~]# grep "reload-or-restart" /var/log/openattic/openattic_systemd.log 
      2017-03-22 16:19:17,736 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:44,068 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:44,241 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:44,457 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:44,517 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:44,983 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:45,181 - INFO - service_command(nagios): invoking `systemctl reload-or-restart nagios`
      2017-03-22 16:19:45,212 - ERROR - > "systemctl" "reload-or-restart" "nagios"
      

      The workaround is to call systemctl reset-failed nagios.service; systemctl start nagios.service manually before running oaconfig install again, but it would of course be better if we would not be triggering this error at all.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            lgrimmer Grimmer, Lenz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: