Ad Widget

Collapse

zabbix upgrade to 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tonyxjoseph
    Junior Member
    • Jun 2024
    • 2

    #1

    zabbix upgrade to 7

    I am trying to upgrade from version 6.4 to 7 using the instructions from https://www.zabbix.com/documentation.../debian_ubuntu
    getting the message zabbix-frontend-php is already the newest version

    root@zabbix:/# apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent Reading package lists... Done Building dependency tree Reading state information... Done zabbix-agent is already the newest version (1:7.0.0-1+ubuntu20.04). zabbix-frontend-php is already the newest version (1:6.4.2-1+ubuntu20.04). zabbix-server-mysql is already the newest version (1:6.4.2-1+ubuntu20.04).
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    Something in your repo list still points to 6.4 repos...

    Comment

    • erkanvaris
      Junior Member
      • Jun 2024
      • 3

      #3
      I got totally same issue when I was trying to upgrade v7 on Debian 11. Does someone have any recomendation?

      zabbix-agent is already the newest version (1:7.0.0-1+debian11).
      zabbix-frontend-php is already the newest version (1:6.4.8-2+debian11).
      zabbix-server-mysql is already the newest version (1:6.4.8-2+debian11).

      Comment

      • Ruben Castello
        Junior Member
        • Jun 2024
        • 2

        #4
        Same error here. dpkg installed and repo is updated.

        [CODE
        ]root@cs-zbx-srv01:/home/ciber# apt-get update
        Obj:1 http://security.debian.org/debian-security bullseye-security InRelease
        Obj:2 http://deb.debian.org/debian bullseye InRelease
        Obj:3 http://deb.debian.org/debian bullseye-updates InRelease
        Obj:4 https://repo.zabbix.com/zabbix/7.0/debian bullseye InRelease

        [/CODE]

        Code:
        root@cs-zbx-srv01:/home/ciber# cat /etc/apt/sources.list.d/zabbix.list
        # Zabbix main repository
        deb https://repo.zabbix.com/zabbix/7.0/debian bullseye main
        deb-src https://repo.zabbix.com/zabbix/7.0/debian bullseye main
        Code:
        root@cs-zbx-srv01:/home/ciber# apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent
        Leyendo lista de paquetes... Hecho
        Creando árbol de dependencias... Hecho
        Leyendo la información de estado... Hecho
        zabbix-agent ya está en su versión más reciente (1:7.0.0-1+debian11).
        zabbix-frontend-php ya está en su versión más reciente (1:6.4.15-1+debian11).
        zabbix-server-mysql ya está en su versión más reciente (1:6.4.15-1+debian11).
        ​

        Any ideas?

        ​

        Comment

        • tonyxjoseph
          Junior Member
          • Jun 2024
          • 2

          #5
          Originally posted by cyber
          Something in your repo list still points to 6.4 repos...
          how to update the repo list

          Comment

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

            #6
            https://help.ubuntu.com/community/Re...es/CommandLine If this does not help, ask your friendly sysadmin...

            Comment

            • Bennson89
              Junior Member
              • Jun 2024
              • 1

              #7
              Hi!,
              I have the same problem but I think I updated the repo list correctly:


              So I took a look in the package-file (https://repo.zabbix.com/zabbix/7.0/u...amd64/Packages) and saw that there is no zabbix-server-pgsql package there.
              I'm no expert on how packages and repositorys work but when I take the package-file of the jammy-release(https://repo.zabbix.com/zabbix/7.0/u...amd64/Packages) I can find an entry for the zabbix-server-pgsql package.

              Could that be the problem?​

              Comment

              • agunther
                Junior Member
                • Jun 2024
                • 2

                #8
                Originally posted by Bennson89
                Hi!,
                I have the same problem but I think I updated the repo list correctly:


                So I took a look in the package-file (https://repo.zabbix.com/zabbix/7.0/u...amd64/Packages) and saw that there is no zabbix-server-pgsql package there.
                I'm no expert on how packages and repositorys work but when I take the package-file of the jammy-release(https://repo.zabbix.com/zabbix/7.0/u...amd64/Packages) I can find an entry for the zabbix-server-pgsql package.

                Could that be the problem?
                I'm seeing the same thing for zabbix-server-mysql. The package is absent from the repos for xenial, bionic, and focal. Did someone screw up, or is Zabbix silently dropping support for Ubuntu systems older than 22.04?

                Comment

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

                  #9
                  Go to https://www.zabbix.com/download and see which components are available for your old operating systems.

                  Note that since Zabbix has many external dependencies, you cannot expect years-old operating systems to be supported in all possible Zabbix components.

                  Markku

                  Comment

                  • agunther
                    Junior Member
                    • Jun 2024
                    • 2

                    #10
                    Originally posted by Markku
                    Go to https://www.zabbix.com/download and see which components are available for your old operating systems.

                    Note that since Zabbix has many external dependencies, you cannot expect years-old operating systems to be supported in all possible Zabbix components.

                    Markku
                    Wow. I was poring over the Zabbix documentation for literal hours over the past few days trying to find any indication that Zabbix was dropping support for older Ubuntu versions. Nothing in the Requirements page, or Upgrade Procedure, or in the "Breaking changes" section of the notes for 7.0. I would've saved a lot of time had I known that information lived somewhere other than the official documentation.

                    Is this an indicator that Zabbix Server on Ubuntu 20.04 is no more? Is there any possibility of them releasing a compatible version in the future? If not, it would've been nice to have some kind of advance notice.

                    Comment

                    • Ruben Castello
                      Junior Member
                      • Jun 2024
                      • 2

                      #11
                      Looks like happen with Debian 11 packages.
                      Updated to Debian 12 and updated to Zabbix 7.0 without problems.

                      Comment

                      • erkanvaris
                        Junior Member
                        • Jun 2024
                        • 3

                        #12
                        It didn't work for me. I 'm having an issue upgrade libodbc2 and apt --fix-broken install' doesn't fix it. Do you have any recomendation?

                        Unpacking zabbix-apache-conf (1:7.0.0-1+debian12) over (1:6.4.8-2+debian11) ...
                        Preparing to unpack .../14-zabbix-sender_1%3a7.0.0-1+debian12_amd64.deb ...
                        Unpacking zabbix-sender (1:7.0.0-1+debian12) over (1:7.0.0-1+debian11) ...
                        Preparing to unpack .../15-zabbix-sql-scripts_1%3a7.0.0-1+debian12_all.deb ...
                        Unpacking zabbix-sql-scripts (1:7.0.0-1+debian12) over (1:7.0.0-1+debian11) ...
                        Errors were encountered while processing:
                        /tmp/apt-dpkg-install-BUmbHP/00-libodbc2_2.3.11-2+deb12u1_amd64.deb
                        E: Sub-process /usr/bin/dpkg returned an error code (1)
                        root@ZBX01:/zabbix_setup# apt-get install zabbix-apache-conf
                        Reading package lists... Done
                        Building dependency tree... Done
                        Reading state information... Done
                        zabbix-apache-conf is already the newest version (1:7.0.0-1+debian12).
                        You might want to run 'apt --fix-broken install' to correct these.
                        The following packages have unmet dependencies:
                        zabbix-server-mysql : Depends: libodbc2 (>= 2.3.1) but it is not going to be inst alled
                        E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).

                        Comment

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

                          #13
                          Based on google search:

                          The ”sub-process /usr/bin/dpkg returned an error code (1)" error points to a problem with the dpkg package manager. Find out how to fix it.


                          What I would try is (after backing up all relevant Zabbix configuration files) something like this:

                          sudo dpkg --configure -a
                          sudo apt purge zabbix\*
                          sudo apt autoremove
                          sudo apt update
                          sudo apt upgrade
                          sudo apt install zabbix-server-mysql ... (whatever packages are needed)


                          Markku

                          Comment

                          • AlexDiamantopulo
                            Junior Member
                            • Mar 2016
                            • 6

                            #14
                            I can confirm, these packages are missing for Ubuntu 20.04:
                            Server, Frontend
                            These are still available:
                            - Proxy
                            - Agent
                            - Agent 2
                            - Java Gateway
                            - Web Service

                            Comment

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

                              #15
                              Originally posted by AlexDiamantopulo
                              I can confirm, these packages are missing for Ubuntu 20.04:
                              Server, Frontend
                              These are still available:
                              - Proxy
                              - Agent
                              - Agent 2
                              - Java Gateway
                              - Web Service
                              I suppose 20.04 is just too old to run v7... Even being LTS version, it may not have latest versions for required packages, thus .. you cannot run server or frontend on it as it seems. You can still use it for proxy, java GW or web services. And agent is also available.

                              Comment

                              Working...