Ad Widget

Collapse

Upgrade 7.0.4 to 7.0.5

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • minimicro
    Junior Member
    • Sep 2024
    • 13

    #1

    Upgrade 7.0.4 to 7.0.5

    Hi,

    I'm trying to upgrade my server to 7.0.5 from 7.0.4.

    I follow the procedure

    Code:
     Upgrade between minor versions
    
    It is possible to upgrade between Zabbix 7.0.x minor versions (for example, from 7.0.1 to 7.0.3).
    
    First, update the repository information:
    apt update
    
    Then, to upgrade all Zabbix components, run:
    apt install --only-upgrade 'zabbix*'
    
    To upgrade Zabbix server only, replace 'zabbix*' with 'zabbix-server*' in the command.
    To upgrade Zabbix proxy only, replace 'zabbix*' with 'zabbix-proxy*' in the command.
    To upgrade Zabbix agent only, replace 'zabbix*' with 'zabbix-agent*' in the command.
    To upgrade Zabbix agent 2 only, replace 'zabbix*' with 'zabbix-agent2*' in the command.
    But my server stay in 7.0.4, thank you for your help.

    Click image for larger version

Name:	Capture d’écran 2024-10-27 à 10.35.58.png
Views:	1668
Size:	10.1 KB
ID:	493417
    Last edited by minimicro; 27-10-2024, 11:37.
  • markfree
    Senior Member
    • Apr 2019
    • 868

    #2
    After running the upgrade command, check the sysout for any possible errors.
    Also, if you have different hosts for your Zabbix components, you need to run the command on all of them.
    Finally, restart the service, including the frontend.

    Comment

    • minimicro
      Junior Member
      • Sep 2024
      • 13

      #3
      All composant is on same server.
      After apt update and apt install --only-upgrade 'zabbix*', i see

      Code:
      zabbix-server-mysql is already the newest version (1:7.0.4-1+debian12).
      Why not see 1:7.0.5 ?

      Comment

      • markfree
        Senior Member
        • Apr 2019
        • 868

        #4
        Try listing all Zabbix packages:

        Code:
        $ apt list --installed 'zabbix*'
        Listing... Done
        zabbix-agent2/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        zabbix-apache-conf/zabbix,now 1:7.0.5-1+debian12 all [installed]
        zabbix-frontend-php/zabbix,now 1:7.0.5-1+debian12 all [installed]
        zabbix-get/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        zabbix-js/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        zabbix-release/zabbix,now 1:7.0-2+debian12 all [installed]
        zabbix-sender/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        zabbix-server-mysql/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        zabbix-sql-scripts/zabbix,now 1:7.0.5-1+debian12 all [installed]
        zabbix-web-service/zabbix,now 1:7.0.5-1+debian12 arm64 [installed]
        There should be a package named "zabbix-frontend...", and another named "zabbix-apache..." or "zabbix-nginx...", depending on your installation.

        Anyhow, what's your OS?

        Comment

        • minimicro
          Junior Member
          • Sep 2024
          • 13

          #5
          Code:
          root@vps:~# apt list --installed 'zabbix*'
          Listing... Done
          zabbix-agent2-plugin-ember-plus/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-agent2-plugin-mongodb/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-agent2-plugin-mssql/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-agent2-plugin-postgresql/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-agent2/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-agent/stable,now 1:6.0.14+dfsg-1+b1 amd64 [installed]
          zabbix-apache-conf/now 1:7.0.4-1+debian12 all [installed,local]
          zabbix-frontend-php/now 1:7.0.4-1+debian12 all [installed,local]
          zabbix-release/now 1:7.0-2+debian12 all [installed,local]
          zabbix-server-mysql/now 1:7.0.4-1+debian12 amd64 [installed,local]
          zabbix-sql-scripts/now 1:7.0.4-1+debian12 all [installed,local]
          OS is Debian 12.

          Comment

          • markfree
            Senior Member
            • Apr 2019
            • 868

            #6
            Have you updated the Zabbix host repository cache (apt update)?
            Is there any error when updating the cache?

            Comment

            • minimicro
              Junior Member
              • Sep 2024
              • 13

              #7
              Yes
              Code:
              root@vps:~# apt update
              Get:1 file:/etc/apt/mirrors/debian.list Mirrorlist [30 B]
              Get:2 file:/etc/apt/mirrors/debian-security.list Mirrorlist [39 B]
              Hit:3 https://deb.debian.org/debian bookworm InRelease        
              Get:4 https://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
              Get:5 https://deb.debian.org/debian bookworm-backports InRelease [59.0 kB]    
              Hit:6 https://deb.debian.org/debian-security bookworm-security InRelease      
              Get:7 https://deb.debian.org/debian bookworm-backports/main Sources.diff/Index [63.3 kB]
              Get:8 https://deb.debian.org/debian bookworm-backports/main amd64 Packages.diff/Index [63.3 kB]
              Get:9 https://deb.debian.org/debian bookworm-backports/main Sources T-2024-10-28-1418.57-F-2024-10-28-1418.57.pdiff [31 B]
              Get:9 https://deb.debian.org/debian bookworm-backports/main Sources T-2024-10-28-1418.57-F-2024-10-28-1418.57.pdiff [31 B]
              Get:10 https://deb.debian.org/debian bookworm-backports/main amd64 Packages T-2024-10-28-1418.57-F-2024-10-28-1418.57.pdiff [191 B]
              Get:10 https://deb.debian.org/debian bookworm-backports/main amd64 Packages T-2024-10-28-1418.57-F-2024-10-28-1418.57.pdiff [191 B]
              Hit:11 https://repo.zabbix.com/zabbix-tools/debian-ubuntu bookworm InRelease
              Fetched 241 kB in 1s (289 kB/s)
              Reading package lists... Done
              Building dependency tree... Done
              Reading state information... Done
              All packages are up to date.
              Same error ...

              Comment

              • markfree
                Senior Member
                • Apr 2019
                • 868

                #8
                It seems that the main Zabbix repository is missing from your system. Only the "Zabbix-tools" is present.

                Go back to the documentation for the correct procedure to update the repository configuration package.

                Comment

                • Oriolmunu
                  Junior Member
                  • Dec 2024
                  • 8

                  #9
                  Hello,

                  After more than four years reading on the community, diving into the documentation and attending some Zabbix webinars, I got finally registered on this forum.

                  Regarding this issue, I encountered a similar problem, and I'm a bit stuck with it.

                  Our monitoring system is an Ubuntu 22.04.5 LTS hosting Zabbix Server 7.0.5 LTS (MySQL and Apache).

                  Since we had the upgrade alert for minor version 7.0.6 (and I think 7.0.7 too), I tried to upgrade the version, but got the same message than the previous authors wrote. I reinstalled the repository package following the documentation instructions for the same OS and DBE, but when I list the packages, they show the very same version 7.0.5, which is already installed.

                  Code:
                  # apt list 'zabbix*';
                  Listing... Done
                  zabbix-agent/now 1:7.0.5-1+ubuntu22.04 amd64 [installed,local]
                  zabbix-apache-conf/now 1:7.0.5-1+ubuntu22.04 all [installed,local]
                  zabbix-frontend-php/now 1:7.0.5-1+ubuntu22.04 all [installed,local]
                  zabbix-java-gateway/jammy 1:5.0.17+dfsg-1 all
                  zabbix-proxy-mysql/jammy 1:5.0.17+dfsg-1 amd64
                  zabbix-proxy-pgsql/jammy 1:5.0.17+dfsg-1 amd64
                  zabbix-proxy-sqlite3/jammy 1:5.0.17+dfsg-1 amd64
                  zabbix-release/now 1:7.0-2+ubuntu22.04 all [installed,local]
                  zabbix-server-mysql/now 1:7.0.5-1+ubuntu22.04 amd64 [installed,local]
                  zabbix-server-pgsql/jammy 1:5.0.17+dfsg-1 amd64
                  zabbix-sql-scripts/now 1:6.4.19-1+ubuntu22.04 all [installed,local]
                  At this point I tried to force and upgrade for the minor version and, as I was expecting, I got the message that they were already installed and on the newest version.

                  Code:
                  # apt install --only-upgrade 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-sql-scripts' 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-apache-conf' 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-nginx-conf' for glob 'zabbix*'
                  Note, selecting 'zabbix-frontend-php' for glob 'zabbix*'
                  Skipping zabbix-java-gateway, it is not installed and only upgrades are requested.
                  Skipping zabbix-proxy-mysql, it is not installed and only upgrades are requested.
                  Skipping zabbix-proxy-pgsql, it is not installed and only upgrades are requested.
                  Skipping zabbix-proxy-sqlite3, it is not installed and only upgrades are requested.
                  Skipping zabbix-server-pgsql, it is not installed and only upgrades are requested.
                  zabbix-agent is already the newest version (1:7.0.5-1+ubuntu22.04).
                  zabbix-apache-conf is already the newest version (1:7.0.5-1+ubuntu22.04).
                  zabbix-frontend-php is already the newest version (1:7.0.5-1+ubuntu22.04).
                  zabbix-release is already the newest version (1:7.0-2+ubuntu22.04).
                  zabbix-server-mysql is already the newest version (1:7.0.5-1+ubuntu22.04).
                  zabbix-sql-scripts is already the newest version (1:6.4.19-1+ubuntu22.04).
                  0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                  The previous package stated on the documentation, installs the repository file /etc/apt/sources.list.d/zabbix-tools.list, that were used on the upgrade process that I tried.

                  Could it be that on these repositories the minor version is ignored or not updated?

                  Thanks in forehand for the replies.

                  Comment

                  • Oriolmunu
                    Junior Member
                    • Dec 2024
                    • 8

                    #10
                    Hello again,

                    I could finally fix it some days ago by reinstalling the Zabbix Package for the latest version within 7.0 LTS. So instead of using the zabbix-release_latest+ubuntu22.04_all.deb I used zabbix-release_latest_7.0+ubuntu22.04_all.deb. After that, I could upgrade the minor for all the installed packages.

                    Comment

                    Working...