Ad Widget

Collapse

Problem updating Zabbix to version 6

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

    #1

    Problem updating Zabbix to version 6

    I have attempted updating Zabbix from version 5 to version 6 as per the installation instructions, however I get the following error:

    Click image for larger version

Name:	image.png
Views:	601
Size:	10.2 KB
ID:	457730

    Upon looking at the logs, I appear to have the following which may be causing this:

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

    I have attached the installation log for reference.

    Please can someone help me on this.
  • LenR
    Senior Member
    • Sep 2009
    • 1005

    #2
    Are you using mysql or postgres? The error is mixed packages, you're trying to install server-mysql but server-pgsql for 5.0 is installed. The frontend error is because the database hasn't been updated, because a 6.0 zabbix_server hasn't started and upgraded the DB.

    Comment

    • tombaz47
      Junior Member
      • Jan 2023
      • 16

      #3
      Have ran the following command to check: cat /etc/zabbix/web/zabbix.conf.php
      <?php
      // Zabbix GUI configuration file.

      $DB['TYPE'] = 'POSTGRESQL';
      $DB['SERVER'] = 'localhost';
      $DB['PORT'] = '0';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER'] = 'zabbix';

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        If you are using PostgreSQL, upgrade using zabbix-server-mysql-6.2.6 instead of zabbix-server-mysql-6.2.6. After upgrading the package and checking the configuration file, start zabbix_server and the database will be upgraded automatically. Once the upgrade process is finished, you should be able to access it from your web front end.

        Comment

        • tombaz47
          Junior Member
          • Jan 2023
          • 16

          #5

          I have tried that but am still getting the error. Anything else I can try?

          [root@MGMT-MON01 ~]# systemctl stop zabbix-server
          [root@MGMT-MON01 ~]# systemctl stop zabbix-proxy
          Failed to stop zabbix-proxy.service: Unit zabbix-proxy.service not loaded.
          [root@MGMT-MON01 ~]# mkdir /opt/zabbix-backup/
          mkdir: cannot create directory ‘/opt/zabbix-backup/’: File exists
          [root@MGMT-MON01 ~]# dnf upgrade zabbix-server-pgsql zabbix-web-pgsql zabbix-agent
          Invalid configuration value: failovermethod=priority in /etc/yum.repos.d/datto-rpm-repo-el.repo; Configuration: OptionBinding with id "failovermethod" does not exist
          Last metadata expiration check: 0:33:40 ago on Wed 18 Jan 2023 09:27:20 GMT.
          Dependencies resolved.
          ================================================== ==============================
          Package Arch Version Repository Size
          ================================================== ==============================
          Upgrading:
          zabbix-agent x86_64 6.2.6-release1.el8 zabbix 550 k
          zabbix-server-pgsql x86_64 6.2.6-release1.el8 zabbix 1.7 M

          Transaction Summary
          ================================================== ==============================
          Upgrade 2 Packages

          Total download size: 2.2 M
          Is this ok [y/N]: y
          Downloading Packages:
          (1/2): zabbix-agent-6.2.6-release1.el8.x86_64.r 422 kB/s | 550 kB 00:01
          (2/2): zabbix-server-pgsql-6.2.6-release1.el8.x 1.0 MB/s | 1.7 MB 00:01
          --------------------------------------------------------------------------------
          Total 1.4 MB/s | 2.2 MB 00:01
          Running transaction check
          Transaction check succeeded.
          Running transaction test
          The downloaded packages were saved in cache until the next successful transaction.
          You can remove cached packages by executing 'dnf clean packages'.
          Error: Transaction test error:
          file /etc/zabbix/zabbix_server.conf from install of zabbix-server-pgsql-6.2.6-release1.el8.x86_64 conflicts with file from package zabbix-server-mysql-5.0.26-1.el8.x86_64
          file /usr/share/man/man8/zabbix_server.8.gz from install of zabbix-server-pgsql-6.2.6-release1.el8.x86_64 conflicts with file from package zabbix-server-mysql-5.0.26-1.el8.x86_64
          zz0.z1t7y8rixkzz

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            Wasn't it the Zabbix server for PostgreSQL that you were using? If you were not using Zabbix server for MySQL, please remove zabbix-server-mysql before upgrading zabbix-server-pgsql. Back up your configuration files before you begin.

            Comment

            Working...