-
Type:
Incident report
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: 7.0.26
-
Component/s: Proxy (P)
-
None
-
Environment:Ubuntu Server 24.04 LTS (noble)
(Premise: I'm experienced Linux and Zabbix sysadmin)
I think the official Zabbix package 7.0.26 LTS has an incorrect systemd unit for Zabbix Proxy.
So, this package seems problematic:
Steps to reproduce:
- Ubuntu Server 24.04 LTS (noble) (normal, not minimal)
- Install Zabbix 7.0 LTS package https://www.zabbix.com/download?zabbix=7.0&os_distribution=ubuntu&os_vers%20ion=24.04&components=proxy&db=sqlite3&ws=
- sudo apt install zabbix-proxy-sqlite3 zabbix-sql-scripts
- sudo systemctl start zabbix-proxy
Result:
systemd[1]: zabbix-agent.service: Can't open PID file /run/zabbix/zabbix_agentd.pid (yet?) after start: No such file or directory
systemd[1]: zabbix-proxy.service: Failed with result 'protocol'.
**
Expected:
The systemd service works.
Workaround:
Replace the zabbix-proxy.service with the exact content of this forum thread:
So, the systemd unit becomes this one:
```
- https://www.zabbix.com/forum/zabbix-troubleshooting-and-problems/493087-zabbix-agent-on-ubuntu-24-04-can-t-open-pid-file-run-zabbix-zabbix_agentd-pid
[Unit]
Description=Zabbix Proxy (fixed)
Documentation=man:zabbix_proxy
After=syslog.target
After=network.target
[Service]
EnvironmentFile=-/etc/default/zabbix-proxy
Type=simple
ExecStart=/usr/sbin/zabbix_proxy --foreground
Restart=on-abnormal
RestartSec=10s
User=zabbix
Group=zabbix
TimeoutSec=infinity
LimitNOFILE=65536:1048576
[Install]
WantedBy=multi-user.target
```