← Back to team overview

nagios-charmers team mailing list archive

[Bug 1819537] Re: config-changed hook fails with enable_livestatus enabled

 

** Changed in: charm-nagios
     Assignee: (unassigned) => Xav Paice (xavpaice)

-- 
You received this bug notification because you are a member of Nagios
Charm developers, which is subscribed to Nagios Charm.
https://bugs.launchpad.net/bugs/1819537

Title:
  config-changed hook fails with enable_livestatus enabled

Status in Nagios Charm:
  Fix Committed

Bug description:
  http://paste.ubuntu.com/p/qQn2CZSPvY/

  2019-03-11 20:20:47 INFO juju-log Fixing perms on the socket
  2019-03-11 20:20:47 DEBUG config-changed Traceback (most recent call last):
  2019-03-11 20:20:47 DEBUG config-changed   File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/config-changed", line 350, in <module>
  2019-03-11 20:20:47 DEBUG config-changed     enable_livestatus_config()
  2019-03-11 20:20:47 DEBUG config-changed   File "/var/lib/juju/agents/unit-nagios-0/charm/hooks/config-changed", line 106, in enable_livestatus_config
  2019-03-11 20:20:47 DEBUG config-changed     os.chown(livestatus_path, uid, gid)
  2019-03-11 20:20:47 DEBUG config-changed OSError: [Errno 2] No such file or directory: '/var/lib/nagios3/livestatus/socket'

  In enable_livestatus_config, it is creating this directory and then
  trying to chown livestatus_path, but it doesn't look like anything has
  made a socket there. I don't know what is supposed to.

  This results in a hook failure. The application eventually gets to
  Ready, but this is enough to trip juju wait.

To manage notifications about this bug go to:
https://bugs.launchpad.net/charm-nagios/+bug/1819537/+subscriptions


References