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

pip and IPv6 #12486

Closed
1 task done
jenslink opened this issue Jan 25, 2024 · 1 comment
Closed
1 task done

pip and IPv6 #12486

jenslink opened this issue Jan 25, 2024 · 1 comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@jenslink
Copy link

Description

Hi,

there is a small problem with IPv6 only environments with an IPv6 only resolver. You can
not install anything:

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f835a601090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/

I debugged this, and it all boils down to a CDN hosted by Fastly and the Fastly authoritative DNS Severs used do not have AAAA records. The solution is easy: Ask Fastly to change to different auth servers with AAAA records.

deb.debian.org (an also the OpenBSD CDN) had the same problem.

Temporary workaround: use a DNS dual-stacked DNS resolver.

Expected behavior

No response

pip version

all

Python version

all

OS

all

How to Reproduce

  • Setup an IPv6 only VM
  • configure a local resolver (or have another IPv6 only VM with an IPv6 only resolver
  • install anything via pip

Output

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f835a601090>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/

Code of Conduct

@jenslink jenslink added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Jan 25, 2024
@jeanas
Copy link
Contributor

jeanas commented Jan 25, 2024

If the problem is in PyPI's CDN then it is not a problem in pip. Moved to the PyPI tracker as pypi/warehouse#15277

@jeanas jeanas closed this as completed Jan 25, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants