Skip to content

Fallback to IPv4 pool to fix keyserver receive failed #57

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

Merged
merged 1 commit into from
Jul 6, 2018

Conversation

rbreslow
Copy link
Contributor

@rbreslow rbreslow commented Jul 6, 2018

Overview

Travis CI builds were failing, seemingly at random. After further investigation, it turned out this was happening because IPv6 networking for Docker is disabled by default, and the SKS Keyservers high-availability pool contains some IPv6-only servers:

This PR adds a conditional expression to fallback to the IPv4-only SKS pool if we get an IPv6 server from the high-availability pool.

Fixes #56

Testing

See Travis CI build: https://travis-ci.org/azavea/docker-django/jobs/400941173

---> Running in 01cb1a99d43e
+ key=B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
+ mktemp -d
+ export GNUPGHOME=/tmp/tmp.FErDewuJ8q
+ gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
gpg: keybox '/tmp/tmp.FErDewuJ8q/pubring.kbx' created
gpg: keyserver receive failed: Cannot assign requested address
+ gpg --keyserver ipv4.pool.sks-keyservers.net --recv-keys B97B0AFCAA1A47F044F244A07FCC7D46ACCC4CF8
gpg: /tmp/tmp.FErDewuJ8q/trustdb.gpg: trustdb created
gpg: key 7FCC7D46ACCC4CF8: public key "PostgreSQL Debian Repository" imported
gpg: no ultimately trusted keys found
gpg: Total number processed: 1
gpg:               imported: 1

@rbreslow rbreslow self-assigned this Jul 6, 2018
@rbreslow rbreslow requested a review from hectcastro July 6, 2018 15:56
Copy link
Contributor

@hectcastro hectcastro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice sleuthing. 👍

@rbreslow rbreslow merged commit 020a8f9 into master Jul 6, 2018
@rbreslow rbreslow deleted the feature/jrb/fix-keyserver-issues branch July 6, 2018 16:07
@rbreslow
Copy link
Contributor Author

rbreslow commented Jul 6, 2018

Interesting that this hadn't come up beforehand!

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

Successfully merging this pull request may close these issues.

Builds on Travis will fail at random due to a gpg key server issue
2 participants