-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
"failed to copy: io: read/write on closed pipe" on ctr images push
while pushing large images
#7972
Comments
Similar to docker/build-push-action#761. |
I'm having the same issue.
|
I am having the same issue pushing to eu.gcr.io. I noticed it is happening when there are 2 or more tags, meaning pushing to 2 or more registries at the same time. I am using buildx and this is happening in our gitlab runners, running on kubernetes which nodes use containerd. |
@crazy-max I guess so. But the error |
Had this issue a couple of times today. Rerun 3 times and finally success. |
Same here. Any solutions? |
Having the same issue as well. Rerunning solves the issue eventually but it's not ideal and it breaks parts of our CI that relies on an image being pushed. |
Workaround that seems to be working for me is use an older buildkit image version. |
I'm using Docker Setup Buildx and having this issue too. But I don't think it's changed buildkit versions since October. Could it be something else? |
No, BuildKit 0.10.6 uses containerd v1.6.3 and #6995 change appears first in containerd v1.6.9 and BuildKit 0.11 uses containerd v1.6.14 which contains this change. |
same here |
same here. any solution ? |
same issue |
A fix in currently in progress: #7985 As far as I can tell there is no easy workaround, except to temporarily downgrade containerd (or buildkit, if you're following from that issue). |
We too facing the same error: #22 ERROR: failed to push ghcr.io/atlanhq/atlas-master:latest: failed to copy: io: read/write on closed pipe
------
> exporting to image:
------
ERROR: failed to solve: failed to push ghcr.io/atlanhq/atlas-master:latest: failed to copy: io: read/write on closed pipe
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/atlanhq/atlas-master:latest: failed to copy: io: read/write on closed pipe Tried retying the job but still we get the same. |
Same issue for our repos. However, it's intermittent. Rerunning will eventually get through. |
#7985 should resolve the issues entirely. The issue is a client-side fix - no registry-side changes on GHCR will be necessary. |
failed to copy: io: read/write on closed pipe - use DockerHub instead of dhcr.io - ref: containerd/containerd#7972
The fix is now picked into BuildKit v0.11.2 / Buildx v0.10.1 🎉 |
Description
While pushing large container image to a registry using
hitting the following error
Notes:
ghcr.io
only. Couldnt reproduce for dockerhub or quay. (Again this can be due to randomness)Steps to reproduce the issue
sudo ctr content fetch --all-platforms container-registry.oracle.com/database/express:21.3.0-xe
ctr images push ghcr.io/akhilerm/testing-gha:io-failure container-registry.oracle.com/database/express:21.3.0-xe
Reproduced using this image which is 3.3GiB in size.
I will update more info into the issue, if this can be reproduced easily; as currently testing requires uploading the 3GiB image and can take a lot of time.
Describe the results you received and expected
Expected the image to be successfully pushed to the registry
What version of containerd are you using?
412ca49
Any other relevant information
$ runc --version runc version 1.1.4 commit: v1.1.4-0-g5fd4c4d spec: 1.0.2-dev go: go1.18.9 libseccomp: 2.5.3 $ uname -a Linux ams-hz-ubu-055 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Show configuration if it is related to CRI plugin.
The text was updated successfully, but these errors were encountered: