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

urllib.error.URLError: <urlopen error [Errno 111] Connection refused> HELP ME!!! when running this command: sudo nvidia-docker-compose up --build #31

Open
Student201562 opened this issue Dec 28, 2018 · 5 comments

Comments

@Student201562
Copy link

Traceback (most recent call last):
File "/usr/lib/python3.5/urllib/request.py", line 1254, in do_open
h.request(req.get_method(), req.selector, req.data, headers)
File "/usr/lib/python3.5/http/client.py", line 1106, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python3.5/http/client.py", line 1151, in _send_request
self.endheaders(body)
File "/usr/lib/python3.5/http/client.py", line 1102, in endheaders
self._send_output(message_body)
File "/usr/lib/python3.5/http/client.py", line 934, in _send_output
self.send(msg)
File "/usr/lib/python3.5/http/client.py", line 877, in send
self.connect()
File "/usr/lib/python3.5/http/client.py", line 849, in connect
(self.host,self.port), self.timeout, self.source_address)
File "/usr/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/usr/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/nvidia-docker-compose", line 55, in
resp = request.urlopen('http://{0}/docker/cli/json'.format(args.nvidia_docker_host)).read().decode()
File "/usr/lib/python3.5/urllib/request.py", line 163, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.5/urllib/request.py", line 466, in open
response = self._open(req, data)
File "/usr/lib/python3.5/urllib/request.py", line 484, in _open
'_open', req)
File "/usr/lib/python3.5/urllib/request.py", line 444, in _call_chain
result = func(*args)
File "/usr/lib/python3.5/urllib/request.py", line 1282, in http_open
return self.do_open(http.client.HTTPConnection, req)
File "/usr/lib/python3.5/urllib/request.py", line 1256, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 111] Connection refused>

@Student201562 Student201562 changed the title HELP ME!!! when running this command: sudo nvidia-docker-compose up --build urllib.error.URLError: <urlopen error [Errno 111] Connection refused> HELP ME!!! when running this command: sudo nvidia-docker-compose up --build Dec 28, 2018
@monitor1379
Copy link

Same issue to me, have you find anyway to temporarily fix this?

@SubmitCode
Copy link

I have exactly the same problem but I don't know why. Anyone can help?

@TommeyChang
Copy link

I have the problem, too.

@Kongsea
Copy link

Kongsea commented Dec 23, 2019

exactly the same error as you. Is there anyone help to fix it?

@arthur-tacca
Copy link
Contributor

This error means that it could not connect to the nvidia-docker plugin. There are a few possible reasons for this, but the most likely two are:

  • You are using the newer nvidia-docker2 plugin, whereas this project was created for the much older nvidia-docker version 1 plugin which is now deprecated. Good news - you don't need nvidia-docker-compose at all, because the native Docker Compose works directly with nvidia-docker2. See the nvidia-docker2 documentation for information about this.

  • You are using the native GPU support in Docker, which is even newer than the nvidia-docker2 plugin (even that is now deprecated!). Unfortunately Docker Compose does not have support for that yet (see compose issue 6691). But this project cannot help you with that.

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

6 participants