Ad Widget

Collapse

OpenSSL dependency error while installing 6.2 Agent on Cent OS 7

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Bs_sousa
    Junior Member
    • Dec 2022
    • 6

    #1

    OpenSSL dependency error while installing 6.2 Agent on Cent OS 7

    Hello,

    When I try to install the version 6.2 zabbix agent on a Cent OS 7 server I get the following errors

    --> Finished Dependency Resolution
    Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
    Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
    Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
    Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
    Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
    Requires: libcrypto.so.1.1()(64bit)
    Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
    Requires: libssl.so.1.1(OPENSSL_1_1_1)(64bit)
    Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
    Requires: libssl.so.1.1()(64bit)
    You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

    I updated the openssl version to v1.1.0f:
    >> openssl version
    OpenSSL 1.1.0f 25 May 2017​​

    The error remains.

    Anyone that can help?

    Thank you.


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

    #2
    Cent OS 7
    zabbix-agent-6.2.6-release1.el8.x86_64
    Are you sure you are using a correct package?

    Markku

    Comment

    • Bs_sousa
      Junior Member
      • Dec 2022
      • 6

      #3
      Hi Marku

      At least it seems to try to install that version (see below the messages I get)

      >> yum install zabbix-agent

      Loaded plugins: fastestmirror
      Loading mirror speeds from cached hostfile
      * base: mirrors.pt
      * extras: mirrors.pt
      * updates: mirrors.pt
      base | 3.6 kB 00:00:00
      extras | 2.9 kB 00:00:00
      updates | 2.9 kB 00:00:00
      zabbix | 2.9 kB 00:00:00
      zabbix-agent2-plugins | 2.9 kB 00:00:00
      zabbix-non-supported | 3.0 kB 00:00:00
      Resolving Dependencies
      --> Running transaction check
      ---> Package zabbix-agent.x86_64 0:6.2.6-release1.el8 will be installed
      --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libcrypto.so.1.1()(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libpcre2-8.so.0()(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libssl.so.1.1()(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Running transaction check
      ---> Package pcre2.x86_64 0:10.23-2.el7 will be installed
      ---> Package zabbix-agent.x86_64 0:6.2.6-release1.el8 will be installed
      --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_0)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libssl.so.1.1(OPENSSL_1_1_1)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libcrypto.so.1.1()(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Processing Dependency: libssl.so.1.1()(64bit) for package: zabbix-agent-6.2.6-release1.el8.x86_64
      --> Finished Dependency Resolution
      Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
      Requires: libssl.so.1.1(OPENSSL_1_1_0)(64bit)
      Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
      Requires: libcrypto.so.1.1(OPENSSL_1_1_0)(64bit)
      Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
      Requires: libcrypto.so.1.1()(64bit)
      Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
      Requires: libssl.so.1.1(OPENSSL_1_1_1)(64bit)
      Error: Package: zabbix-agent-6.2.6-release1.el8.x86_64 (zabbix)
      Requires: libssl.so.1.1()(64bit)
      You could try using --skip-broken to work around the problem
      You could try running: rpm -Va --nofiles --nodigest


      Thank you for the help!


      Comment

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

        #4
        What was the zabbix-release package that you installed when using the instructions in https://www.zabbix.com/download?zabb...=agent&db=&ws=?

        Markku

        Comment

        • Bs_sousa
          Junior Member
          • Dec 2022
          • 6

          #5
          1. For Zabbix agent I used the procedure on the link you sent for Cent OS 7:


          # rpm -Uvh https://repo.zabbix.com/zabbix/6.2/r...el7.noarch.rpm
          # yum clean all​
          # yum install zabbix-agent

          The machine where I want to install the agent is in Cent OS 7.


          2.Don't know if it's relevant but Zabbix server is installed in Oracle Linux 8:

          Zabbix server version below

          >>> zabbix_server --version

          zabbix_server (Zabbix) 6.2.6
          Revision 6981d8b729a 5 December 2022, compilation time: Dec 5 2022 10:20:52

          Copyright (C) 2022 Zabbix SIA
          License GPLv2+: GNU GPL version 2 or later <https://www.gnu.org/licenses/>.
          This is free software: you are free to change and redistribute it according to
          the license. There is NO WARRANTY, to the extent permitted by law.

          This product includes software developed by the OpenSSL Project
          for use in the OpenSSL Toolkit (http://www.openssl.org/).

          Compiled with OpenSSL 1.1.1k FIPS 25 Mar 2021
          Running with OpenSSL 1.1.1k FIPS 25 Mar 2021


          ​Thank you.

          Comment

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

            #6
            Ok, maybe someone with a CentOS 7 server can comment what is the problem.

            Markku

            Comment

            • tim.mooney
              Senior Member
              • Dec 2012
              • 1427

              #7
              I think @Markku's initial diagnosis is correct. It's not clear to me how, but somehow the client you're having trouble with is pointed at the wrong upstream repo.

              What does the following command output on the system:

              Code:
              grep '^baseurl=https://repo.zabbix.com' /etc/yum.repos.d/*
              I downloaded the zabbix-release package you linked to, extracted its contents into /tmp and looked through the repo files it includes, and they all correctly point to /rhel/7/ areas of the repos. I also browsed the 3 repo locations that are enabled by that package:

              Code:
              baseurl=https://repo.zabbix.com/zabbix-agent2-plugins/1/rhel/7/$basearch/
              baseurl=https://repo.zabbix.com/zabbix/6.2/rhel/7/$basearch/
              baseurl=https://repo.zabbix.com/non-supported/rhel/7/$basearch/
              and none of those directories accidentally contain any packages tagged as '.el8'.

              That's why I think your system in question must have (at one point) got a repo definition installed incorrectly, and it's still messing things up.​

              Comment

              • Bs_sousa
                Junior Member
                • Dec 2022
                • 6

                #8
                Hi Tim,


                Seems you might be right!

                Below what I find when I ran the command you give:
                /etc/yum.repos.d/zabbix-agent2-plugins.repo:baseurl=https://repo.zabbix.com/zabbix-agent2-plugins/1/rhel/8/$basearch/
                /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/zabbix/6.2/rhel/8/$basearch/
                /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/non-supported/rhel/8/$basearch/
                /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/zabbix/6.1/rhel/8/$basearch/​


                Somehow it seems it didn't install the right repo.. it should be the one for rhel7 not 8!


                Any advice on how can I fix the issue?

                Thank you for the help!


                Comment

                • tim.mooney
                  Senior Member
                  • Dec 2012
                  • 1427

                  #9
                  Originally posted by Bs_sousa
                  Seems you might be right!

                  Below what I find when I ran the command you give:
                  /etc/yum.repos.d/zabbix-agent2-plugins.repo:baseurl=https://repo.zabbix.com/zabbix-agent2-plugins/1/rhel/8/$basearch/
                  /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/zabbix/6.2/rhel/8/$basearch/
                  /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/non-supported/rhel/8/$basearch/
                  /etc/yum.repos.d/zabbix.repo:baseurl=https://repo.zabbix.com/zabbix/6.1/rhel/8/$basearch/​

                  Somehow it seems it didn't install the right repo.. it should be the one for rhel7 not 8!
                  That kind of error is really easy to make, so don't feel bad.

                  Fixing it should be very easy. You just need to remove the incorrect install for zabbix-release package and then install the correct one for RHEL 7.

                  1) remove the incorrect package:
                  Code:
                  # yum remove zabbix-release
                  You can answer yes when yum prompts you. I don't think it should prompt you to include any other dependencies, so it should be just that package that gets removed.

                  2) once the package is gone, that should remove the incorrect repo files from /etc/yum.repos.d. If for some reason it doesn't, and /etc/yum.repos.d/zabbix.repo or /etc/yum.repos.d/zabbix-agent2-plugins.repo are still present after the 'zabbix-release' package has been removed, then you can use the 'rm' command to remove (just those) two files.

                  3) get rid of any cached yum metadata:
                  Code:
                  # yum clean all
                  4) install the correct version of the RPM for 'zabbix-release', that comes from the RHEL 7 download area.

                  Comment

                  • Bs_sousa
                    Junior Member
                    • Dec 2022
                    • 6

                    #10
                    Hi,

                    It solved the issue!

                    Thank you both for the help!

                    Best regards
                    Bruno Sousa

                    Comment

                    Working...