Ad Widget

Collapse

GPG key issue CentOS 7 repo

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cybertinus
    Junior Member
    • Jan 2014
    • 4

    #1

    GPG key issue CentOS 7 repo

    Hello everybody,

    When I try to update Zabbix from 3.2.3 to 3.2.4, I hit the following issue on my CentOS 7 Zabbix server:
    Code:
    root@zabbix1:~# yum clean all && yum update
    Loaded plugins: fastestmirror, replace
    Cleaning repos: base epel extras ius mariadb updates zabbix zabbix-non-supported
    Cleaning up everything
    Cleaning up list of fastest mirrors
    Loaded plugins: fastestmirror, replace
    base                                                                                                                                                                           | 3.6 kB  00:00:00
    epel/x86_64/metalink                                                                                                                                                           |  25 kB  00:00:00
    epel                                                                                                                                                                           | 4.3 kB  00:00:00
    extras                                                                                                                                                                         | 3.4 kB  00:00:00
    ius                                                                                                                                                                            | 2.3 kB  00:00:00
    mariadb                                                                                                                                                                        | 2.9 kB  00:00:00
    updates                                                                                                                                                                        | 3.4 kB  00:00:00
    zabbix                                                                                                                                                                         |  951 B  00:00:00
    zabbix-non-supported                                                                                                                                                           |  951 B  00:00:00
    (1/9): epel/x86_64/group_gz                                                                                                                                                    | 170 kB  00:00:00
    (2/9): epel/x86_64/primary_db                                                                                                                                                  | 4.6 MB  00:00:00
    (3/9): epel/x86_64/updateinfo                                                                                                                                                  | 751 kB  00:00:00
    (4/9): extras/7/x86_64/primary_db                                                                                                                                              | 122 kB  00:00:00
    (5/9): updates/7/x86_64/primary_db                                                                                                                                             | 3.8 MB  00:00:00
    (6/9): base/7/x86_64/primary_db                                                                                                                                                | 5.6 MB  00:00:00
    (7/9): ius/x86_64/primary_db                                                                                                                                                   | 199 kB  00:00:00
    (8/9): base/7/x86_64/group_gz                                                                                                                                                  | 155 kB  00:00:00
    (9/9): mariadb/primary_db                                                                                                                                                      |  18 kB  00:00:00
    (1/2): zabbix/x86_64/primary                                                                                                                                                   |  12 kB  00:00:00
    (2/2): zabbix-non-supported/x86_64/primary                                                                                                                                     | 1.6 kB  00:00:00
    Determining fastest mirrors
     * base: mirror.netrouting.net
     * epel: mirror.nl.leaseweb.net
     * extras: mirrors.supportex.net
     * ius: mirror.amsiohosting.net
     * updates: centos.mirror.transip.nl
    zabbix                                                                                                                                                                                          79/79
    zabbix-non-supported                                                                                                                                                                              4/4
    Resolving Dependencies
    --> Running transaction check
    ---> Package zabbix-agent.x86_64 0:3.2.3-1.el7 will be updated
    ---> Package zabbix-agent.x86_64 0:3.2.4-2.el7 will be an update
    ---> Package zabbix-sender.x86_64 0:3.2.3-1.el7 will be updated
    ---> Package zabbix-sender.x86_64 0:3.2.4-2.el7 will be an update
    ---> Package zabbix-server-mysql.x86_64 0:3.2.3-1.el7 will be updated
    ---> Package zabbix-server-mysql.x86_64 0:3.2.4-2.el7 will be an update
    ---> Package zabbix-web.noarch 0:3.2.3-1.el7 will be updated
    ---> Package zabbix-web.noarch 0:3.2.4-2.el7 will be an update
    ---> Package zabbix-web-mysql.noarch 0:3.2.3-1.el7 will be updated
    ---> Package zabbix-web-mysql.noarch 0:3.2.4-2.el7 will be an update
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ======================================================================================================================================================================================================
     Package                                                 Arch                                       Version                                          Repository                                  Size
    ======================================================================================================================================================================================================
    Updating:
     zabbix-agent                                            x86_64                                     3.2.4-2.el7                                      zabbix                                     342 k
     zabbix-sender                                           x86_64                                     3.2.4-2.el7                                      zabbix                                     244 k
     zabbix-server-mysql                                     x86_64                                     3.2.4-2.el7                                      zabbix                                     1.8 M
     zabbix-web                                              noarch                                     3.2.4-2.el7                                      zabbix                                     3.6 M
     zabbix-web-mysql                                        noarch                                     3.2.4-2.el7                                      zabbix                                     5.1 k
    
    Transaction Summary
    ======================================================================================================================================================================================================
    Upgrade  5 Packages
    
    Total download size: 6.0 M
    Is this ok [y/d/N]: y
    Downloading packages:
    Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
    warning: /var/cache/yum/x86_64/7/zabbix/packages/zabbix-agent-3.2.4-2.el7.x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY                          ]  0.0 B/s |  49 kB  --:--:-- ETA
    Public key for zabbix-agent-3.2.4-2.el7.x86_64.rpm is not installed
    (1/5): zabbix-agent-3.2.4-2.el7.x86_64.rpm                                                                                                                                     | 342 kB  00:00:00
    (2/5): zabbix-sender-3.2.4-2.el7.x86_64.rpm                                                                                                                                    | 244 kB  00:00:00
    (3/5): zabbix-server-mysql-3.2.4-2.el7.x86_64.rpm                                                                                                                              | 1.8 MB  00:00:01
    (4/5): zabbix-web-3.2.4-2.el7.noarch.rpm                                                                                                                                       | 3.6 MB  00:00:01
    (5/5): zabbix-web-mysql-3.2.4-2.el7.noarch.rpm                                                                                                                                 | 5.1 kB  00:00:00
    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Total                                                                                                                                                                 2.2 MB/s | 6.0 MB  00:00:02
    Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
    
    
    The GPG keys listed for the "Zabbix Official Repository - x86_64" repository are already installed but they are not correct for this package.
    Check that the correct key URLs are configured for this repository.
    
    
     Failing package is: zabbix-sender-3.2.4-2.el7.x86_64
     GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
    I've removed the key files in /etc/pki/rpm-gpg/ a few times now, tried to import them with rpm --import, I've reinstalled the zabbix-release.rpm from the official Zabbix repo, but nothing seams to help.
    I did find ZBX-11868, but the rpm --import doesn't seam to help.

    How badly have I destroyed the Zabbix repo configuration on my server and how do I get it working again?
  • onallion
    Senior Member
    • Mar 2016
    • 131

    #2
    I'm having the same issue trying to install a fresh Zabbix Agent on a centOS machine. Followed the documentation to the letter. Getting the same error as you

    EDIT: I've installed the previous version (yum install http://repo.zabbix.com/zabbix/3.2/rh...el7.x86_64.rpm), and it works fine.
    Last edited by onallion; 09-03-2017, 11:06.

    Comment

    • cnolan
      Junior Member
      • Sep 2016
      • 3

      #3
      Me too. Updating 3.2.4-1.el6 gives this error:

      Code:
      warning: rpmts_HdrFromFdno: Header V4 DSA/SHA1 Signature, key ID 79ea5ed4: NOKEY
      Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX-A14FE591
      
      
      The GPG keys listed for the "Zabbix Official Repository - x86_64" repository are already installed but they are not correct for this package.
      Check that the correct key URLs are configured for this repository.
      Looks like they build the packages with a different key? However the repo is not showing any new key available.

      Is there a bug-tracker?

      Comment

      • jan.garaj
        Senior Member
        Zabbix Certified Specialist
        • Jan 2010
        • 506

        #4
        Forum search will help you next time. There were already 2 threads for this problem before your thread. Issue has been fixed - https://support.zabbix.com/browse/ZBX-11868.
        Devops Monitoring Expert advice: Dockerize/automate/monitor all the things.
        My DevOps stack: Docker / Kubernetes / Mesos / ECS / Terraform / Elasticsearch / Zabbix / Grafana / Puppet / Ansible / Vagrant

        Comment

        • bettaa
          Junior Member
          • Apr 2020
          • 1

          #5
          run

          Code:
           
           rpm -import http://repo.zabbix.com/RPM-GPG-KEY-ZABBIX
          that'll get you squared right up

          Comment

          Working...