Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image builds failing with 'Error: GPG check FAILED' #5

Closed
geerlingguy opened this issue Apr 20, 2020 · 8 comments
Closed

Image builds failing with 'Error: GPG check FAILED' #5

geerlingguy opened this issue Apr 20, 2020 · 8 comments

Comments

@geerlingguy
Copy link
Owner

See failed build: https://travis-ci.com/github/geerlingguy/docker-centos8-ansible/builds/160777266#L585-L628

Total                                           1.1 MB/s | 1.1 MB     00:01     
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
warning: /var/cache/dnf/AppStream-02e86d1c976ab532/packages/python3-pip-9.0.3-15.el8.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID 8483c65d: NOKEY
CentOS-8 - AppStream                            1.6 MB/s | 1.6 kB     00:00    
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Key imported successfully
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Import of key(s) didn't help, wrong key(s)?
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
CentOS-8 - Base                                 1.6 MB/s | 1.6 kB     00:00    
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Importing GPG key 0x8483C65D:
 Userid     : "CentOS (CentOS Official Signing Key) <security@centos.org>"
 Fingerprint: 99DB 70FA E1D7 CE22 7FB6 4882 05B5 55B3 8483 C65D
 From       : /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Key imported successfully
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Import of key(s) didn't help, wrong key(s)?
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
error: rpmdbNextIterator: skipping h#     173 blob size(4836): BAD, 8 + 16 * il(70) + dl(3708)
Public key for python3-pip-9.0.3-15.el8.noarch.rpm is not installed. Failing package is: python3-pip-9.0.3-15.el8.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64.rpm is not installed. Failing package is: python36-3.6.8-2.module_el8.1.0+245+c39af44f.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for python3-setuptools-39.2.0-5.el8.noarch.rpm is not installed. Failing package is: python3-setuptools-39.2.0-5.el8.noarch
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for sudo-1.8.25p1-8.el8_1.1.x86_64.rpm is not installed. Failing package is: sudo-1.8.25p1-8.el8_1.1.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
Public key for which-2.21-10.el8.x86_64.rpm is not installed. Failing package is: which-2.21-10.el8.x86_64
 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
The downloaded packages were saved in cache until the next successful transaction.
You can remove cached packages by executing 'dnf clean packages'.
Error: GPG check FAILED
The command '/bin/sh -c yum makecache --timer  && yum -y install epel-release initscripts  && yum -y update  && yum -y install       sudo       which       hostname       hon3       python3-pip  && yum clean all' returned a non-zero code: 1
@geerlingguy
Copy link
Owner Author

Strange, locally it builds fine. This seems to be something strange with Travis CI's build environment :/

@geerlingguy
Copy link
Owner Author

It seems like something gets messed up with the GPG signing key after yum -y update && yum clean all, so for now I'm going to drop that from this image build and see if that fixes the build.

@geerlingguy
Copy link
Owner Author

Well that's weird... now it's failing to even get repo metadata for AppStream:

Step 6/12 : RUN yum makecache --timer  && yum -y install epel-release initscripts  && yum -y update  && yum -y install       sudo       which       hostname       python3       python3-pip  && yum clean all
 ---> Running in 23db156e206d
Failed determining last makecache time.
CentOS-8 - AppStream                             25 kB/s | 5.4 MB     03:39    
Failed to download metadata for repo 'AppStream'
Error: Failed to download metadata for repo 'AppStream'

See failed build: https://travis-ci.com/github/geerlingguy/docker-centos8-ansible/jobs/321378590#L218

@geerlingguy
Copy link
Owner Author

I'm going to leave this be for another week or so and see if it magically fixes itself. Might be a Travis CI environment issue, not sure.

@geerlingguy
Copy link
Owner Author

@geerlingguy
Copy link
Owner Author

Today, it's building fine locally again. Going to re-run in Travis and see what's up there.

geerlingguy added a commit that referenced this issue May 7, 2020
geerlingguy added a commit that referenced this issue May 7, 2020
geerlingguy added a commit that referenced this issue May 7, 2020
Issue #5: Fix GPG issues installing packages.
@geerlingguy
Copy link
Owner Author

The above change (merging the two installs, dropping the extra yum update) seems to have fixed this!

@dmlb2000
Copy link

dmlb2000 commented May 7, 2020

Not sure if this is related but seems like the docker build is now busted... see issue #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants