GNU bug report logs -
#37631
service zabbix-server (and zabbix-agent) fails starting (cannot run as root!)
Previous Next
Reported by: Giovanni Biscuolo <g <at> xelera.eu>
Date: Sat, 5 Oct 2019 10:15:01 UTC
Severity: normal
Done: Giovanni Biscuolo <g <at> xelera.eu>
Bug is archived. No further changes may be made.
Full log
Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):
Giovanni Biscuolo <g <at> xelera.eu> writes:
> executive summary: do we really need to start zabbix_server in
> foreground mode?
executive answer: I don't know **but** this is not the cause of my issue
:)
> --8<---------------cut here---------------start------------->8---
[...]
> (service zabbix-server-service-type
> (zabbix-server-configuration
> (include-files '("/root/secrets/zabbix-server-dbpass"))
> (log-type "file")))
ouch!... looking at the console (it's a remote VM so I usually connect
via ssh only, but today I also connected via SPICE):
--8<---------------cut here---------------start------------->8---
zabbix_server [1942]: /root/secrets/zabbix-server-dbpass: [13] Permission denied
--8<---------------cut here---------------end--------------->8---
unfortunately shepherd did not catch this error (due to foreground
mode?) in syslog :-(
I just had to adjust the permissions to allow zabbix (I allowed the
zabbix group to traverse /root/secrets and read the file) to read the
included file
this now works with both zabbix 4.2.0 and zabbix 4.2.7
[...]
Thanks! Gio'
--
Giovanni Biscuolo
Xelera IT Infrastructures
This bug report was last modified 5 years and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.