Ad Widget

Collapse

Problems installing Zabbix on Debian 12.5 arm64 via official packages

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • laacz
    Junior Member
    • Mar 2024
    • 2

    #1

    Problems installing Zabbix on Debian 12.5 arm64 via official packages

    This morning I tried to install Zabbix following the official installation guide and it miserably failed. It cannot find specific architecture within the Zabbix repo. It fails with:

    Code:
    N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://repo.zabbix.com/zabbix/6.4/debian bookworm InRelease' doesn't support architecture 'arm64'
    So any installation installs debian stock 1:6.0.14+dfsg-1+b1 arm64, which is not what I want.

    Full reproduction below:

    Code:
    # lsb_release -a
    No LSB modules are available.
    Distributor ID: Debian
    Description:    Debian GNU/Linux 12 (bookworm)
    Release:        12
    Codename:       bookworm zz0.sgyujrlxjgczz
    
    # cat /etc/debian_version
    12.5
    
    # uname -a
    Linux host.domain.lv 6.1.0-18-arm64 #1 SMP Debian 6.1.76-1 (2024-02-01) aarch64 GNU/#
    
    # sudo apt purge zabbix\*
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    Note, selecting 'zabbix-sender' for glob 'zabbix*'
    Note, selecting 'zabbix-proxy-sqlite3' for glob 'zabbix*'
    Note, selecting 'zabbix-java-gateway' for glob 'zabbix*'
    Note, selecting 'zabbix-server-pgsql' for glob 'zabbix*'
    Note, selecting 'zabbix-release' for glob 'zabbix*'
    Note, selecting 'zabbix-proxy-pgsql' for glob 'zabbix*'
    Note, selecting 'zabbix-server-mysql' for glob 'zabbix*'
    Note, selecting 'zabbix-agent' for glob 'zabbix*'
    Note, selecting 'zabbix-proxy-mysql' for glob 'zabbix*'
    Note, selecting 'zabbix-agent2' for glob 'zabbix*'
    Note, selecting 'zabbix-web-service' for glob 'zabbix*'
    Note, selecting 'zabbix-frontend-php' for glob 'zabbix*'
    Note, selecting 'zabbix-agent' instead of 'zabbix-sender'
    Package 'zabbix-agent' is not installed, so not removed
    Package 'zabbix-agent2' is not installed, so not removed
    Package 'zabbix-frontend-php' is not installed, so not removed
    Package 'zabbix-java-gateway' is not installed, so not removed
    Package 'zabbix-proxy-mysql' is not installed, so not removed
    Package 'zabbix-proxy-pgsql' is not installed, so not removed
    Package 'zabbix-proxy-sqlite3' is not installed, so not removed
    Package 'zabbix-server-mysql' is not installed, so not removed
    Package 'zabbix-server-pgsql' is not installed, so not removed
    Package 'zabbix-web-service' is not installed, so not removed
    The following packages will be REMOVED:
      zabbix-release*
    0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
    After this operation, 20.5 kB disk space will be freed.
    Do you want to continue? [Y/n] Y
    (Reading database ... 51326 files and directories currently installed.)
    Removing zabbix-release (1:6.4-1+debian12) ...
    (Reading database ... 51322 files and directories currently installed.)
    Purging configuration files for zabbix-release (1:6.4-1+debian12) ...
    
    # sudo apt update
    Hit:1 http://mirror.hetzner.com/debian/packages bookworm InRelease
    Hit:2 http://deb.debian.org/debian bookworm InRelease
    Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
    Hit:4 http://security.debian.org/debian-security bookworm-security InRelease
    Hit:5 http://mirror.hetzner.com/debian/packages bookworm-updates InRelease
    Hit:6 http://mirror.hetzner.com/debian/security bookworm-security InRelease
    Hit:7 https://download.docker.com/linux/debian bookworm InRelease
    Hit:8 https://repos.influxdata.com/debian stable InRelease
    Get:9 https://pkgs.tailscale.com/stable/debian bookworm InRelease
    Fetched 6,566 B in 1s (6,040 B/s)
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
    
    # wget https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/
    --2024-03-13 06:50:51--  https://repo.zabbix.com/zabbix/6.4/debian/pool/main/z/zabbix-release/zabbix-release_6.4-1+debian12_all.deb
    Resolving repo.zabbix.com (repo.zabbix.com)... 2604:a880:2:d0::2062:d001, 178.128.6.101
    Connecting to repo.zabbix.com (repo.zabbix.com)|2604:a880:2:d0::2062:d001|:443... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 3540 (3.5K) [application/octet-stream]
    Saving to: ‘zabbix-release_6.4-1+debian12_all.deb’
    
    zabbix-release_6.4-1+debian12_all.deb            100%[=======================================================================================================>]   3.46K  --.-KB/s    in 0s
    
    2024-03-13 06:50:52 (85.4 MB/s) - ‘zabbix-release_6.4-1+debian12_all.deb’ saved [3540/3540]
    
    
    # sudo dpkg -i zabbix-release_6.4-1+debian12_all.deb
    Selecting previously unselected package zabbix-release.
    (Reading database ... 51321 files and directories currently installed.)
    Preparing to unpack zabbix-release_6.4-1+debian12_all.deb ...
    Unpacking zabbix-release (1:6.4-1+debian12) ...
    Setting up zabbix-release (1:6.4-1+debian12) ...
    
    # sudo apt update
    Hit:1 http://security.debian.org/debian-security bookworm-security InRelease
    Hit:2 http://mirror.hetzner.com/debian/packages bookworm InRelease
    Hit:3 http://mirror.hetzner.com/debian/packages bookworm-updates InRelease
    Hit:4 http://mirror.hetzner.com/debian/security bookworm-security InRelease
    Hit:5 http://deb.debian.org/debian bookworm InRelease
    Hit:6 http://deb.debian.org/debian bookworm-updates InRelease
    Hit:7 https://repos.influxdata.com/debian stable InRelease
    Hit:8 https://download.docker.com/linux/debian bookworm InRelease
    Get:9 https://pkgs.tailscale.com/stable/debian bookworm InRelease
    Get:10 https://repo.zabbix.com/zabbix/6.4/debian bookworm InRelease [4,933 B]
    Get:11 https://repo.zabbix.com/zabbix/6.4/debian bookworm/main Sources [2,262 B]
    Fetched 13.8 kB in 1s (9,775 B/s)
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
    N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://repo.zabbix.com/zabbix/6.4/debian bookworm InRelease' doesn't support architecture 'arm64' zz0.40ll2o9gwezz
  • Answer selected by laacz at 14-03-2024, 07:33.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    You are correct .. might be a bit more clear statement..
    If we follow docs, which state
    Official Zabbix 6.4 packages for Debian, Ubuntu, and Raspberry Pi OS (Raspbian) are available on Zabbix website.
    and following that link we cannot find anything for 6.4 and Debian(arm64)... there is for 6.0LTS
    Click image for larger version

