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

mlad build - image push시 timeout 발생 #441

Closed
kkkdeon opened this issue Sep 1, 2022 · 0 comments · Fixed by #442
Closed

mlad build - image push시 timeout 발생 #441

kkkdeon opened this issue Sep 1, 2022 · 0 comments · Fixed by #442
Assignees
Labels
bug Something isn't working

Comments

@kkkdeon
Copy link
Collaborator

kkkdeon commented Sep 1, 2022

큰 image가 push 될 때 python 상에서 timeout 발생

Traceback (most recent call last):
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/MLAppDeploy/python/mlad/cli/__init__.py", line 11, in decorated
    func(*args, **kwargs)
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/MLAppDeploy/python/mlad/cli/image_cli.py", line 33, in build
    for line in image.build(file, quiet, no_cache, pull):
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/MLAppDeploy/python/mlad/cli/image.py", line 140, in build
    for line in ctlr.push_image(repository):
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/MLAppDeploy/python/mlad/core/docker/controller.py", line 119, in push_image
    for line in lines:
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/docker/api/client.py", line 346, in _stream_helper
    for chunk in json_stream(self._stream_helper(response, False)):
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/docker/utils/json_stream.py", line 66, in split_buffer
    for data in stream_as_text(stream):
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/docker/utils/json_stream.py", line 22, in stream_as_text
    for data in stream:
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/docker/api/client.py", line 352, in _stream_helper
    data = reader.read(1)
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/urllib3/response.py", line 541, in read
    raise IncompleteRead(self._fp_bytes_read, self.length_remaining)
  File "/usr/lib/python3.7/contextlib.py", line 130, in __exit__
    self.gen.throw(type, value, traceback)
  File "/mnt/c/Users/yhkim/Desktop/mpppp/mpp/plugin/mlad0.2.0/lib/python3.7/site-packages/urllib3/response.py", line 443, in _error_catcher
    raise ReadTimeoutError(self._pool, None, "Read timed out.")
urllib3.exceptions.ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out.

ReadTimeoutError: UnixHTTPConnectionPool(host='localhost', port=None): Read timed out.

관련 이슈: docker/docker-py#931 (comment)

@kkkdeon kkkdeon added the bug Something isn't working label Sep 1, 2022
@kkkdeon kkkdeon self-assigned this Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant