Ad Widget

Collapse

Issues upgrading Zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tombaz47
    Junior Member
    • Jan 2023
    • 16

    #1

    Issues upgrading Zabbix

    I am trying to update Zabbix to the latest version (6.0) but when doing so via SSH commands on CentOs8, I get the following:

    [root@MGMT-MON01 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/z abbix-release-latest.el9.noarch.rpm
    Retrieving https://repo.zabbix.com/zabbix/6.0/r...-release-lates t.el9.noarch.rpm
    curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to repo.zabbix.c om:443
    error: skipping https://repo.zabbix.com/zabbix/6.0/r...abbix-release- latest.el9.noarch.rpm - transfer failed


    However, I then tried the wget command as follows below and it appeared to upgrade, but it only updated to 5.0.39 by the looks of things. I was on 5.0.26.

    [root@MGMT-MON01 ~]# wget https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbi x-release-latest.el9.noarch.rpm
    --2023-10-31 14:27:57-- https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/zabbix -release-latest.el9.noarch.rpm
    Resolving repo.zabbix.com (repo.zabbix.com)... 178.128.6.101, 2604:a880:2:d0::20 62:d001
    Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443... connected.
    HTTP request sent, awaiting response... Read error (The request is invalid.) in headers.
    Retrying.

    --2023-10-31 14:28:18-- (try: 2) https://repo.zabbix.com/zabbix/6.0/rhel/9/x86 _64/zabbix-release-latest.el9.noarch.rpm
    Connecting to repo.zabbix.com (repo.zabbix.com)|178.128.6.101|:443...
    connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 17433 (17K) [application/x-redhat-package-manager]
    Saving to: ‘zabbix-release-latest.el9.noarch.rpm’

    zabbix-release-late 100%[===================>] 17.02K --.-KB/s in 0s

    2023-10-31 14:28:30 (180 MB/s) - ‘zabbix-release-latest.el9.noarch.rpm’ saved [1 7433/17433]

    [root@MGMT-MON01 ~]#
    [root@MGMT-MON01 ~]# dnf upgrade zabbix-server-pgsql zabbix-web-pgsql zabbix-age nt
    Last metadata expiration check: 0:55:36 ago on Tue 31 Oct 2023 13:33:45 GMT.
    Dependencies resolved.
    ================================================== ==============================
    Package Architecture Version Repository Size
    ================================================== ==============================
    Upgrading:
    zabbix-agent x86_64 5.0.39-1.el8 zabbix 503 k
    zabbix-apache-conf noarch 5.0.39-1.el8 zabbix 21 k
    zabbix-server-pgsql x86_64 5.0.39-1.el8 zabbix 3.2 M
    zabbix-web noarch 5.0.39-1.el8 zabbix 3.4 M
    zabbix-web-deps x86_64 5.0.39-1.el8 zabbix 21 k
    zabbix-web-mysql noarch 5.0.39-1.el8 zabbix 20 k
    zabbix-web-pgsql noarch 5.0.39-1.el8 zabbix 20 k

    Transaction Summary
    ================================================== ==============================
    Upgrade 7 Packages

    Total download size: 7.2 M
    Is this ok [y/N]: y
    Downloading Packages:
    [MIRROR] zabbix-agent-5.0.39-1.el8.x86_64.rpm: Curl error (56): Failure when rec eiving data from the peer for http://repo.zabbix.com/zabbix/5.0/rhel/8/x86_64/za bbix-agent-5.0.39-1.el8.x86_64.rpm [Recv failure: Connection reset by peer]
    [MIRROR] zabbix-apache-conf-5.0.39-1.el8.noarch.rpm: Curl error (56): Failure wh en receiving data from the peer for http://repo.zabbix.com/zabbix/5.0/rhel/8/x86 _64/zabbix-apache-conf-5.0.39-1.el8.noarch.rpm [Recv failure: Connection reset b y peer]
    [MIRROR] zabbix-server-pgsql-5.0.39-1.el8.x86_64.rpm: Curl error (56): Failure w hen receiving data from the peer for http://repo.zabbix.com/zabbix/5.0/rhel/8/x8 6_64/zabbix-server-pgsql-5.0.39-1.el8.x86_64.rpm [Recv failure: Connection reset by peer]
    (1/7): zabbix-apache-conf-5.0.39-1.el8.noarch.r 2.6 kB/s | 21 kB 00:07
    (2/7): zabbix-agent-5.0.39-1.el8.x86_64.rpm 35 kB/s | 503 kB 00:14
    (3/7): zabbix-web-deps-5.0.39-1.el8.x86_64.rpm 4.8 kB/s | 21 kB 00:04
    (4/7): zabbix-server-pgsql-5.0.39-1.el8.x86_64. 165 kB/s | 3.2 MB 00:20
    (5/7): zabbix-web-mysql-5.0.39-1.el8.noarch.rpm 10 kB/s | 20 kB 00:01
    (6/7): zabbix-web-5.0.39-1.el8.noarch.rpm 255 kB/s | 3.4 MB 00:13
    (7/7): zabbix-web-pgsql-5.0.39-1.el8.noarch.rpm 8.9 kB/s | 20 kB 00:02
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 328 kB/s | 7.2 MB 00:22
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
    Preparing : 1/1
    Running scriptlet: zabbix-web-5.0.39-1.el8.noarch 1/1
    Upgrading : zabbix-web-5.0.39-1.el8.noarch 1/14
    Running scriptlet: zabbix-web-5.0.39-1.el8.noarch 1/14
    Upgrading : zabbix-web-deps-5.0.39-1.el8.x86_64 2/14
    Upgrading : zabbix-web-mysql-5.0.39-1.el8.noarch 3/14
    Upgrading : zabbix-apache-conf-5.0.39-1.el8.noarch 4/14
    Running scriptlet: zabbix-apache-conf-5.0.39-1.el8.noarch 4/14
    Upgrading : zabbix-web-pgsql-5.0.39-1.el8.noarch 5/14
    Running scriptlet: zabbix-server-pgsql-5.0.39-1.el8.x86_64 6/14
    Upgrading : zabbix-server-pgsql-5.0.39-1.el8.x86_64 6/14
    Running scriptlet: zabbix-server-pgsql-5.0.39-1.el8.x86_64 6/14
    Running scriptlet: zabbix-agent-5.0.39-1.el8.x86_64 7/14
    Upgrading : zabbix-agent-5.0.39-1.el8.x86_64 7/14
    Running scriptlet: zabbix-agent-5.0.39-1.el8.x86_64 7/14
    Cleanup : zabbix-web-pgsql-5.0.38-1.el8.noarch 8/14
    Cleanup : zabbix-apache-conf-5.0.38-1.el8.noarch 9/14
    Cleanup : zabbix-web-deps-5.0.38-1.el8.x86_64 10/14
    Cleanup : zabbix-web-mysql-5.0.38-1.el8.noarch 11/14
    Running scriptlet: zabbix-web-5.0.38-1.el8.noarch 12/14
    Cleanup : zabbix-web-5.0.38-1.el8.noarch 12/14
    Running scriptlet: zabbix-server-pgsql-5.0.38-1.el8.x86_64 13/14
    Cleanup : zabbix-server-pgsql-5.0.38-1.el8.x86_64 13/14
    Running scriptlet: zabbix-server-pgsql-5.0.38-1.el8.x86_64 13/14
    Running scriptlet: zabbix-agent-5.0.38-1.el8.x86_64 14/14
    Cleanup : zabbix-agent-5.0.38-1.el8.x86_64 14/14
    Running scriptlet: zabbix-agent-5.0.38-1.el8.x86_64 14/14
    Running scriptlet: zabbix-agent-5.0.39-1.el8.x86_64 14/14
    Running scriptlet: zabbix-agent-5.0.38-1.el8.x86_64 14/14
    [/usr/lib/tmpfiles.d/postgresql.conf:1] Line references path below legacy directory /var/run/, updating /var/run/postgresql → /run/postgresql; please update the tmpfiles.d/ drop-in file accordingly.

    Verifying : zabbix-agent-5.0.39-1.el8.x86_64 1/14
    Verifying : zabbix-agent-5.0.38-1.el8.x86_64 2/14
    Verifying : zabbix-apache-conf-5.0.39-1.el8.noarch 3/14
    Verifying : zabbix-apache-conf-5.0.38-1.el8.noarch 4/14
    Verifying : zabbix-server-pgsql-5.0.39-1.el8.x86_64 5/14
    Verifying : zabbix-server-pgsql-5.0.38-1.el8.x86_64 6/14
    Verifying : zabbix-web-5.0.39-1.el8.noarch 7/14
    Verifying : zabbix-web-5.0.38-1.el8.noarch 8/14
    Verifying : zabbix-web-deps-5.0.39-1.el8.x86_64 9/14
    Verifying : zabbix-web-deps-5.0.38-1.el8.x86_64 10/14
    Verifying : zabbix-web-mysql-5.0.39-1.el8.noarch 11/14
    Verifying : zabbix-web-mysql-5.0.38-1.el8.noarch 12/14
    Verifying : zabbix-web-pgsql-5.0.39-1.el8.noarch 13/14
    Verifying : zabbix-web-pgsql-5.0.38-1.el8.noarch 14/14
    Installed products updated.

    Upgraded:
    zabbix-agent-5.0.39-1.el8.x86_64 zabbix-apache-conf-5.0.39-1.el8.noarch zabbix-server-pgsql-5.0.39-1.el8.x86_64 zabbix-web-5.0.39-1.el8.noarch zabbix-web-deps-5.0.39-1.el8.x86_64 zabbix-web-mysql-5.0.39-1.el8.noarch
    zabbix-web-pgsql-5.0.39-1.el8.noarch

    Complete!
    [root@MGMT-MON01 ~]# systemctl start zabbix-server



    Please can someone advise on how to get it to the latest version.
  • ISiroshtan
    Senior Member
    • Nov 2019
    • 324

    #2
    Why are you trying to add RHEL 9 repo on Centos 8?
    [root@MGMT-MON01 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/9/x86_64/z abbix-release-latest.el9.noarch.rpm
    Zabbix official website gives you a different repo for Centos 8
    Code:
    # rpm https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
    # dnf clean all
    Kindly try using correct repo
    Last edited by ISiroshtan; 31-10-2023, 16:57.

    Comment

    • tombaz47
      Junior Member
      • Jan 2023
      • 16

      #3
      I have tried using the correct repo and got the following error:

      [root@MGMT-MON01 ~]# rpm -Uvh https://repo.zabbix.com/zabbix/6.0/r...el8.noarch.rpm
      Retrieving https://repo.zabbix.com/zabbix/6.0/r...el8.noarch.rpm
      curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to repo.zabbix.com:443
      error: skipping https://repo.zabbix.com/zabbix/6.0/r...el8.noarch.rpm - transfer failed

      Comment

      • ISiroshtan
        Senior Member
        • Nov 2019
        • 324

        #4

        in my original post the link was cut by forum engine, please check edited response. correct link is
        Code:
        https://repo.zabbix.com/zabbix/6.0/rhel/8/x86_64/zabbix-release-6.0-4.el8.noarch.rpm
        or take it from official zabbix website

        Comment

        • tombaz47
          Junior Member
          • Jan 2023
          • 16

          #5
          Have tried that and it has got further, but now getting a transaction test error. I have ran dnf clean packages, but this hasn't made a difference.

          Error: Transaction test error:
          file /etc/zabbix/zabbix_server.conf from install of zabbix-server-pgsql-6.0.23-release1.el8.x86_64 conflicts with file from package zabbix-server-mysql-5.0.38-1.el8.x86_64
          file /usr/share/man/man8/zabbix_server.8.gz from install of zabbix-server-pgsql-6.0.23-release1.el8.x86_64 conflicts with file from package zabbix-server-mysql-5.0.38-1.el8.x86_64 zz0.do5mi43rx48zz​

          Comment

          • dimir
            Zabbix developer
            • Apr 2011
            • 1080

            #6
            The repo.zabbix.com issues (was overloaded) started to appear today. Now they should be fixed.

            Comment

            Working...