Ad Widget

Collapse

Zabbix-server won't start on Fedora 43

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Agooba
    Junior Member
    • Nov 2025
    • 2

    #1

    Zabbix-server won't start on Fedora 43

    Installed on Fedora 43 server as per the instructions. Attempted to start the zabbix-server service and it fails. The only change I made to /etc/zabbix_server.conf was to put the database password in. Any ideas on how to fix this?

    Output from zabbix_server command:


    Code:
    $ sudo zabbix_server -c /etc/zabbix_server.conf 
    zabbix_server [2627]: cannot open "/var/log/zabbixsrv/zabbix_server.log": [13] Permission denied

    Permissions on zabbix_server.log:

    Code:
    $ ls -la /var/log/zabbixsrv/zabbix_server.log
    -rw-rw-r--. 1 zabbixsrv zabbixsrv 80379 Nov 21 03:37 /var/log/zabbixsrv/zabbix_server.log
  • Andrejs Poddubņaks
    Junior Member
    • Nov 2025
    • 18

    #2
    On Fedora, the zabbix-server service runs under the zabbix user (this can be seen in user= in /usr/lib/systemd/system/zabbix-server.service).And your log file belongs to the zabbixsrv user/group:
    Code:
    -rw-rw-r--. 1 zabbixsrv zabbixsrv ... /var/log/zabbixsrv/zabbix_server.log
    When the daemon drops privileges to zabbix, it simply does not have the rights to open this file and then you have error message -> [13] Permission denied.

    How to solve this problem:
    1. In path /etc/zabbix_server.conf use this:
    Code:
    LogFile=/var/log/zabbix/zabbix_server.log
    2. Ensure that the directory exists and belongs to the zabbix user:
    Code:
    sudo mkdir -p /var/log/zabbix
    sudo chown zabbix:zabbix /var/log/zabbix
    3. Restart service:
    Code:
    sudo systemctl restart zabbix-server
    I hope it will help you, good luck!

    Comment

    • Agooba
      Junior Member
      • Nov 2025
      • 2

      #3
      Thank you for your help, that indeed solved that issue but I'm now running into another permissions issue:

      Code:
      zabbix_server[26013]: zabbix_server [26013]: cannot create PID file [/run/zabbixsrv/zabbix_server.pid]: [13] Permission denied
      Unfortunately, setting zabbix as the owner of that file and even the directory itself doesn't help this time:

      Code:
      rw-r--r--. 1 zabbix zabbix 0 Nov 24 05:26 zabbix_server.pid
      SELinux doesn't appear to be the issue here either, switching it off has no impact. It's strange that I'm getting these kinds of errors on a fresh install, is there something I might have missed from the installation guide that's causing all of this? I am using the official guide and packages from Zabbix on a fresh Fedora Core 43 server.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4806

        #4
        If you use all official stuff, then where does this zabbixsr user come from?

        you server conf file also contains pid file location ..
        ### Option: PidFile
        # Name of PID file.
        #
        # Mandatory: no
        # Default:

        set it to something like /run/zabbix/zabbix_server.log (or any other place, where user zabbix has write permissions)

        Comment

        Working...