Name:	image.png
Views:	2360
Size:	14.4 KB
ID:	480648
    Kind of reading between the lines..

    Comment

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

      #2
      There doesn't seem to be 6.4 for that .. only LTS versions (6 and 7 (prerelease)), IIRC they have that build done manually and its not for each version or something..

      Comment

      • laacz
        Junior Member
        • Mar 2024
        • 2

        #3
        Then that should be stated in the installation guide.

        Comment

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

          #4
          You are correct .. might be a bit more clear statement..
          If we follow docs, which state
          Official Zabbix 6.4 packages for Debian, Ubuntu, and Raspberry Pi OS (Raspbian) are available on Zabbix website.
          and following that link we cannot find anything for 6.4 and Debian(arm64)... there is for 6.0LTS
          Click image for larger version

Name:	image.png
Views:	2360
Size:	14.4 KB
ID:	480648
          Kind of reading between the lines..

          Comment

          • jswheeler
            Junior Member
            • Feb 2024
            • 22

            #5
            I"m running into this same issue. Raspberrypi 4, bookworm (12) and failing to get the 'arm64' packages

            Code:
            $ sudo apt update
            Hit:1 http://deb.debian.org/debian bookworm InRelease
            Hit:2 http://deb.debian.org/debian-security bookworm-security InRelease
            Hit:3 http://deb.debian.org/debian bookworm-updates InRelease
            Hit:4 http://archive.raspberrypi.com/debian bookworm InRelease
            Hit:5 https://repo.zabbix.com/zabbix-tools/debian-ubuntu bookworm InRelease
            Hit:6 https://repo.zabbix.com/zabbix/7.0/debian bookworm InRelease
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            All packages are up to date.
            N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://repo.zabbix.com/zabbix/7.0/debian bookworm InRelease' doesn't support architecture 'arm64'
            What's weird is some packages are available.
            Code:
            $ dpkg -l zabbix\*
            Desired=Unknown/Install/Remove/Purge/Hold
            | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
            |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
            ||/ Name                 Version            Architecture Description
            +++-====================-==================-============-=======================================================================
            ii  zabbix-agent         1:6.0.14+dfsg-1+b1 arm64        network monitoring solution - agent
            ii  zabbix-apache-conf   1:7.0.2-1+debian12 all          Zabbix network monitoring solution - apache configuration for front-end
            ii  zabbix-frontend-php  1:7.0.2-1+debian12 all          Zabbix network monitoring solution - PHP front-end
            un  zabbix-nginx-conf    <none>             <none>       (no description available)
            un  zabbix-proxy-mysql   <none>             <none>       (no description available)
            un  zabbix-proxy-pgsql   <none>             <none>       (no description available)
            un  zabbix-proxy-sqlite3 <none>             <none>       (no description available)
            ii  zabbix-release       1:7.0-2+debian12   all          Zabbix official repository configuration
            un  zabbix-sender        <none>             <none>       (no description available)
            un  zabbix-server-mysql  <none>             <none>       (no description available)
            ii  zabbix-server-pgsql  1:6.0.14+dfsg-1+b1 arm64        network monitoring solution - server (using PostgreSQL)
            ii  zabbix-sql-scripts   1:7.0.2-1+debian12 all          Zabbix network monitoring solution - sql-scripts
            Fundamentally, I'm trying to upgrade to 7.0 and 7.0 is not supported on bullseye (11)

            notice there is no Server, Frontend, Agent component.

            So I did a backup of my database and tried to do a fresh install. This worked fine, then I went to import my database. There were numerous errors so I assumed that the database restore to this new version was not the right approach. I did a diff between the server.sql files between 6.4 and 7.0 and indeed there are a number of differences.

            ​I'm not sure how schema updates are applied, but I'm assuming that's the job of the package zabbix-server-pgsql, which I can't seem to get a new version of.

            Fundamentally, my request is for an upgrade path from 6.4 to 7.0 on arm64. Now I need ot go back and rebuild my bullseye host.

            Comment

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

              #6
              https://www.zabbix.com/download?zabb...gsql&ws=apache shows install instructions for Zabbix 7.0 server on Debian 12 arm64. If you are saying the instructions are not working, please verify and then open an issue at support.zabbix.com.

              Markku

              Comment

              • jswheeler
                Junior Member
                • Feb 2024
                • 22

                #7
                Thanks Markku, appreciate the guidance. I believe these instructions do work and these instructions are for a fresh install (I also tried this approach, but the database versions do not match). I'm faced with an upgrade. If I try to follow these instructions



                I'm unable to upgrade. I think your advice would likely be the same regardless, I should open a support issue and I'll do that next. I was just wondering if I'm the only one that tried to upgrade from 6.4 to 7.0 on a raspberry pi

                Comment

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

                  #8
                  As long as you
                  - don't delete the existing database
                  - don't try to run any Zabbix SQL commands to the database (because you already have Zabbix schema there)
                  - have knowledge about your specific Zabbix configuration file customizations
                  - have relevant other backups you need
                  you can purge the old Zabbix packages (sudo apt purge zabbix\*) and then install the Zabbix packages from scratch, if that helps you. Unfortunately I haven't run Zabbix server on arm64 myself.

                  That is the process I personally follow when major-upgrading Debian. YMMV, of course.

                  Markku

                  Comment

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

                    #9
                    In the issue you jswheeler said that UI complains about database version (6.4.x instead of 7.0.x). That information is actually quite meaningless, what really is interesting is what zabbix_server.log says when you restart the service with the new Zabbix server version: it should upgrade the database automatically and indicate the process progress or problems in it in the log. Only after completing that is the UI information useful.

                    Markku

                    Comment

                    • jswheeler
                      Junior Member
                      • Feb 2024
                      • 22

                      #10
                      I ended up going back to metal on my raspberry pi. Wrote about it here. https://jswheeler.medium.com/upgrade...d20eb664ff00d8

                      Comment

                      Working...