nvidia-docker-compose icon indicating copy to clipboard operation
nvidia-docker-compose copied to clipboard

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

Open Student201562 opened this issue 5 years ago • 5 comments

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 avatar Dec 28 '18 07:12 Student201562

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

monitor1379 avatar Feb 01 '19 03:02 monitor1379

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

SubmitCode avatar Feb 04 '19 04:02 SubmitCode

I have the problem, too.

TommeyChang avatar Oct 14 '19 22:10 TommeyChang

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

Kongsea avatar Dec 23 '19 11:12 Kongsea

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.

arthur-tacca avatar Jan 06 '20 09:01 arthur-tacca