-
Notifications
You must be signed in to change notification settings - Fork 510
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
Long running push sometimes fail with "use of closed network connection" #367
Comments
I have one image that is being specially hard to push to hub, with which I've hit the above error ^ multiple times. On that same image, I'm also hitting the following now:
|
I'm seeing this issue too. I've got about 15 containers that I frequently build using a script which builds the architectures I want for each container and then pushes to Docker hub. I updated one of the containers this morning (literally added a single character to two scripts, so no major changes) and ran my build script, but it bombs out with the same error you're experiencing. This container in question is being built for 5 architectures, using two nodes. I must have tried a dozen times now, but it's failed every single time. I'm also seeing long running pushes (25mins!) , but I think that it's just idling until times out and reports the errors as closed connection. Each architecture is only ~40MB, so 210MB total so there's no chance it should be taking this long. |
same problem her - a build which run quickly (less than a minute) after it failed first time. for platforms, docker login just before the build, use of buildx from
any workaround? thank you for improvements (before it was another error message)! |
I actually fixed my problem by pulling the latest version of the registry container. I had set a static version to 2.7.0 (IIRC) due to htpasswd being removed from latest, and never changed it back. |
Same is happening to us:
Seems like a load balancer or network timeout is breaking the Note: we are trying to push from outside the US. |
I upgraded to |
@wezell I'm in the US and seeing this issue constantly with Docker Hub. It does not seem to happen at all with either my local registry or ghcr.io (that I started using recently), which does suggest something specific to Hub (more aggressive timeout for example, that would kick in with slower connections). The root of the issue though is still containerd inability to resume uploads (through byte-range push). |
I have the same problem arc with Docker Desktop as described above -- multi-arch build hitting the "401 Unauthorized" error when I allowed it to default to :buildx-stable-1, turning into the "use of closed network" error when I made a new builder using :master. Docker Desktop 2.4.0.0 if it's relevant (Docker 19.03.13). |
I typically get this error at least twice per image push, from different OS and different network connections. |
This is a follow-up to #324.
Now using buildkit master, that does properly fix ^.
Now, the following happens regularly:
This is with docker4mac. It is somewhat hard to reproduce but happens often enough with repeated tries (eg: long running pushes is the key).
Let me know what kind of information would be helpful to diagnose this.
The text was updated successfully, but these errors were encountered: