-
Problem report
-
Resolution: Fixed
-
Trivial
-
5.0.2
-
None
-
Centos 7
-
Sprint 67 (Aug 2020), Sprint 68 (Sep 2020)
-
0.125
Steps to reproduce:
- install zabbix-agent2 from Centos 7 repo: https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/
- enable zabbix-agent2.service
- start zabbix-agent2.service
Result:
See log file /var/log/messages
zabbix_agent2: 2020/08/12 11:24:25.287696 cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
zabbix_agent2: zabbix_agent2 [24141]: ERROR: cannot initialize logger: open /var/log/zabbix/zabbix_agent2.log: permission denied
systemd: zabbix-agent2.service: main process exited, code=exited, status=1/FAILURE
systemd: Unit zabbix-agent2.service entered failed state.
systemd: zabbix-agent2.service failed.
zabbix_agent2 fails to start because the zabbix user does not have access right to the log file
Expected:
the rpm package should create the log file /var/log/zabbix/zabbix_agent2.log
with the correct access permission/ownership
workaround: fix the ownership manually:
chown zabbix /var/log/zabbix/zabbix_agent2.log