Ad Widget

Collapse

Accidental upgrade - need help with proxy

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zablab
    Junior Member
    • Jan 2022
    • 28

    #1

    Accidental upgrade - need help with proxy

    So I've got a Zabbix Server along with a single proxy. Tried upgrading from 6.2.2 to 6.2.3 to fix a collector bug with proxy.

    Not sure how but the Zabbix Server jumped to 6.4.0Beta1 - I used this package on the Proxy and Server: https://repo.zabbix.com/zabbix/6.3/u...u20.04_all.deb

    I'm not able to get the Proxy to 6.4.0beta1 - it only upgrades to 6.2.3 which is what I was aiming for to begin with.

    Anybody got a simple list of commands handy to get the proxy upgraded to 6.4.0Beta1? It's Ubuntu 20.04 with a SQLite3 Database.

    Any help would be greatly appreciated,
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    I'm not able to get the Proxy to 6.4.0beta1 - it only upgrades to 6.2.3 which is what I was aiming for to begin with.​
    Please show the actual steps that you are doing to get the proxy upgraded.

    Markku

    Comment


    • Zablab
      Zablab commented
      Editing a comment
      Here are the last batch of commands I'm executing in order which is what I ran on our Zabbix Server that upgraded it to Zabbix 6.4.0beta1

      systemctl stop zabbix-agent
      systemctl stop zabbix-proxy
      rm -Rf /etc/apt/sources.list.d/zabbix.list
      wget https://repo.zabbix.com/zabbix/6.3/u...u20.04_all.deb
      dpkg -i zabbix-release_6.3-1+ubuntu20.04_all.deb
      apt-get update
      apt-get install --only-upgrade zabbix.*
      systemctl start zabbix-agent
      systemctl start zabbix-proxy

      I do see alternative documentation to download the zabbix-6.4.0beta1.tar.gz file, but the documentation on upgrading a Proxy from source files isn't clear to me, it seems to outline installing the whole server and building the Database, etc.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #3
    Can you show the output of these:

    cat /etc/apt/sources.list.d/zabbix.list
    apt update
    apt install --only-upgrade zabbix-proxy-sqlite3 zabbix-agent


    Markku

    Comment


    • Zablab
      Zablab commented
      Editing a comment
      Here is the output,

      # cat /etc/apt/sources.list.d/zabbix.list
      cat: /etc/apt/sources.list.d/zabbix.list: No such file or directory

      # xxx@zabbix-proxy:/home$ systemctl stop zabbix-proxy
      # xxx@zabbix-proxy:/home$ systemctl stop zabbix-agent
      # xxx@zabbix-proxy:/home$ apt update
      Get:1 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease [10.5 kB]
      Hit:2 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu focal InRelease
      Get:3 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 Packages [198 kB]
      Hit:4 http://us.archive.ubuntu.com/ubuntu focal InRelease
      Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
      Get:6 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
      Get:7 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
      Fetched 545 kB in 1s (696 kB/s)
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      4 packages can be upgraded. Run 'apt list --upgradable' to see them.

      # xxx@zabbix-proxy:/home$ apt install --only-upgrade zabbix-proxy-sqlite3 zabbix-agent
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      zabbix-agent is already the newest version (1:6.2.3-1+ubuntu20.04).
      zabbix-proxy-sqlite3 is already the newest version (1:6.2.3-1+ubuntu20.04).
      The following package was automatically installed and is no longer required:
      libfwupdplugin1
      Use 'sudo apt autoremove' to remove it.
      0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #4
    Looks like you don't have the new zabbix-release package correctly installed. Try installing the .deb again, then apt update, and retry the install (post all the outputs here as well).

    Markku

    Comment

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

      #5
      Also

      dpkg -l zabbix\*

      Markku

      Comment


      • Zablab
        Zablab commented
        Editing a comment
        This is the same wget URL I used on my Zabbix Server that got upgraded to 6.4, if there is a different one (I don't see a 6.4) I can certainly give that a try.

        # xxx@zabbix-proxy:/home$ systemctl stop zabbix-proxy
        # xxx@zabbix-proxy:/home$ systemctl stop zabbix-agent
        # xxx@zabbix-proxy:/home$ wget https://repo.zabbix.com/zabbix/6.3/u...u20.04_all.deb
        --2022-10-11 19:35:54-- https://repo.zabbix.com/zabbix/6.3/u...u20.04_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: 3680 (3.6K) [application/octet-stream]
        Saving to: ‘zabbix-release_6.3-1+ubuntu20.04_all.deb.1’
        zabbix-release_6.3-1+ubuntu20.04_all.deb. 100%[================================================== ===================================>] 3.59K --.-KB/s in 0s
        2022-10-11 19:35:54 (616 MB/s) - ‘zabbix-release_6.3-1+ubuntu20.04_all.deb.1’ saved [3680/3680]

        # xxx@zabbix-proxy:/home$ 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.2.3-1+ubuntu20.04 amd64 Zabbix network monitoring solution - agent
        un zabbix-proxy-mysql <none> <none> (no description available)
        un zabbix-proxy-pgsql <none> <none> (no description available)
        ii zabbix-proxy-sqlite3 1:6.2.3-1+ubuntu20.04 amd64 Zabbix network monitoring solution - proxy (SQLite3)
        ii zabbix-release 1:6.3-1+ubuntu20.04 all Zabbix official repository configuration

        # xxx@zabbix-proxy:/home$ dpkg -i zabbix
        # xxx/ zabbix-release_6.3-1+ubuntu20.04_all.deb
        # xxx@zabbix-proxy:/home$ dpkg -i zabbix-release_6.3-1+ubuntu20.04_all.deb
        (Reading database ... 77976 files and directories currently installed.)
        Preparing to unpack zabbix-release_6.3-1+ubuntu20.04_all.deb ...
        Unpacking zabbix-release (1:6.3-1+ubuntu20.04) over (1:6.3-1+ubuntu20.04) ...
        Setting up zabbix-release (1:6.3-1+ubuntu20.04) ...

        # xxx@zabbix-proxy:/home$ cat /etc/apt/sources.list.d/zabbix.list
        cat: /etc/apt/sources.list.d/zabbix.list: No such file or directory

        # xxx@zabbix-proxy:/home$ apt update
        Hit:1 http://us.archive.ubuntu.com/ubuntu focal InRelease
        Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease [114 kB]
        Hit:3 https://repo.zabbix.com/zabbix-agent2-plugins/1/ubuntu focal InRelease
        Get:4 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease [108 kB]
        Hit:5 https://packages.microsoft.com/ubuntu/20.04/prod focal InRelease
        Get:6 http://us.archive.ubuntu.com/ubuntu focal-security InRelease [114 kB]
        Fetched 336 kB in 1s (538 kB/s)
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        4 packages can be upgraded. Run 'apt list --upgradable' to see them.

        # xxx@zabbix-proxy:/home$ apt install --only-upgrade zabbix-proxy-sqlite3 zabbix-agent
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        zabbix-agent is already the newest version (1:6.2.3-1+ubuntu20.04).
        zabbix-proxy-sqlite3 is already the newest version (1:6.2.3-1+ubuntu20.04).
        The following package was automatically installed and is no longer required:
        libfwupdplugin1
        Use ' apt autoremove' to remove it.
        0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.

        # xxx@zabbix-proxy:/home$ systemctl start zabbix-proxy
        # xxx@zabbix-proxy:/home$ systemctl start zabbix-agent
    • Markku
      Senior Member
      Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
      • Sep 2018
      • 1781

      #6
      What I would do is (backup the configuration files and) "apt purge zabbix\*" and reinstall the .deb, "apt update" and "apt install zabbix-proxy-sqlite3 zabbix-agent".

      Markku
      Last edited by Markku; 12-10-2022, 07:47.

      Comment

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

        #7
        Originally posted by Zablab
        So I've got a Zabbix Server along with a single proxy. Tried upgrading from 6.2.2 to 6.2.3 to fix a collector bug with proxy.
        Not sure how but the Zabbix Server jumped to 6.4.0Beta1 - I used this package on the Proxy and Server: https://repo.zabbix.com/zabbix/6.3/u...u20.04_all.deb
        if you use 6.4 beta repo, then there is no surprise, that it gets to upgraded to that version instead of 6.2.3... your url even states "zabbix/6.3/ubuntu/" that is not 6.2.3 but 6.3 which actually means 6.4 beta...

        Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!

        gives you latest for giver version .. https://repo.zabbix.com/zabbix/6.2/u...u20.04_all.deb
        seems like it does not contain 6.2.3, only 6.2.2 ... Here is probably a question to Zabbix team, where are those..

        Comment

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

          #8
          I don't think there are any problems installing 6.2.3 on Ubuntu when using the zabbix-release 6.2 package (as you saw above).

          I believe the 6.4.0 beta installs just fine after purging the previous packages, let's see how it goes.

          Markku

          Comment


          • Zablab
            Zablab commented
            Editing a comment
            I think I got it working. I believe it boils down to me not paying attention to the words on my screen and muscle memory

            When you uninstall your repository package:

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

            You are prompted to overwrite your zabbix.list configuration file when you update the list, I'm used to automatically hitting "N" because of the same prompts later for your Zabbix Config file(s)

            You will most likely want to hit "N" for those prompts to avoid overwriting your actual zabbix config files, however for the zabbix.list config we DO want to overwrite it "Y". Just remember later, you will probably want to select "N" to keep your Zabbix config files.

            ##
            Configuration file '/etc/apt/sources.list.d/zabbix.list'
            ==> Deleted (by you or by a script) since installation.
            ==> Package distributor has shipped an updated version.
            What would you like to do about it ? Your options are:
            Y or I : install the package maintainer's version
            N or O : keep your currently-installed version
            D : show the differences between the versions
            Z : start a shell to examine the situation
            The default action is to keep your current version.

            *** zabbix.list (Y/I/N/O/D/Z) [default=N] ? Y
            ##

            Now, the following successfully updated to 6.4.0 using the following URL:




            Appreciate the assistance on this, another episode of "read the damn words on the screen, even if there are a lot of them".
            Last edited by Zablab; 12-10-2022, 17:38.
        Working...