Can't open PID file /run/zabbix/zabbix_agentd.pid in Zabbix Proxy 7.0.26 LTS (SQLite) in Ubuntu 24.04 LTS noble

XMLWordPrintable

    • 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:

      https://repo.zabbix.com/zabbix/7.0/ubuntu/pool/main/z/zabbix/zabbix-proxy-sqlite3_7.0.26-2%2Bubuntu24.04_amd64.deb

      Steps to reproduce:

      1. Ubuntu Server 24.04 LTS (noble) (normal, not minimal)
      2. 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=
      3. sudo apt install zabbix-proxy-sqlite3 zabbix-sql-scripts
      4. 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:

      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?p=513702#post513702

      So, the systemd unit becomes this one:

      ```

      1. 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
      ```

            Assignee:
            Tymon Nowak
            Reporter:
            Valerio Bozzolan
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: