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

Problem in step 3 of build: Failed to establish a new connection #8

Open
MSTechKnow opened this issue Sep 18, 2016 · 1 comment
Open

Comments

@MSTechKnow
Copy link

Getting connection failure in 'RUN pip install --upgrade pip'

Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f35053cfb00>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f35053cfe10>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f35053cfef0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f35053cffd0>: Failed to establish a new connection: [Errno -2] Name or service not known',)': /simple/pip/

@dmtucker
Copy link

dmtucker commented Jan 5, 2017

@MSTechKnow Are you running on a Ubuntu machine or some other OS with resolvconf? I have hit a very similar issue (on a completely unrelated project), and the culprit seems to be that resolvconf puts the loopback address as the only nameserver in /etc/resolv.conf.

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