Ad Widget

Collapse

Conflict when upgrade version 2.4 to 3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Xyue
    Member
    • Jan 2016
    • 93

    #1

    Conflict when upgrade version 2.4 to 3

    Hi guys,

    I am trying to upgrade my current zabbix version 2.4 to version 3.

    I following instruction in link below and everything works smooth until download the version 3 repo.
    http://www.2daygeek.com/zabbix-upgra...-mint-ubuntu/#

    Error msg
    [root@zabsrv ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.0/rh...el7.noarch.rpm
    Retrieving http://repo.zabbix.com/zabbix/3.0/rh...el7.noarch.rpm
    Preparing... ########################################### [100%]
    file /etc/yum.repos.d/zabbix.repo from install of zabbix-release-3.0-1.el7.noarch conflicts with file from package zabbix-release-2.4-1.el6.noarch
    [root@zabsrv ~]#

    I tried to look in /etc/yum.repos.d and i don't see 2.4 repo inside.
    [root@zabsrv yum.repos.d]# ls -l /etc/yum.repos.d/
    total 72
    -rw-r--r--. 1 root root 1991 Aug 4 2015 CentOS-Base.repo
    -rw-r--r--. 1 root root 647 Aug 4 2015 CentOS-Debuginfo.repo
    -rw-r--r--. 1 root root 289 Aug 4 2015 CentOS-fasttrack.repo
    -rw-r--r--. 1 root root 630 Aug 4 2015 CentOS-Media.repo
    -rw-r--r--. 1 root root 6259 Aug 4 2015 CentOS-Vault.repo
    -rw-r--r--. 1 root root 14540 Nov 5 2012 epel-release-latest-6.noarch.rpm
    -rw-r--r--. 1 root root 957 Nov 5 2012 epel.repo
    -rw-r--r--. 1 root root 1056 Nov 5 2012 epel-testing.repo
    -rw-r--r--. 1 root root 1177 Dec 9 17:14 remi-php70.repo
    -rw-r--r--. 1 root root 7615 Dec 9 17:15 remi-release-6.rpm
    -rw-r--r--. 1 root root 2340 Apr 7 16:13 remi.repo
    -rw-r--r--. 1 root root 449 Dec 9 17:14 remi-safe.repo
    -rw-r--r--. 1 root root 364 Mar 11 11:40 rsyslog.repo


    Can anyone guide me how to solve this ?

    Thank you very much in advance
    Last edited by Xyue; 07-04-2016, 10:48.
  • Atsushi
    Senior Member
    • Aug 2013
    • 2028

    #2
    Please try update package.

    Code:
    # rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rhel/7/x86_64/zabbix-release-3.0-1.el7.noarch.rpm

    Comment

    • Xyue
      Member
      • Jan 2016
      • 93

      #3
      HI Atsushi,

      I was able to upgrade the package. However when i tried to update the server and agent. It shows nothing to upgrade.

      Am i using the wrong command again ?

      [root@zabsrv ~]# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rh...e-3.0-1.el7.no
      Retrieving http://repo.zabbix.com/zabbix/3.0/rh...el7.noarch.rpm
      Preparing... ########################################### [100%]
      1:zabbix-release ########################################### [100%]
      [root@zabsrv ~]# yum upgrade zabbix-server-mysql zabbix-web-mysql zabbix-agent
      Loaded plugins: fastestmirror, refresh-packagekit, security
      Setting up Upgrade Process
      Loading mirror speeds from cached hostfile
      * base: mirror.vodien.com
      * epel: mirror.wanxp.id
      * extras: mirror.vodien.com
      * remi: remi.kazukioishi.net
      * remi-safe: remi.kazukioishi.net
      * updates: mirror.vodien.com
      No Packages marked for Update
      [root@zabsrv ~]#
      Last edited by Xyue; 07-04-2016, 11:23.

      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        Please refresh cache for yum.
        ex.
        Code:
        # yum clean all

        Comment

        • Xyue
          Member
          • Jan 2016
          • 93

          #5
          Hi,

          I cleared the cache on yum and able to continued the installation but found out Zabbix version 3 required some dependencies which are not supported on my current OS (CentOS 6.7).

          Can I check if it is possible to install zabbix v3.0 on my CentOS 6.7 ?

          Error: Package: zabbix-server-mysql-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.15)(64bit)
          Error: Package: zabbix-server-mysql-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.17)(64bit)
          Error: Package: zabbix-server-mysql-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.14)(64bit)
          Error: Package: zabbix-agent-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.15)(64bit)
          Error: Package: zabbix-agent-3.0.1-1.el7.x86_64 (zabbix)
          Requires: systemd
          Error: Package: zabbix-server-mysql-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libnetsnmp.so.31()(64bit)
          Error: Package: zabbix-agent-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.17)(64bit)
          Error: Package: zabbix-agent-3.0.1-1.el7.x86_64 (zabbix)
          Requires: libc.so.6(GLIBC_2.14)(64bit)
          Error: Package: zabbix-server-mysql-3.0.1-1.el7.x86_64 (zabbix)
          Requires: systemd

          [root@zabsrv ~]# yum install systemd
          Loaded plugins: fastestmirror, refresh-packagekit, security
          Setting up Install Process
          Loading mirror speeds from cached hostfile
          * base: mirror.nus.edu.sg
          * epel: mirror.wanxp.id
          * extras: mirror.nus.edu.sg
          * remi: mirrors.thzhost.com
          * remi-safe: mirrors.thzhost.com
          * updates: mirror.nus.edu.sg
          No package systemd available.
          Error: Nothing to do
          [root@zabsrv ~]#

          Comment

          • Atsushi
            Senior Member
            • Aug 2013
            • 2028

            #6
            If you want use on CentOS 6.7, you must use repository for RHEL/CentOS 6.
            Please don't use repository for RHEL/CentOS 7.

            Zabbix 3.0 repository package for RHEL/CentOS 6:

            Comment

            • Xyue
              Member
              • Jan 2016
              • 93

              #7
              Hi Atsushi,

              Didn't notice that previously. Thanks for the reminder.

              I tried again the last few steps, remove zabbix repo, clear yum cache and tried to install again but this time I it shows me the current package which is RHEL7 is more update.

              I read the man page and there is a --replace command but saw some comment on google it might give some problem.

              Can you please advise me again on how to settle this ? Thank you very much.

              [root@zabsrv yum.repos.d]# yum clean all
              Loaded plugins: fastestmirror, refresh-packagekit, security
              Cleaning repos: base epel extras remi remi-safe rsyslog-v7-stable updates
              Cleaning up Everything

              [root@zabsrv yum.repos.d]# rpm -Uvh http://repo.zabbix.com/zabbix/3.0/rh...el6.noarch.rpm
              Retrieving http://repo.zabbix.com/zabbix/3.0/rh...el6.noarch.rpm
              Preparing... ########################################### [100%]
              package zabbix-release-3.0-1.el7.noarch (which is newer than zabbix-release-3.0-1.el6.noarch) is already installed

              Comment

              • Atsushi
                Senior Member
                • Aug 2013
                • 2028

                #8
                Please remove the zabbix-release-3.0-1.el7.noarch.

                Code:
                # rpm -e zabbix-release

                Comment

                • Xyue
                  Member
                  • Jan 2016
                  • 93

                  #9
                  Hi Atsushi,

                  I'm lost again. I have remove the el7 release, clean the cache, download el6 release then tried to install the zabbix-server and agent.

                  However, i still having some error. I saw in the log it mention el6 will be obsoleted and will installed el7. I though i have remove the el7 release.

                  You can view the log message in https://drive.google.com/file/d/0B9L...ew?usp=sharing

                  UPDATE
                  Not sure if this is the reason, i found Zabbix 2.4 file on /usr/share/doc
                  [root@zabsrv doc]# cd zabbix-
                  zabbix-2.4.7/ zabbix-agent-2.4.7/ zabbix-release-3.0/ zabbix-server-mysql-2.4.7/

                  Possible it cause the installation steps to have error ?

                  Need your advise and please guide me.
                  Thank you very much in advance.
                  Last edited by Xyue; 12-04-2016, 05:14.

                  Comment

                  • Xyue
                    Member
                    • Jan 2016
                    • 93

                    #10
                    Hi Atsushi,

                    I tried to clear the yum cache few more times and trying to install server and mysql again and surprisingly it works.

                    I was able to installed everything and it works even though i have no idea what is going on.

                    I will proceed and thank you very much for your guidance.

                    Comment

                    Working...