Ad Widget

Collapse

Failed to start Zabbix Server - where's my /usr/sbin/zabbix_server?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • whisky17
    Junior Member
    • Dec 2017
    • 14

    #1

    Failed to start Zabbix Server - where's my /usr/sbin/zabbix_server?

    Hi,
    I can't get my zabbix Server running, even after upgrading from 5.2 to 5.4 it doesn't start.

    Code:
    user@myserver:~$ sudo systemctl status zabbix-server.service
    ● zabbix-server.service - Zabbix Server
    Loaded: loaded (/etc/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
    Active: activating (auto-restart) (Result: exit-code) since Sun 2021-05-23 08:26:29 CEST; 6s ago
    Process: 1531 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=203/EXEC)
    
    Mai 23 08:26:29 myserver systemd[1]: Starting Zabbix Server...
    Mai 23 08:26:29 myserver systemd[1]: zabbix-server.service: Control process exited, code=exited>
    Mai 23 08:26:29 myserver systemd[1]: zabbix-server.service: Failed with result 'exit-code'.
    Mai 23 08:26:29 myserver systemd[1]: Failed to start Zabbix Server.
    Mai 23 08:26:39 myserver systemd[1]: zabbix-server.service: Scheduled restart job, restart coun>
    Mai 23 08:26:39 myserver systemd[1]: Stopped Zabbix Server.
    Mai 23 08:26:39 myserver systemd[1]: Starting Zabbix Server...
    Mai 23 08:26:39 myserver systemd[1]: zabbix-server.service: Control process exited, code=exited>
    Mai 23 08:26:39 myserver systemd[1]: zabbix-server.service: Failed with result 'exit-code'.
    Mai 23 08:26:39 myserver systemd[1]: Failed to start Zabbix Server.

    Code:
    user@myserver:~$ sudo cat /etc/systemd/system/zabbix-server.service
    [Unit]
    Description=Zabbix Server
    After=syslog.target
    After=network.target
    After=mariadb.service
    
    [Service]
    Environment="CONFFILE=/etc/zabbix/zabbix_server.conf"
    EnvironmentFile=-/etc/default/zabbix-server
    Type=forking
    Restart=on-failure
    PIDFile=/run/zabbix/zabbix_server.pid
    KillMode=control-group
    ExecStart=/usr/sbin/zabbix_server -c $CONFFILE
    ExecStop=/bin/kill -SIGTERM $MAINPID
    RestartSec=10s
    #TimeoutSec=infinity
    TimeoutSec=900
    
    [Install]
    WantedBy=multi-user.target


    Code:
    user@myserver:~$ ls /usr/sbin/z*
    /usr/sbin/zabbix_agent2 /usr/sbin/zerofree /usr/sbin/zic
    It seems that the reference to /usr/sbin/ is not correct. But which is my right path? I'm using ubuntu 20.04
    Any idea? My /var/log/zabbix/zabbix_server.log is absolutely empty.
    Thanks!
    Whisky17
  • knez
    Member
    • Dec 2019
    • 44

    #2
    same case... after upgrading ubuntu from 18.04 to 20.04... did You find a solution?

    Comment

    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #3
      Originally posted by knez
      same case... after upgrading ubuntu from 18.04 to 20.04...
      In case it helps, I'll share my way of working with Zabbix when upgrading the underlaying Debian version (which I believe goes pretty much the same in Ubuntu).

      - First I upgrade Zabbix to the latest supported version on the current Debian version, and verify that everything works, database is fine, no errors in the logs, etc.
      - Before the Debian upgrade I remove (apt uninstall) the currently installed Zabbix packages, just to be sure there won't be any conflict with the previous Zabbix binaries and the new OS libraries and such. Note that this does not remove the configuration files, so they will still be there waiting for further actions. (Backups required in any case when upgrading, right?)
      - I upgrade Debian, using the officially documented process.
      - After the successful Debian upgrade I install the same Zabbix version that I previously used (but using the zabbix-release package for the new Debian version, of course), and verify that everything works correctly, without errors in the logs, etc.
      - Then I can do any additional Zabbix upgrade if needed.

      Markku

      Comment

      • knez
        Member
        • Dec 2019
        • 44

        #4
        Thanks, Markku.

        I restore my Zabbix VM from daily backup.

        Then I upgraded (first) Zabbix, (then) MySql and and everything looks fine.
        There was an issue with upgrading MySql from 5.7. to 8.0. I upgraded it from http://repo.mysql.com/ with
        Code:
        apt-get ----allow-insecure-repositories
        .

        After that I upgraded Ubuntu from 18.04 to 20.04. Now, I have this issue:

        Code:
        master@zbx-dc-dev:~$ service zabbix-server status
        ● zabbix-server.service - Zabbix Server
        Loaded: loaded (/etc/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
        Active: activating (start) since Sat 2022-06-11 22:36:13 CEST; 4ms ago
        Cntrl PID: 4975
        Tasks: 1 (limit: 9443)
        Memory: 128.0K
        CGroup: /system.slice/zabbix-server.service
        
        Jun 11 22:36:13 zbx-dc-dev systemd[1]: Stopped Zabbix Server.
        Jun 11 22:36:13 zbx-dc-dev systemd[1]: Starting Zabbix Server...
        [COLOR=#e74c3c]Jun 11 22:36:13 zbx-dc-dev systemd[4975]: zabbix-server.service: Failed to execute command: No such file or directory
        Jun 11 22:36:13 zbx-dc-dev systemd[4975]: zabbix-server.service: Failed at step EXEC spawning /usr/sbin/zabbix_server: No such file or directory
        Jun 11 22:36:13 zbx-dc-dev systemd[1]: zabbix-server.service: Control process exited, code=exited, status=203/EXEC
        Jun 11 22:36:13 zbx-dc-dev systemd[1]: zabbix-server.service: Failed with result 'exit-code'.[/COLOR]
        Jun 11 22:36:13 zbx-dc-dev systemd[1]: Failed to start Zabbix Server.
        No ideas, what to do next...
        .

        Comment

        • Markku
          Senior Member
          Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
          • Sep 2018
          • 1781

          #5
          Uninstall all zabbix packages, and then install Zabbix server again with the usual instructions from https://www.zabbix.com/download

          Markku

          Comment

          • knez
            Member
            • Dec 2019
            • 44

            #6
            Thanks, Markku.

            after all, this works.

            Comment

            Working...