Ad Widget

Collapse

zabbix-server start failed

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • XHT
    Junior Member
    • Oct 2022
    • 6

    #1

    zabbix-server start failed

    After installing the zabbix service and configuring the related environment, I encountered a problem when I started the zabbix service. I could not start the zabbix service normally.
    # systemctl status zabbix-server.service
    ● zabbix-server.service - Zabbix Server
    Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; disabled; vendor preset: disabled)
    Active: activating (auto-restart) (Result: protocol) since Tue 2022-10-11 15:34:53 CST; 4s ago
    Process: 33259 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)

    10月 11 15:34:53 xht.localdomain systemd[1]: Failed to start Zabbix Server.

    ....

    10月 11 15:37:08 xht.localdomain systemd[1]: zabbix-server.service: Can't open PID file /run/zabbix/zabbix_server.pid (yet?) after start: No such file or directory
    10月 11 15:37:08 xht.localdomain systemd[1]: zabbix-server.service: Failed with result 'protocol'.
    -- Subject: Unit failed
    -- Defined-By: systemd
    -- Support: https://access.redhat.com/support
    --
    -- The unit zabbix-server.service has entered the 'failed' state with result 'protocol'.

    ​my zabbix is 6.2.3:
    [root@xht zabbix]# zabbix_server -V
    zabbix_server (Zabbix) 6.2.3


    I did not find zabbix_server.pid in /run/zabbix/;

    So how do I solve this problem?
  • Answer selected by XHT at 14-10-2022, 11:14.
    Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    So you have an incorrect database version, yes.

    Markku

    Comment


    • XHT
      XHT commented
      Editing a comment
      all right,I have solved this problem,thanks
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #2
    What do

    journalctl -eu zabbix-server
    cat /var/log/zabbix/zabbix_server.log


    tell you?

    Markku

    Comment


    • XHT
      XHT commented
      Editing a comment
      I get the same output, like this:
      # systemctl restart zabbix-server.service
      Job for zabbix-server.service failed because the service did not take the steps required by its unit configuration.
      See "systemctl status zabbix-server.service" and "journalctl -xe" for details.

      -----------------------------------
      # journalctl -eu zabbix-server
      10月 12 09:04:55 xht.localdomain systemd[1]: zabbix-server.service: Failed with result 'protocol'.
      10月 12 09:04:55 xht.localdomain systemd[1]: Failed to start Zabbix Server.
      10月 12 09:05:05 xht.localdomain systemd[1]: zabbix-server.service: Service RestartSec=10s expired, scheduling restart.
      10月 12 09:05:05 xht.localdomain systemd[1]: zabbix-server.service: Scheduled restart job, restart counter is at 5222.
      10月 12 09:05:05 xht.localdomain systemd[1]: Stopped Zabbix Server.
      10月 12 09:05:05 xht.localdomain systemd[1]: Starting Zabbix Server...
      10月 12 09:05:07 xht.localdomain systemd[1]: zabbix-server.service: Can't open PID file /run/zabbix/zabbix_server.pid (yet?) after start: No such file or directory
      10月 12 09:05:07 xht.localdomain systemd[1]: zabbix-server.service: Failed with result 'protocol'.
      10月 12 09:05:07 xht.localdomain systemd[1]: Failed to start Zabbix Server.
      10月 12 09:05:17 xht.localdomain systemd[1]: zabbix-server.service: Service RestartSec=10s expired, scheduling restart.
      10月 12 09:05:17 xht.localdomain systemd[1]: zabbix-server.service: Scheduled restart job, restart counter is at 5223.
      10月 12 09:05:17 xht.localdomain systemd[1]: Stopped Zabbix Server.
      10月 12 09:05:17 xht.localdomain systemd[1]: Starting Zabbix Server...
      10月 12 09:05:19 xht.localdomain systemd[1]: zabbix-server.service: Can't open PID file /run/zabbix/zabbix_server.pid (yet?) after start: No such file or directory
      10月 12 09:05:19 xht.localdomain systemd[1]: zabbix-server.service: Failed with result 'protocol'.
      10月 12 09:05:19 xht.localdomain systemd[1]: Failed to start Zabbix Server.

      --------------------------------------
      Also, I see the following information in /var/log/zabbix/zabbix_server.log. Does this mean that my MariaDB database is not adapted?

      #tail /var/log/zabbix/zabbix_server.log
      104379:20221012:091157.395 Starting Zabbix Server. Zabbix 6.2.3 (revision 98ee88fc19d).
      104379:20221012:091157.396 ****** Enabled features ******
      104379:20221012:091157.396 SNMP monitoring: YES
      104379:20221012:091157.396 IPMI monitoring: YES
      104379:20221012:091157.396 Web monitoring: YES
      104379:20221012:091157.396 VMware monitoring: YES
      104379:20221012:091157.396 SMTP authentication: YES
      104379:20221012:091157.396 ODBC: YES
      104379:20221012:091157.396 SSH support: YES
      104379:20221012:091157.396 IPv6 support: YES
      104379:20221012:091157.396 TLS support: YES
      104379:20221012:091157.396 ******************************
      104379:20221012:091157.396 using configuration file: /etc/zabbix/zabbix_server.conf
      104379:20221012:091157.401
      104379:20221012:091157.401 Unable to start Zabbix server due to unsupported MariaDB database version (10.03.28).
      104379:20221012:091157.401 Must be at least (10.05.00).
      104379:20221012:091157.401 Use of supported database version is highly recommended.
      104379:20221012:091157.401 Override by setting AllowUnsupportedDBVersions=1 in Zabbix server configuration file at your own risk.
      104379:20221012:091157.401
      Last edited by XHT; 12-10-2022, 03:16.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1782

    #3
    So you have an incorrect database version, yes.

    Markku

    Comment


    • XHT
      XHT commented
      Editing a comment
      all right,I have solved this problem,thanks
Working...