Ad Widget

Collapse

Problem with Zabbix 5.2 installation in Centos 6

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Giakap
    Junior Member
    • Jan 2021
    • 2

    #1

    Problem with Zabbix 5.2 installation in Centos 6

    Hello to all community,

    I am new in both Linux and Zabbix but better late than never..

    I am trying to install Zabbix 5.2 in a server which run Centos 6 according to the zabbix documentation https://www.zabbix.com/download?zabb...red_hat_enterp rise_linux&os_version=6&db=&ws=

    I have an issue when I am trying to install zabbix server and web packages, most probable because the corresponding packages are not available

    Code:
    Code:
    [root@zabloha yum.repos.d]# yum install zabbix-server-mysql zabbix-web-mysql
    Loaded plugins: fastestmirror, remove-with-leaves, security
    Setting up Install Process
    Repository 'remi-php72-test': Error parsing config: Error parsing "enabled = '1 # <-----------------'": invalid boolean value
    Repository 'remi-php72-test-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value
    Repository 'remi-safe-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value
    Repository 'webtatic-debuginfo': Error parsing config: Error parsing "enabled = '1 # <---------------'": invalid boolean value
    Repository 'webtatic-source': Error parsing config: Error parsing "enabled = '1 # <-------------'": invalid boolean value
    Loading mirror speeds from cached hostfile
    epel/metalink | 4.8 kB 00:00
    epel-debuginfo/metalink | 4.0 kB 00:00
    epel-source/metalink | 3.9 kB 00:00 * epel: ftp-stud.hs-esslingen.de
    * elrepo: elrepo.reloumirrors.net
    
    * epel-debuginfo: ftp-stud.hs-esslingen.de
    * epel-source: ftp-stud.hs-esslingen.from 
    * remi-php72: remi.mirror.karneval.cz
    * remi-safe: remi.mirror.karneval.cz
    * webtatic: uk.repo.webtatic.com
    elrepo | 3.0 kB 00:00
    epel-debuginfo | 3.0 kB 00:00
    epel-debuginfo/primary_db | 830 kB 00:00
    epel-source | 3.5 kB 00:00
    epel-source/primary_db | 1.9 MB 00:00
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    To address this issue please refer to the below wiki article
    
    https://wiki.centos.org/yum-errors
    
    If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
    
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-server-mysql.x86_64 0:4.0.27-1.el6 will be installed
    ---> Package zabbix-web-mysql.noarch 0:4.0.27-1.el6 will be installed
    --> Processing Dependency: zabbix-web = 4.0.27-1.el6 for package: zabbix-web-mysql-4.0.27-1.el6.noarch
    --> Running transaction check
    ---> Package zabbix-web.noarch 0:4.0.27-1.el6 will be installed
    --> Finished Dependency Resolution
    --> Finding unneeded leftover dependencies
    Found and removing 0 unneeded dependencies
    
    Dependencies Resolved
    
    ================================================== ================================================== ================================================== =====================
    Package Arch Version Repository Size
    ================================================== ================================================== ================================================== =====================
    Installing:
    zabbix-server-mysql x86_64 4.0.27-1.el6 zabbix-deprecated 2.1 M
    zabbix-web-mysql noarch 4.0.27-1.el6 zabbix-deprecated 11 k
    Installing for dependencies:
    zabbix-web noarch 4.0.27-1.el6 zabbix-deprecated 3.0 M
    
    Transaction Summary
    ================================================== ================================================== ================================================== =====================
    Install 3 Package(s)
    
    Total download size: 5.2 M
    Installed size: 22 M
    Is this ok [y/N]: y
    Downloading Packages:
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-server-mysql-4.0.27-1.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-web-4.0.27-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-web-mysql-4.0.27-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    
    
    Error Downloading Packages:
    zabbix-server-mysql-4.0.27-1.el6.x86_64: failure: zabbix-server-mysql-4.0.27-1.el6.x86_64.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-mysql-4.0.27-1.el6.noarch: failure: zabbix-web-mysql-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-4.0.27-1.el6.noarch: failure: zabbix-web-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    [root@zabloha yum.repos.d]# yum install zabbix-server-mysql zabbix-web-mysql
    Loaded plugins: fastestmirror, remove-with-leaves, security
    Setting up Install Process
    Repository 'remi-php72-test': Error parsing config: Error parsing "enabled = '1 # <-----------------'": invalid boolean value
    Repository 'remi-php72-test-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value
    Repository 'remi-safe-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value
    Repository 'webtatic-debuginfo': Error parsing config: Error parsing "enabled = '1 # <---------------'": invalid boolean value
    Repository 'webtatic-source': Error parsing config: Error parsing "enabled = '1 # <-------------'": invalid boolean value
    Loading mirror speeds from cached hostfile
    epel/metalink | 4.8 kB 00:00
    epel-debuginfo/metalink | 4.0 kB 00:00
    epel-source/metalink | 3.9 kB 00:00 * epel: ftp-stud.hs-esslingen.de
    * elrepo: elrepo.reloumirrors.net
    
    * epel-debuginfo: ftp-stud.hs-esslingen.de
    * epel-source: ftp-stud.hs-esslingen.de
    * remi-php72: remi.mirror.karneval.cz
    * remi-safe: remi.mirror.karneval.cz
    * webtatic: uk.repo.webtatic.com
    elrepo | 3.0 kB 00:00
    epel-debuginfo | 3.0 kB 00:00
    epel-debuginfo/primary_db | 830 kB 00:00
    epel-source | 3.5 kB 00:00
    epel-source/primary_db | 1.9 MB 00:00
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/repodata/repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
    Trying other mirror.
    To address this issue please refer to the below wiki article
    
    https://wiki.centos.org/yum-errors
    
    If above article doesn't help to resolve this issue please use https://bugs.centos.org/.
    
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-server-mysql.x86_64 0:4.0.27-1.el6 will be installed
    ---> Package zabbix-web-mysql.noarch 0:4.0.27-1.el6 will be installed
    --> Processing Dependency: zabbix-web = 4.0.27-1.el6 for package: zabbix-web-mysql-4.0.27-1.el6.noarch
    --> Running transaction check
    ---> Package zabbix-web.noarch 0:4.0.27-1.el6 will be installed
    --> Finished Dependency Resolution
    --> Finding unneeded leftover dependencies
    Found and removing 0 unneeded dependencies
    
    Dependencies Resolved
    
    ================================================== ================================================== ================================================== =====================
    Package Arch Version Repository Size
    ================================================== ================================================== ================================================== =====================
    Installing:
    zabbix-server-mysql x86_64 4.0.27-1.el6 zabbix-deprecated 2.1 M
    zabbix-web-mysql noarch 4.0.27-1.el6 zabbix-deprecated 11 k
    Installing for dependencies:
    zabbix-web noarch 4.0.27-1.el6 zabbix-deprecated 3.0 M
    
    Transaction Summary
    ================================================== ================================================== ================================================== =====================
    Install 3 Package(s)
    
    Total download size: 5.2 M
    Installed size: 22 M
    Is this ok [y/N]: y
    Downloading Packages:
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-server-mysql-4.0.27-1.el6.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404
    Not Found"
    Trying other mirror.
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-web-4.0.27-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Foun
    d"
    Trying other mirror.
    http://repo.zabbix.com/zabbix/5.2/rhel/6/x86_64/deprecated/zabbix-web-mysql-4.0.27-1.el6.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 No
    t Found"
    Trying other mirror.
    
    
    Error Downloading Packages:
    zabbix-server-mysql-4.0.27-1.el6.x86_64: failure: zabbix-server-mysql-4.0.27-1.el6.x86_64.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-mysql-4.0.27-1.el6.noarch: failure: zabbix-web-mysql-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-4.0.27-1.el6.noarch: failure: zabbix-web-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.


    Yesterday I made installation of Zabbix 4.0 in CentOS 6 and when I had this issue I enabled the deprecated repository as it has been discussed here :


    and also as it is described in the section Zabbix frontend and server for RHEL6 of 4.4 documentation



    My questions are:
    Is it available deprecated repo for Zabbix 5.2 in RHEL6/Centos 6?
    I tend to believe that there is not --> https://repo.zabbix.com/zabbix/5.2/r...64/deprecated/ ( page NOT Found)

    Does anyone else has tried the same procedure?

    What other options I have except from going down to Zabbix 4.4 or upgrade server to Centos 7?

    Thank you in advance for your time
    Giannis

  • Giakap
    Junior Member
    • Jan 2021
    • 2

    #2
    Additional to my previous post : I was "playing" with the files in: /etc/yum.repos.d/
    thus you see the terminal lines
    Code:
    [FONT=Courier][COLOR=#252c2f]Setting up Install Process Repository
    'remi-php72-test': Error parsing config: Error parsing "enabled = '1 # <-----------------'": invalid boolean value Repository
    'remi-php72-test-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value Repository
    'remi-safe-debuginfo': Error parsing config: Error parsing "enabled = '1 # <--------------'": invalid boolean value Repository
    'webtatic-debuginfo': Error parsing config: Error parsing "enabled = '1 # <---------------'": invalid boolean value Repository
    'webtatic-source': Error parsing config: Error parsing "enabled = '1 # <-------------'": invalid boolean value[/COLOR][/FONT]
    After returning them back to default, the result of zabbix package installation was the same :

    Code:
    [FONT=Courier][COLOR=#252c2f]Error Downloading Packages:
    zabbix-server-mysql-4.0.27-1.el6.x86_64: failure: zabbix-server-mysql-4.0.27-1.el6.x86_64.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-mysql-4.0.27-1.el6.noarch: failure: zabbix-web-mysql-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.
    zabbix-web-4.0.27-1.el6.noarch: failure: zabbix-web-4.0.27-1.el6.noarch.rpm from zabbix-deprecated: [Errno 256] No more mirrors to try.[/COLOR][/FONT]
    Last edited by Giakap; 13-01-2021, 17:31.

    Comment

    • xeim
      Junior Member
      • Feb 2021
      • 13

      #3
      Hi,
      Have you resolved it?
      I get the same error for 5.2 version in CentOS 7:

      [root@185-239-172-242 yum.repos.d]# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
      Loaded plugins: fastestmirror, universal-hooks
      Loading mirror speeds from cached hostfile
      * EA4: 185.15.22.168
      * cpanel-addons-production-feed: 185.15.22.168
      * cpanel-plugins: 185.15.22.168
      * base: uk.mirrors.clouvider.net
      * centos-sclo-rh: mirror.freethought-internet.co.uk
      * centos-sclo-sclo: mirror.sov.uk.goscomb.net
      * extras: mirror.freethought-internet.co.uk
      * updates: mirror.netweaver.uk
      EA4 | 2.9 kB 00:00:00
      cpanel-addons-production-feed | 2.9 kB 00:00:00
      cpanel-plugins | 2.9 kB 00:00:00
      base | 3.6 kB 00:00:00
      centos-sclo-rh | 3.0 kB 00:00:00
      centos-sclo-sclo | 3.0 kB 00:00:00
      extras | 2.9 kB 00:00:00
      mysql-connectors-community | 2.6 kB 00:00:00
      mysql-tools-community | 2.6 kB 00:00:00
      mysql57-community | 2.6 kB 00:00:00
      updates | 2.9 kB 00:00:00
      zabbix | 2.9 kB 00:00:00
      http://repo.zabbix.com/zabbix/5.2/rh...ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found
      Trying other mirror.
      To address this issue please refer to the below wiki article



      If above article doesn't help to resolve this issue please use https://bugs.centos.org/.



      One of the configured repositories failed (Zabbix Official Repository frontend - x86_64),
      and yum doesn't have enough cached data to continue. At this point the only
      safe thing yum can do is fail. There are a few ways to work "fix" this:

      1. Contact the upstream for the repository and get them to fix the problem.

      2. Reconfigure the baseurl/etc. for the repository, to point to a working
      upstream. This is most often useful if you are using a newer
      distribution release than is supported by the repository (and the
      packages for the previous distribution release still work).

      3. Run the command with the repository temporarily disabled
      yum --disablerepo=zabbix-frontend ...

      4. Disable the repository permanently, so yum won't use it by default. Yum
      will then just ignore the repository until you permanently enable it
      again or use --enablerepo for temporary usage:

      yum-config-manager --disable zabbix-frontend
      or
      subscription-manager repos --disable=zabbix-frontend

      5. Configure the failing repository to be skipped, if it is unavailable.
      Note that yum will try to contact the repo. when it runs most commands,
      so will have to try and fail each time (and thus. yum will be be much
      slower). If it is a very temporary problem though, this is often a nice
      compromise:

      yum-config-manager --save --setopt=zabbix-frontend.skip_if_unavailable=true

      failure: repodata/repomd.xml from zabbix-frontend: [Errno 256] No more mirrors to try.
      http://repo.zabbix.com/zabbix/5.2/rh...ta/repomd.xml: [Errno 14] HTTP Error 404 - Not Found

      Comment

      • xeim
        Junior Member
        • Feb 2021
        • 13

        #4
        Originally posted by cyber
        5.2 will install on RH/Centos 8, it is not supported on 6,7. End of story.
        Yeah, I installed 5.0.

        Comment

        • xeim
          Junior Member
          • Feb 2021
          • 13

          #5
          And what means the following error:
          Code:
          Error: Package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch (zabbix)
          Requires: httpd
          After "yum install zabbix-web-mysql-scl zabbix-apache-conf-scl"

          The full log:

          Code:
          [root@london ~]# yum install zabbix-web-mysql-scl zabbix-apache-conf-scl
          Loaded plugins: fastestmirror, universal-hooks
          Loading mirror speeds from cached hostfile
          * EA4: 185.15.22.168
          * cpanel-addons-production-feed: 185.15.22.168
          * cpanel-plugins: 185.15.22.168
          * base: mirrors.coreix.net
          * centos-sclo-rh: mirror.as29550.net
          * centos-sclo-sclo: uk.mirrors.clouvider.net
          * epel: mirror.hostnet.nl
          * extras: mirror.as29550.net
          * remi-php74: remirepo.reloumirrors.net
          * remi-safe: remirepo.reloumirrors.net
          * updates: centos.mirroring.pulsant.co.uk
          cpanel-plugins | 2.9 kB 00:00:00
          Resolving Dependencies
          --> Running transaction check
          ---> Package zabbix-apache-conf-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: zabbix-web-deps-scl = 5.0.9-1.el7 for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: httpd for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          ---> Package zabbix-web-mysql-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: zabbix-web = 5.0.9-1.el7 for package: zabbix-web-mysql-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-mysqlnd for package: zabbix-web-mysql-scl-5.0.9-1.el7.noarch
          --> Running transaction check
          ---> Package rh-php72-php-mysqlnd.x86_64 0:7.2.24-1.el7 will be installed
          --> Processing Dependency: rh-php72-php-pdo(x86-64) = 7.2.24-1.el7 for package: rh-php72-php-mysqlnd-7.2.24-1.el7.x86_64
          ---> Package zabbix-apache-conf-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: httpd for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          ---> Package zabbix-web.noarch 0:5.0.9-1.el7 will be installed
          ---> Package zabbix-web-deps-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: rh-php72-php-mbstring for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-xml for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-bcmath for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-ldap for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-fpm for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72 for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Processing Dependency: rh-php72-php-gd for package: zabbix-web-deps-scl-5.0.9-1.el7.noarch
          --> Running transaction check
          ---> Package rh-php72.x86_64 0:1-2.el7 will be installed
          --> Processing Dependency: rh-php72-runtime(x86-64) = 1-2.el7 for package: rh-php72-1-2.el7.x86_64
          --> Processing Dependency: rh-php72-runtime for package: rh-php72-1-2.el7.x86_64
          --> Processing Dependency: rh-php72-php-common(x86-64) for package: rh-php72-1-2.el7.x86_64
          --> Processing Dependency: rh-php72-php-cli(x86-64) for package: rh-php72-1-2.el7.x86_64
          --> Processing Dependency: rh-php72-php-pear for package: rh-php72-1-2.el7.x86_64
          ---> Package rh-php72-php-bcmath.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-fpm.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-gd.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-ldap.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-mbstring.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-pdo.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-xml.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package zabbix-apache-conf-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: httpd for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          --> Running transaction check
          ---> Package rh-php72-php-cli.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-common.x86_64 0:7.2.24-1.el7 will be installed
          --> Processing Dependency: rh-php72-php-json(x86-64) = 7.2.24-1.el7 for package: rh-php72-php-common-7.2.24-1.el7.x86_64
          --> Processing Dependency: rh-php72-php-zip(x86-64) = 7.2.24-1.el7 for package: rh-php72-php-common-7.2.24-1.el7.x86_64
          ---> Package rh-php72-php-pear.noarch 1:1.10.5-1.el7 will be installed
          --> Processing Dependency: rh-php72-php-posix for package: 1:rh-php72-php-pear-1.10.5-1.el7.noarch
          ---> Package rh-php72-runtime.x86_64 0:1-2.el7 will be installed
          ---> Package zabbix-apache-conf-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: httpd for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          --> Running transaction check
          ---> Package rh-php72-php-json.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-process.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package rh-php72-php-zip.x86_64 0:7.2.24-1.el7 will be installed
          ---> Package zabbix-apache-conf-scl.noarch 0:5.0.9-1.el7 will be installed
          --> Processing Dependency: httpd for package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch
          --> Finished Dependency Resolution
          Error: Package: zabbix-apache-conf-scl-5.0.9-1.el7.noarch (zabbix)
          Requires: httpd
          Last edited by xeim; 04-03-2021, 13:28.

          Comment

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

            #6
            5.2 will install on RH/Centos 8, it is not supported on 6,7. End of story.

            Comment

            • mwildam
              Member
              • Feb 2021
              • 72

              #7
              If there is no chance to get your OS upgraded - maybe it works compiling and installing from the sources: https://www.zabbix.com/documentation...lation/install
              My server is on debian, but unfortunately powerpc architecture, so there were also no precompiled packages and I had to compile and install from the sources.

              Comment

              • xeim
                Junior Member
                • Feb 2021
                • 13

                #8
                Originally posted by mwildam
                If there is no chance to get your OS upgraded - maybe it works compiling and installing from the sources: https://www.zabbix.com/documentation...lation/install
                My server is on debian, but unfortunately powerpc architecture, so there were also no precompiled packages and I had to compile and install from the sources.
                It's not a pure OS but some package from hosting provider which doesn't include required dependencies. So, should be not upgraded but downgraded to get a clean OS.

                Comment

                Working...