Ad Widget

Collapse

Upgrade Zabbix 5.4.0 to 5.4.7

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • brhunt
    Member
    • Feb 2013
    • 50

    #1

    Upgrade Zabbix 5.4.0 to 5.4.7

    Hello,

    I have not been able to upgrade my Zabbix 5.4.0 server to a later version (5.4.7 for example).

    I am on Ubuntu server 20.04 and using packages.

    I follow the instructions for intra-version upgrades but no joy.

    What am I missing? Can I not upgrade via packages?

    Thanks.

    Bryan Hunt
  • Answer selected by Rudlafik at 05-06-2024, 14:38.
    cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    zabbix.list has sources for 6.0 but you have 6.4?

    Comment

    • tim.mooney
      Senior Member
      • Dec 2012
      • 1427

      #2
      You absolutely should be able to upgrade from 5.4.0 to 5.4.7 via packages. Since you're staying within the 5.4 series and just upgrading the "micro" version, it should be an easy and painless process.

      Can you provide the link to the instructions that you have been following as well as what the output is that you've been getting when you try the process?

      Comment

      • brhunt
        Member
        • Feb 2013
        • 50

        #3
        Tim,

        Thanks for the response. Here are the steps that I took and the responses I received:

        rm -Rf /etc/apt/sources.list.d/zabbix.list

        wget https://repo.zabbix.com/zabbix/5.4/u...u20.04_all.deb

        dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb

        root@zabbix5:/home/zabbixadmin# apt install --only-upgrade 'zabbix.*'
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        E: Unable to locate package zabbix.*
        E: Couldn't find any package by glob 'zabbix.*'

        root@zabbix5:/home/zabbixadmin# apt install --only-upgrade 'zabbix-server.*'
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        E: Unable to locate package zabbix-server.*
        E: Couldn't find any package by glob 'zabbix-server.*'

        root@zabbix5:/home/zabbixadmin# apt install --only-upgrade 'zabbix-agent.*'
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        E: Unable to locate package zabbix-agent.*
        E: Couldn't find any package by glob 'zabbix-agent.*'

        Comment

        • Atsushi
          Senior Member
          • Aug 2013
          • 2028

          #4
          If you have changed the repository, please update the repository information first.
          Code:
          # apt update

          Comment

          • brhunt
            Member
            • Feb 2013
            • 50

            #5
            Atsushi,

            Thanks for the response. I rand apt update, then reran the apt install commands. Same result, unable to locate.

            Comment


            • Atsushi
              Atsushi commented
              Editing a comment
              Is your environment connected to the Internet and can use the apt command?

            • brhunt
              brhunt commented
              Editing a comment
              Atsushi, yes on Internet, and yes on apt.
          • rthonpm
            Member
            • Jan 2016
            • 41

            #6
            Any difference if you just run apt-get update and then apt-get upgrade?

            Sent from my BBE100-5 using Tapatalk

            Comment

            • brhunt
              Member
              • Feb 2013
              • 50

              #7
              rthonpm, I ran those commands and a number of things upgraded. I then tried to rerun the zabbix upgrades, same errors. Says that it cannot locate the packages.

              Comment

              • rthonpm
                Member
                • Jan 2016
                • 41

                #8
                Something doesn't seem right because you shouldn't have to run any of those scripts on their own: just running the regular upgrade command should do that for you. Do the Zabbix repos show in /etc/apt/sources.list.d? If you already have the agent or server installed what is the output of
                systemctl status zabbix-server
                systemctl status zabbix-agent

                Have you also checked to make sure that apt isn't broken in some way? It's been awhile since I've used Ubuntu or Debian regularly, but apt was always good for breaking or causing errors.

                Sent from my BBE100-5 using Tapatalk

                Comment

                • brhunt
                  Member
                  • Feb 2013
                  • 50

                  #9
                  rthonpm,

                  First, no files in /etc/apt/sources.list.d

                  Next, I reran the wget https://repo.zabbix.com/zabbix/5.4/u...u20.04_all.deb and dpkg -i zabbix-release_5.4-1+ubuntu20.04_all.deb commands.
                  Then I ran apt-get update. Then apt-get install --only-upgrade zabbix-server-mysql zabbix-frontend-php zabbix-agent with the following results:

                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  zabbix-agent is already the newest version (1:5.4.0-1+ubuntu20.04).
                  zabbix-frontend-php is already the newest version (1:5.4.0-1+ubuntu20.04).
                  zabbix-server-mysql is already the newest version (1:5.4.0-1+ubuntu20.04).
                  0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
                  root@zabbix5:/home/zabbixadmin# apt-get install --only-upgrade 'zabbix.*'
                  Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Note, selecting 'zabbix-proxy-pgsql' for regex 'zabbix.*'
                  Note, selecting 'python3-pyzabbix' for regex 'zabbix.*'
                  Note, selecting 'zabbix-agent' for regex 'zabbix.*'
                  Note, selecting 'zabbix-server-pgsql' for regex 'zabbix.*'
                  Note, selecting 'zabbix-apache-conf' for regex 'zabbix.*'
                  Note, selecting 'pcp-export-zabbix-agent' for regex 'zabbix.*'
                  Note, selecting 'zabbix-proxy-mysql' for regex 'zabbix.*'
                  Note, selecting 'zabbix-server-mysql' for regex 'zabbix.*'
                  Note, selecting 'zabbix-nginx-conf' for regex 'zabbix.*'
                  Note, selecting 'zabbix-proxy-sqlite3' for regex 'zabbix.*'
                  Note, selecting 'zabbix-get' for regex 'zabbix.*'
                  Note, selecting 'zabbix-frontend-php' for regex 'zabbix.*'
                  Note, selecting 'zabbix-sql-scripts' for regex 'zabbix.*'
                  Note, selecting 'zabbix-java-gateway' for regex 'zabbix.*'
                  Note, selecting 'zabbix-release' for regex 'zabbix.*'
                  Skipping pcp-export-zabbix-agent, it is not installed and only upgrades are requested.
                  Skipping python3-pyzabbix, it is not installed and only upgrades are requested.
                  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:5.4.0-1+ubuntu20.04).
                  zabbix-apache-conf is already the newest version (1:5.4.0-1+ubuntu20.04).
                  zabbix-frontend-php is already the newest version (1:5.4.0-1+ubuntu20.04).
                  zabbix-get is already the newest version (1:5.0.17-1+focal).
                  zabbix-release is already the newest version (1:5.4-1+ubuntu20.04).
                  zabbix-server-mysql is already the newest version (1:5.4.0-1+ubuntu20.04).
                  zabbix-sql-scripts is already the newest version (1:5.4.0-1+ubuntu20.04).
                  0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
                  root@zabbix5:/home/zabbixadmin# apt-get install --only-upgrade 'zabbix-server.*'Reading package lists... Done
                  Building dependency tree
                  Reading state information... Done
                  Note, selecting 'zabbix-server-pgsql' for regex 'zabbix-server.*'
                  Note, selecting 'zabbix-server-mysql' for regex 'zabbix-server.*'
                  Skipping zabbix-server-pgsql, it is not installed and only upgrades are requested.
                  zabbix-server-mysql is already the newest version (1:5.4.0-1+ubuntu20.04).
                  0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

                  Basically saying that I am already on the latest version?

                  zabbix_server -V

                  zabbix_server (Zabbix) 5.4.0
                  Revision 5059e20a75 14 May 2021, compilation time: May 14 2021 11:08:10

                  Copyright (C) 2021 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.

                  This product includes software developed by the OpenSSL Project
                  for use in the OpenSSL Toolkit (http://www.openssl.org/).

                  Compiled with OpenSSL 1.1.1f 31 Mar 2020
                  Running with OpenSSL 1.1.1f 31 Mar 2020

                  I must be doing something wrong?

                  Comment

                  • brhunt
                    Member
                    • Feb 2013
                    • 50

                    #10
                    All,

                    I have finally been able to get Zabbix upgraded to 5.4.7.

                    When initially trying to do the upgrade, I didn't understand which exact steps needed to be executed from the instructions. One of the steps I ran was: rm -Rf /etc/apt/sources.list.d/zabbix.list, which deleted the zabbix.list file. I assumed that it would be recreated in a later step. It was not.

                    When rthonpm asked me what was in the /etc/apt/sources.list.d/ directory, I found nothing. This triggered me to look at another Zabbix server with the same setup and I saw the zabbix.list file.

                    I copied the file from the second server to the first, ran apt upgrade and that worked perfectly!

                    Thanks to all who gave guidance.

                    Bryan Hunt

                    Comment

                    • Rudlafik
                      Senior Member
                      • Nov 2018
                      • 144

                      #11
                      Not for me. I have /etc/apt/sources.list.d/zabbix.list.

                      In this file I have this lines:
                      deb https://repo.zabbix.com/zabbix/6.0/debian bullseye main
                      deb-src https://repo.zabbix.com/zabbix/6.0/debian bullseye main

                      steps:
                      1. wget https://repo.zabbix.com/zabbix/6.0/d...bian11_all.deb
                      2. dpkg -i zabbix-release_latest+debian11_all.deb
                      ​3. apt update
                      ​4. apt install --only-upgrade "zabbix*"

                      Ansver:
                      Skipping zabbix-java-gateway, it is not installed and only upgrades are requested.
                      Skipping zabbix-nginx-conf, it is not installed and only upgrades are requested.
                      zabbix-release is already the newest version (1:6.0-4+debian11).
                      zabbix-agent2 is already the newest version (1:6.4.10-1+debian11).
                      zabbix-apache-conf is already the newest version (1:6.4.10-1+debian11).
                      zabbix-frontend-php is already the newest version (1:6.4.10-1+debian11).
                      zabbix-get is already the newest version (1:6.4.10-1+debian11).
                      zabbix-server-pgsql is already the newest version (1:6.4.10-1+debian11).
                      zabbix-sql-scripts is already the newest version (1:6.4.10-1+debian11).
                      0 upgraded, 0 newly installed, 0 to remove and 75 not upgraded.

                      Server:

                      Distributor ID: Debian
                      Description: Debian GNU/Linux 11 (bullseye)
                      Release: 11
                      Codename: bullseye

                      ZBX server:
                      ​zabbix_server (Zabbix) 6.4.10
                      Revision 4da16fb82f5 13 December 2023

                      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-agent2 1:6.4.10-1+debian11 amd64 Zabbix network monitoring solution - agent
                      ii zabbix-apache-conf 1:6.4.10-1+debian11 all Zabbix network monitoring solution - apache configuration for front-end
                      ii zabbix-frontend-php 1:6.4.10-1+debian11 all Zabbix network monitoring solution - PHP front-end
                      ii zabbix-get 1:6.4.10-1+debian11 amd64 Zabbix network monitoring solution - get
                      un zabbix-nginx-conf <none> <none> (no description available)
                      ii zabbix-release 1:6.0-4+debian11 all Zabbix official repository configuration
                      un zabbix-server-mysql <none> <none> (no description available)
                      ii zabbix-server-pgsql 1:6.4.10-1+debian11 amd64 Zabbix network monitoring solution - server (PostgreSQL)
                      ii zabbix-sql-scripts 1:6.4.10-1+debian11 all Zabbix network monitoring solution - sql-scripts

                      I dont know vhew is mistake/error. Can you help me?
                      ​​



                      Comment

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

                        #12
                        zabbix.list has sources for 6.0 but you have 6.4?

                        Comment

                        • Rudlafik
                          Senior Member
                          • Nov 2018
                          • 144

                          #13
                          Shit! THX Little idiot mistake!!! ThX for your time!!!

                          Comment

                          Working...