The problem is still here.
It seems that it is the last part of the docker push
that is taking to long => after all containers layers are pushed in the registry, the registry construct a global manifest to send back to the docker client. And the timeout appear (sometimes) at this moment on the OVH registry.
While we are working on our side to fix this issue, I think it would also be great to be able to configure the timeout parameter on the repo2docker
command.
Here is the python error log on the push :
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 397, in _error_catcher
yield
File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 479, in read
data = self._fp.read(amt)
File "/usr/lib/python3.6/http/client.py", line 449, in read
n = self.readinto(b)
File "/usr/lib/python3.6/http/client.py", line 483, in readinto
return self._readinto_chunked(b)
File "/usr/lib/python3.6/http/client.py", line 578, in _readinto_chunked
chunk_left = self._get_chunk_left()
File "/usr/lib/python3.6/http/client.py", line 546, in _get_chunk_left
chunk_left = self._read_next_chunk_size()
File "/usr/lib/python3.6/http/client.py", line 506, in _read_next_chunk_size
line = self.fp.readline(_MAXLINE + 1)
File "/usr/lib/python3.6/socket.py", line 586, in readinto
return self._sock.recv_into(b)
socket.timeout: timed out
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/jupyter-repo2docker", line 11, in <module>
sys.exit(main())
File "/usr/lib/python3.6/site-packages/repo2docker/__main__.py", line 344, in main
r2d.start()
File "/usr/lib/python3.6/site-packages/repo2docker/app.py", line 723, in start
self.push_image()
File "/usr/lib/python3.6/site-packages/repo2docker/app.py", line 456, in push_image
for line in client.push(self.output_image_spec, stream=True):
File "/usr/lib/python3.6/site-packages/docker/api/client.py", line 345, in _stream_helper
data = reader.read(1)
File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 496, in read
raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
File "/usr/lib/python3.6/contextlib.py", line 99, in __exit__
self.gen.throw(type, value, traceback)
File "/usr/lib/python3.6/site-packages/urllib3/response.py", line 402, in _error_catcher
raise ReadTimeoutError(self._pool, None, 'Read timed out.')
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out.