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

Docker pull hangs - never calls callback #167

Closed
kyleburnett opened this issue Aug 14, 2015 · 2 comments
Closed

Docker pull hangs - never calls callback #167

kyleburnett opened this issue Aug 14, 2015 · 2 comments

Comments

@kyleburnett
Copy link

I'm using dockerode to pull down images from a private repository. Occasionally - maybe about 10% of the time - dockerode hangs because the modem never calls the callback with the stream. After putting some logging messages into lib/modem.js in the docker-modem dependency, I discovered that a typical pull causes 2 json responses (line 232 of modem.js) followed by a stream response (line 230 of modem.js). When the modem hangs, I don't see a stream response. Tailing the registry logs, I don't see anything out of the ordinary; it looks the same from a successful pull to an unsuccessful one.

I'm not sure if this is an issue with dockerode, docker-modem, docker daemon, or the registry. Is there a good way to find out?

@kyleburnett
Copy link
Author

So it appears docker pull hangs only because the i/o timeout was longer than the test timeout that I was running. Looking at the docker logs, this is the error:

ERRO[10608] Error from V2 registry: Get https://registry.thinknode.dev/v2/035088a9398b/math/manifests/sha256:10af39c70b7b7f3bc6d9539c38180d67a626c033487e706e5396d3c5af6c58a8: read tcp 127.0.0.1:443: i/o timeout 
ERRO[10608] Handler for POST /images/create returned error: pulling with digest reference failed from v2 registry 
ERRO[10608] HTTP Error                                    err=pulling with digest reference failed from v2 registry statusCode=500

@kyleburnett
Copy link
Author

This seems to be related to moby/moby#13337 and not at all related to dockerode. Closing.

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

1 participant