Skip to content

Packages cannot be downloaded on IPv6-only networks #15277

Open
@jeanas

Description

@jeanas

Posted by @jenslink on the pip tracker (pypa/pip#12486), moved here:

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

* [x]  I agree to follow the [PSF Code of Conduct](https://www.python.org/psf/conduct/).

Metadata

Metadata

Assignees

No one assigned

    Labels

    CDN/networkIssues related to our CDN, users having problems connecting to PyPIbug 🐛

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions