NethServer Version: 7.9 Module: Zabbix (courtesy of mr markuz)
After the update to Zabbix 5.0.26, the service does not start; currently the server is fully updated (even with openjdk 1.8.0whatever)
zabbix-agent is disabled, zabbix-agent2 is enabled as service.
Scrubbing among log, i found this row zabbix-server.service: control process exited, code=exited status=1
I forgot: signal-event nethserver-zabbix-update didn’t change a thing
Edit: after stopping zabbix-agent2, i tried to start zabbix-server, than this appeared on the cockpit console echo '{"action":"start","name":"zabbix-server"}' | /usr/bin/setsid /usr/bin/sudo /usr/libexec/nethserver/api/system-services/update | jq
as a “collateral” of dns.service_action_error
Hope this helps… systemctl status zabbix-server -l
â—Ź zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: protocol) since Mon 2022-08-01 11:43:27 CEST; 4s ago
Process: 7167 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 21627 (code=exited, status=0/SUCCESS)
Aug 01 11:43:27 not.your.interest systemd[1]: Failed to start Zabbix Server.
Aug 01 11:43:27 not.your.interest systemd[1]: Unit zabbix-server.service entered failed state.
Aug 01 11:43:27 not.your.interest systemd[1]: zabbix-server.service failed.
And into /var/log/zabbix/zabbix_server i found a lot of
zabbix_server [24039]: cannot create PID file [/var/run/zabbix/zabbix_server.pid]: [2] No such file or directory
Directory /zabbix was missing from /var/run then i created it, without changing a thing.
systemctl start zabbix-server
Job for zabbix-server.service failed. See "systemctl status zabbix-server.service" and "journalctl -xe" for details.
Then I asked to the suggested commands
â—Ź zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: protocol) since Mon 2022-08-01 11:47:44 CEST; 1s ago
Process: 7858 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 21627 (code=exited, status=0/SUCCESS)
Aug 01 11:47:44 not.your.interest systemd[1]: Failed to start Zabbix Server.
Aug 01 11:47:44 not.your.interest systemd[1]: Unit zabbix-server.service entered failed state.
Aug 01 11:47:44 not.your.interest systemd[1]: zabbix-server.service failed.
and
journalctl -xe
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Aug 01 11:47:31 not.your.interest systemd[1]: Unit zabbix-server.service entered failed state.
Aug 01 11:47:31 not.your.interest systemd[1]: zabbix-server.service failed.
Aug 01 11:47:31 not.your.interest polkitd[883]: Unregistered Authentication Agent for unix-process:7810:15265171 (system bus name :1.332, object path /org/freedesktop/Polic
Aug 01 11:47:42 not.your.interest systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Aug 01 11:47:42 not.your.interest systemd[1]: Stopped Zabbix Server.
-- Subject: Unit zabbix-server.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has finished shutting down.
Aug 01 11:47:42 not.your.interest systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
Aug 01 11:47:44 not.your.interest systemd[1]: Can't open PID file /run/zabbix/zabbix_server.pid (yet?) after start: No such file or directory
Aug 01 11:47:44 not.your.interest systemd[1]: Failed to start Zabbix Server.
-- Subject: Unit zabbix-server.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has failed.
--
-- The result is failed.
Aug 01 11:47:44 not.your.interest systemd[1]: Unit zabbix-server.service entered failed state.
Aug 01 11:47:44 not.your.interest systemd[1]: zabbix-server.service failed.
Aug 01 11:47:54 not.your.interest systemd[1]: zabbix-server.service holdoff time over, scheduling restart.
Aug 01 11:47:54 not.your.interest systemd[1]: Stopped Zabbix Server.
-- Subject: Unit zabbix-server.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has finished shutting down.
Aug 01 11:47:54 not.your.interest systemd[1]: Starting Zabbix Server...
-- Subject: Unit zabbix-server.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit zabbix-server.service has begun starting up.
For my hiccup, this was the solution; the package zabbix-server-pgsql-5.0.26-1.el7.x86_64 was reinstalled after this command.
Credit due to @mrmarkuz for the troubleshooting and the correct hint for solving the problem.
(I also had to increase cache, but this was already covered here)