Ad Widget

Collapse

Zabbix server version showing as 4.0.4 after installing 5.2 fresh from scratch

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jinu
    Junior Member
    • Apr 2021
    • 7

    #1

    Zabbix server version showing as 4.0.4 after installing 5.2 fresh from scratch

    Hi Folks

    I just finished a fresh install of Zabbix server 5.2 on Raspberry Pi4. After the complete install the server does not start. When i checked the logs I see a version mismatch between Zabbix server and database. Database is at 5.2 but server is showing 4.0.4. PLase see below the output where i tried to upgrade but still version showing as 4.0.4. I feel the error is because of this

    N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://repo.zabbix.com/zabbix/5.2/raspbian buster InRelease' doesn't support architecture 'arm64'

    Does this mean that Raspbian Pi4 is not supported ?

    Code:
    pi@raspberrypi:~ $ wget https://repo.zabbix.com/zabbix/5.2/raspbian/pool/main/z/zabbix-release/zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
    --2021-04-09 23:53:10-- https://repo.zabbix.com/zabbix/5.2/raspbian/pool/main/z/zabbix-release/zabbix-release_5.2-1+debian10_all.deb
    Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::2062:d001
    Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3468 (3.4K) [application/octet-stream]
    Saving to: ‘zabbix-release_5.2-1+debian10_all.deb’
    
    zabbix-release_5.2-1+debian10_all.deb 100%[================================================== ================================================== ====================================>] 3.39K --.-KB/s in 0s
    
    2021-04-09 23:53:11 (41.9 MB/s) - ‘zabbix-release_5.2-1+debian10_all.deb’ saved [3468/3468]
    
    pi@raspberrypi:~ $ sudo dpkg -i zabbix-release_5.2-1+debian$(cut -d"." -f1 /etc/debian_version)_all.deb
    (Reading database ... 92306 files and directories currently installed.)
    Preparing to unpack zabbix-release_5.2-1+debian10_all.deb ...
    Unpacking zabbix-release (1:5.2-1+debian10) over (1:5.2-1+debian10) ...
    Setting up zabbix-release (1:5.2-1+debian10) ...
    Installing new version of config file /etc/apt/sources.list.d/zabbix.list ...
    pi@raspberrypi:~ $ sudo apt update
    Hit:1 http://www.giteduberger.fr rpimonitor/ InRelease
    Hit:2 http://archive.raspberrypi.org/debian buster InRelease
    Hit:3 http://deb.debian.org/debian buster InRelease
    Hit:4 http://deb.debian.org/debian-security buster/updates InRelease
    Hit:5 http://deb.debian.org/debian buster-updates InRelease
    Get:6 http://repo.zabbix.com/zabbix/5.2/raspbian buster InRelease [4,931 B]
    Get:7 http://repo.zabbix.com/zabbix/5.2/raspbian buster/main Sources [1,196 B]
    Get:8 http://repo.zabbix.com/zabbix/5.2/raspbian buster/main armhf Packages [4,791 B]
    Fetched 10.9 kB in 2s (5,399 B/s)
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    All packages are up to date.
    N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'http://repo.zabbix.com/zabbix/5.2/raspbian buster InRelease' doesn't support architecture 'arm64'
    pi@raspberrypi:~ $ sudo apt -y install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-agent
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following additional packages will be installed:
    fping libapache2-mod-php libapache2-mod-php7.3 libiksemel3 liblinear3 liblua5.3-0 libodbc1 libopenipmi0 libpcap0.8 nmap nmap-common php-bcmath php-gd php-ldap php-mbstring php-mysql php7.3-bcmath php7.3-gd php7.3-ldap php7.3-mbstring
    php7.3-mysql snmpd traceroute
    Suggested packages:
    php-pear liblinear-tools liblinear-dev libmyodbc odbc-postgresql tdsodbc unixodbc-bin ncat ndiff zenmap snmptrapd zabbix-nginx-conf snmp-mibs-downloader
    The following NEW packages will be installed:
    fping libapache2-mod-php libapache2-mod-php7.3 libiksemel3 liblinear3 liblua5.3-0 libodbc1 libopenipmi0 libpcap0.8 nmap nmap-common php-bcmath php-gd php-ldap php-mbstring php-mysql php7.3-bcmath php7.3-gd php7.3-ldap php7.3-mbstring
    php7.3-mysql snmpd traceroute zabbix-agent zabbix-apache-conf zabbix-frontend-php zabbix-server-mysql
    0 upgraded, 27 newly installed, 0 to remove and 0 not upgraded.
    Need to get 14.6 MB/14.7 MB of archives.
    After this operation, 62.2 MB of additional disk space will be used.
    Get:1 http://repo.zabbix.com/zabbix/5.2/raspbian buster/main armhf zabbix-frontend-php all 1:5.2.6-1+debian10 [2,843 kB]
    Get:2 http://deb.debian.org/debian buster/main arm64 traceroute arm64 1:2.1.0-2 [51.6 kB]
    Get:3 http://deb.debian.org/debian buster/main arm64 libapache2-mod-php7.3 arm64 7.3.27-1~deb10u1 [1,222 kB]
    Get:4 http://deb.debian.org/debian buster/main arm64 libapache2-mod-php all 2:7.3+69 [6,120 B]
    Get:5 http://deb.debian.org/debian buster/main arm64 libiksemel3 arm64 1.4-3+b1 [25.0 kB]
    Get:6 http://deb.debian.org/debian buster/main arm64 liblinear3 arm64 2.1.0+dfsg-4 [36.3 kB]
    Get:7 http://deb.debian.org/debian buster/main arm64 liblua5.3-0 arm64 5.3.3-1.1 [110 kB]
    Get:8 http://deb.debian.org/debian buster/main arm64 libodbc1 arm64 2.3.6-0.1 [187 kB]
    Get:9 http://deb.debian.org/debian buster/main arm64 libopenipmi0 arm64 2.0.25-2.1 [507 kB]
    Get:10 http://deb.debian.org/debian buster/main arm64 libpcap0.8 arm64 1.8.1-6 [126 kB]
    Get:11 http://deb.debian.org/debian buster/main arm64 nmap-common all 7.70+dfsg1-6+deb10u1 [3,898 kB]
    Get:12 http://deb.debian.org/debian buster/main arm64 nmap arm64 7.70+dfsg1-6+deb10u1 [1,844 kB]
    Get:13 http://deb.debian.org/debian buster/main arm64 php7.3-bcmath arm64 7.3.27-1~deb10u1 [14.0 kB]
    Get:14 http://deb.debian.org/debian buster/main arm64 php-bcmath all 2:7.3+69 [5,996 B]
    Get:15 http://deb.debian.org/debian buster/main arm64 php7.3-gd arm64 7.3.27-1~deb10u1 [26.3 kB]
    Get:16 http://deb.debian.org/debian buster/main arm64 php-gd all 2:7.3+69 [5,984 B]
    Get:17 http://deb.debian.org/debian buster/main arm64 php7.3-ldap arm64 7.3.27-1~deb10u1 [27.9 kB]
    Get:18 http://deb.debian.org/debian buster/main arm64 php-ldap all 2:7.3+69 [5,988 B]
    Get:19 http://deb.debian.org/debian buster/main arm64 php7.3-mbstring arm64 7.3.27-1~deb10u1 [504 kB]
    Get:20 http://deb.debian.org/debian buster/main arm64 php-mbstring all 2:7.3+69 [5,996 B]
    Get:21 http://deb.debian.org/debian buster/main arm64 php7.3-mysql arm64 7.3.27-1~deb10u1 [111 kB]
    Get:22 http://deb.debian.org/debian buster/main arm64 php-mysql all 2:7.3+69 [5,992 B]
    Get:23 http://deb.debian.org/debian buster/main arm64 snmpd arm64 5.7.3+dfsg-5+deb10u2 [55.7 kB]
    Get:24 http://deb.debian.org/debian buster/main arm64 zabbix-agent arm64 1:4.0.4+dfsg-1 [471 kB]
    Get:25 http://deb.debian.org/debian buster/main arm64 zabbix-server-mysql arm64 1:4.0.4+dfsg-1 [2,197 kB]
    Get:26 http://repo.zabbix.com/zabbix/5.2/raspbian buster/main armhf zabbix-apache-conf all 1:5.2.6-1+debian10 [324 kB]
    Fetched 14.6 MB in 2s (6,000 kB/s)
    Preconfiguring packages ...
    Selecting previously unselected package traceroute.
    (Reading database ... 92306 files and directories currently installed.)
    Preparing to unpack .../00-traceroute_1%3a2.1.0-2_arm64.deb ...
    Unpacking traceroute (1:2.1.0-2) ...
    Selecting previously unselected package fping.
    Preparing to unpack .../01-fping_4.2-1_arm64.deb ...
    Unpacking fping (4.2-1) ...
    Selecting previously unselected package libapache2-mod-php7.3.
    Preparing to unpack .../02-libapache2-mod-php7.3_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking libapache2-mod-php7.3 (7.3.27-1~deb10u1) ...
    Selecting previously unselected package libapache2-mod-php.
    Preparing to unpack .../03-libapache2-mod-php_2%3a7.3+69_all.deb ...
    Unpacking libapache2-mod-php (2:7.3+69) ...
    Selecting previously unselected package libiksemel3:arm64.
    Preparing to unpack .../04-libiksemel3_1.4-3+b1_arm64.deb ...
    Unpacking libiksemel3:arm64 (1.4-3+b1) ...
    Selecting previously unselected package liblinear3:arm64.
    Preparing to unpack .../05-liblinear3_2.1.0+dfsg-4_arm64.deb ...
    Unpacking liblinear3:arm64 (2.1.0+dfsg-4) ...
    Selecting previously unselected package liblua5.3-0:arm64.
    Preparing to unpack .../06-liblua5.3-0_5.3.3-1.1_arm64.deb ...
    Unpacking liblua5.3-0:arm64 (5.3.3-1.1) ...
    Selecting previously unselected package libodbc1:arm64.
    Preparing to unpack .../07-libodbc1_2.3.6-0.1_arm64.deb ...
    Unpacking libodbc1:arm64 (2.3.6-0.1) ...
    Selecting previously unselected package libopenipmi0.
    Preparing to unpack .../08-libopenipmi0_2.0.25-2.1_arm64.deb ...
    Unpacking libopenipmi0 (2.0.25-2.1) ...
    Selecting previously unselected package libpcap0.8:arm64.
    Preparing to unpack .../09-libpcap0.8_1.8.1-6_arm64.deb ...
    Unpacking libpcap0.8:arm64 (1.8.1-6) ...
    Selecting previously unselected package nmap-common.
    Preparing to unpack .../10-nmap-common_7.70+dfsg1-6+deb10u1_all.deb ...
    Unpacking nmap-common (7.70+dfsg1-6+deb10u1) ...
    Selecting previously unselected package nmap.
    Preparing to unpack .../11-nmap_7.70+dfsg1-6+deb10u1_arm64.deb ...
    Unpacking nmap (7.70+dfsg1-6+deb10u1) ...
    Selecting previously unselected package php7.3-bcmath.
    Preparing to unpack .../12-php7.3-bcmath_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking php7.3-bcmath (7.3.27-1~deb10u1) ...
    Selecting previously unselected package php-bcmath.
    Preparing to unpack .../13-php-bcmath_2%3a7.3+69_all.deb ...
    Unpacking php-bcmath (2:7.3+69) ...
    Selecting previously unselected package php7.3-gd.
    Preparing to unpack .../14-php7.3-gd_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking php7.3-gd (7.3.27-1~deb10u1) ...
    Selecting previously unselected package php-gd.
    Preparing to unpack .../15-php-gd_2%3a7.3+69_all.deb ...
    Unpacking php-gd (2:7.3+69) ...
    Selecting previously unselected package php7.3-ldap.
    Preparing to unpack .../16-php7.3-ldap_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking php7.3-ldap (7.3.27-1~deb10u1) ...
    Selecting previously unselected package php-ldap.
    Preparing to unpack .../17-php-ldap_2%3a7.3+69_all.deb ...
    Unpacking php-ldap (2:7.3+69) ...
    Selecting previously unselected package php7.3-mbstring.
    Preparing to unpack .../18-php7.3-mbstring_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking php7.3-mbstring (7.3.27-1~deb10u1) ...
    Selecting previously unselected package php-mbstring.
    Preparing to unpack .../19-php-mbstring_2%3a7.3+69_all.deb ...
    Unpacking php-mbstring (2:7.3+69) ...
    Selecting previously unselected package php7.3-mysql.
    Preparing to unpack .../20-php7.3-mysql_7.3.27-1~deb10u1_arm64.deb ...
    Unpacking php7.3-mysql (7.3.27-1~deb10u1) ...
    Selecting previously unselected package php-mysql.
    Preparing to unpack .../21-php-mysql_2%3a7.3+69_all.deb ...
    Unpacking php-mysql (2:7.3+69) ...
    Selecting previously unselected package snmpd.
    Preparing to unpack .../22-snmpd_5.7.3+dfsg-5+deb10u2_arm64.deb ...
    Unpacking snmpd (5.7.3+dfsg-5+deb10u2) ...
    Selecting previously unselected package zabbix-agent.
    Preparing to unpack .../23-zabbix-agent_1%3a4.0.4+dfsg-1_arm64.deb ...
    Unpacking zabbix-agent (1:4.0.4+dfsg-1) ...
    Selecting previously unselected package zabbix-frontend-php.
    Preparing to unpack .../24-zabbix-frontend-php_1%3a5.2.6-1+debian10_all.deb ...
    Unpacking zabbix-frontend-php (1:5.2.6-1+debian10) ...
    Selecting previously unselected package zabbix-apache-conf.
    Preparing to unpack .../25-zabbix-apache-conf_1%3a5.2.6-1+debian10_all.deb ...
    Unpacking zabbix-apache-conf (1:5.2.6-1+debian10) ...
    Selecting previously unselected package zabbix-server-mysql.
    Preparing to unpack .../26-zabbix-server-mysql_1%3a4.0.4+dfsg-1_arm64.deb ...
    Unpacking zabbix-server-mysql (1:4.0.4+dfsg-1) ...
    Setting up php7.3-bcmath (7.3.27-1~deb10u1) ...
    Setting up php-bcmath (2:7.3+69) ...
    Setting up php7.3-mbstring (7.3.27-1~deb10u1) ...
    Setting up traceroute (1:2.1.0-2) ...
    update-alternatives: using /usr/bin/traceroute.db to provide /usr/bin/traceroute (traceroute) in auto mode
    update-alternatives: using /usr/bin/traceroute6.db to provide /usr/bin/traceroute6 (traceroute6) in auto mode
    update-alternatives: using /usr/bin/lft.db to provide /usr/bin/lft (lft) in auto mode
    update-alternatives: using /usr/bin/traceproto.db to provide /usr/bin/traceproto (traceproto) in auto mode
    update-alternatives: using /usr/sbin/tcptraceroute.db to provide /usr/sbin/tcptraceroute (tcptraceroute) in auto mode
    Setting up libapache2-mod-php7.3 (7.3.27-1~deb10u1) ...
    apache2_invoke: Enable module php7.3
    Setting up snmpd (5.7.3+dfsg-5+deb10u2) ...
    Setting up php-mbstring (2:7.3+69) ...
    Setting up libpcap0.8:arm64 (1.8.1-6) ...
    Setting up php7.3-mysql (7.3.27-1~deb10u1) ...
    Setting up libodbc1:arm64 (2.3.6-0.1) ...
    Setting up libiksemel3:arm64 (1.4-3+b1) ...
    Setting up libapache2-mod-php (2:7.3+69) ...
    Setting up nmap-common (7.70+dfsg1-6+deb10u1) ...
    Setting up liblinear3:arm64 (2.1.0+dfsg-4) ...
    Setting up liblua5.3-0:arm64 (5.3.3-1.1) ...
    Setting up zabbix-agent (1:4.0.4+dfsg-1) ...
    
    Creating config file /etc/zabbix/zabbix_agentd.conf with new version
    [zabbix-agent.conf:1] Line references path below legacy directory /var/run/, updating /var/run/zabbix → /run/zabbix; please update the tmpfiles.d/ drop-in file accordingly.
    Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-agent.service → /lib/systemd/system/zabbix-agent.service.
    Setting up php7.3-ldap (7.3.27-1~deb10u1) ...
    Setting up libopenipmi0 (2.0.25-2.1) ...
    Setting up fping (4.2-1) ...
    Setting up php7.3-gd (7.3.27-1~deb10u1) ...
    Setting up php-mysql (2:7.3+69) ...
    Setting up zabbix-server-mysql (1:4.0.4+dfsg-1) ...
    [zabbix-server.conf:1] Line references path below legacy directory /var/run/, updating /var/run/zabbix → /run/zabbix; please update the tmpfiles.d/ drop-in file accordingly.
    
    Creating config file /etc/zabbix/zabbix_server.conf with new version
    
    Creating config file /etc/sudoers.d/zabbix with new version
    Created symlink /etc/systemd/system/multi-user.target.wants/zabbix-server.service → /lib/systemd/system/zabbix-server.service.
    Setting up nmap (7.70+dfsg1-6+deb10u1) ...
    Setting up php-ldap (2:7.3+69) ...
    Setting up zabbix-frontend-php (1:5.2.6-1+debian10) ...
    update-alternatives: using /usr/share/fonts/truetype/dejavu/DejaVuSans.ttf to provide /usr/share/zabbix/assets/fonts/graphfont.ttf (zabbix-frontend-font) in auto mode
    Setting up php-gd (2:7.3+69) ...
    Setting up zabbix-apache-conf (1:5.2.6-1+debian10) ...
    Enabling conf zabbix.
    To activate the new configuration, you need to run:
    systemctl reload apache2
    Processing triggers for systemd (241-7~deb10u7) ...
    Processing triggers for man-db (2.8.5-2) ...
    Processing triggers for libc-bin (2.28-10) ...
    Processing triggers for libapache2-mod-php7.3 (7.3.27-1~deb10u1) ...
    pi@raspberrypi:~ $ sudo vi /etc/zabbix/zabbix_server.conf
    pi@raspberrypi:~ $ sudo systemctl restart zabbix-server zabbix-agent
    pi@raspberrypi:~ $ sudo systemctl enable zabbix-server zabbix-agent
    Synchronizing state of zabbix-server.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable zabbix-server
    Synchronizing state of zabbix-agent.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable zabbix-agent
    pi@raspberrypi:~ $ sudo vi /etc/zabbix/apache.conf
    pi@raspberrypi:~ $ sudo systemctl restart apache2
    pi@raspberrypi:~ $ sudo systemctl enable apache2
    Synchronizing state of apache2.service with SysV service script with /lib/systemd/systemd-sysv-install.
    Executing: /lib/systemd/systemd-sysv-install enable apache2
    pi@raspberrypi:~ $ zabbix-server -version
    -bash: zabbix-server: command not found
    pi@raspberrypi:~ $ zabbix_server --version
    zabbix_server (Zabbix) 4.0.4
    Revision 89349 4 February 2019, compilation time: Feb 6 2019 00:50:40
    
    Copyright (C) 2019 Zabbix SIA
    License GPLv2+: GNU GPL version 2 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it according to
    the license. There is NO WARRANTY, to the extent permitted by law.
    
    Compiled with GnuTLS 3.6.6
    Running with GnuTLS 3.6.7
    pi@raspberrypi:~ $
    The error i see in the log is

    The server does not match Zabbix database. Current database version (mandatory/optional): 05020000/05020000. Required mandatory version: 04000000.

    Any ideas on how to fix this ?

    EDIT : realized i was using the wrong repository. Used the correct one and updated the logs, but still same error.
    Last edited by jinu; 10-04-2021, 04:34.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    The official Zabbix repository publishes packages for the armhf architecture of the Raspberry Pi OS. There are no published packages for the Raspberry Pi OS arm64 architecture. Isn't your environment an arm64 architecture? Since the package does not exist in the official Zabbix repository, version 4.0 that exists in the OS standard package may have been installed.


    For Ubuntu, it seems that a package of arm64 architecture is open to the public.

    Comment

    • jinu
      Junior Member
      • Apr 2021
      • 7

      #3
      Your are right. After some research I realized that Zabbix does not support RPi4 in its native form. So installed Ubuntu on it and then installed the Zabbix Ubuntu Arm64 version. Thanks

      Comment

      Working...