Repository navigation
Description
What happened in your environment?
oras copy --from-oci-layout hangs after reaching 100%. The artifact is
successfully pushed (confirmed by querying the registry API), but ORAS never
exits. Ctrl+C is required. Debug output shows some requests receive no response.
Hangs indefinitely after 100%. Ctrl+C required.
The artifact IS present despite the hang (PS: see notes):
curl -s http://localhost:5000/v2/nginx/tags/list
# {"name":"nginx","tags":["1.31.2"]}Debug output (--debug) shows some requests receive no response:
# oras copy --from-oci-layout --debug \
# ./oci-layout:alpine-latest localhost:5000/nginx:1.31.2
...
[2026-07-06T12:55:41.575580874+02:00][ERROR]: <-- Response #30
Error in getting response: failed to perform "Push" on destination: Put "http://localhost:5000/v2/nginx/blobs/uploads/9c34b623-15d4-4197-a3a4-89df63508067?digest=sha256%3Ae95a6c7ea7d49b37920899b023ecd0e32796c976c1748491f76cae53ba86d13a": EOF
[2026-07-06T12:55:41.575758006+02:00][ERROR]: <-- Response #24
Error in getting response: failed to perform "Push" on destination: Put "http://localhost:5000/v2/nginx/blobs/uploads/9c34b623-15d4-4197-a3a4-89df63508067?digest=sha256%3Ae95a6c7ea7d49b37920899b023ecd0e32796c976c1748491f76cae53ba86d13a": EOF
[2026-07-06T12:55:41.575759037+02:00][ERROR]: <-- Response #31
Error in getting response: failed to perform "Push" on destination: Put "http://localhost:5000/v2/nginx/blobs/uploads/9c34b623-15d4-4197-a3a4-89df63508067?digest=sha256%3Ae95a6c7ea7d49b37920899b023ecd0e32796c976c1748491f76cae53ba86d13a": EOF
Error from destination registry for "localhost:5000/nginx:1.31.2": Put "http://localhost:5000/v2/nginx/blobs/uploads/9c34b623-15d4-4197-a3a4-89df63508067?digest=sha256%3Ae95a6c7ea7d49b37920899b023ecd0e32796c976c1748491f76cae53ba86d13a": EOF
Notes
Also happened with docker.io/library/alpine:3.24.1 and docker.io/library/hello-world:latest.
Size or number of layers doesn't seems to be an important factor for the behavior.
CTRL+C after 1sec of stalling is good enought.
Sometimes, I need to run the command and CTRL+C multiple times for the image to be fully pushed to the registry.
I intensively use ORAS to push multiple artefacts to AWS ECR. Never had an issue (and i still don't).
It's maybe related to reading from oci-layout locally?
What did you expect to happen?
Command completes and exits after push is confirmed.
How can we reproduce it?
# 1. Start Zot
podman run -d -p 5000:5000 --name zot ghcr.io/project-zot/zot-linux-amd64:v2.1.18
# 2. Save alpine to OCI layout
oras copy --to-oci-layout docker.io/library/nginx:1.31.2 ./oci-layout:nginx-1.31.2
# 3. Push from OCI layout to Zot — hangs after 100%
oras copy --from-oci-layout ./oci-layout:nginx-1.31.2 localhost:5000/nginx:1.31.2
# 4. Cleanup
rm -rf oci-layout/
podman stop zot && podman rm zotWhat is the version of your ORAS CLI?
Tested on ORAS 1.3.2 with two different registries (Zot and Docker Distribution
registry:3.1.1) — both affected.
What is your OS environment?
OS: Fedora release 43 amd64
Are you willing to submit PRs to fix it?
- Yes, I am willing to fix it.
Activity
TerryHowe commentedon Jul 7, 2026
Did you look at the errors on zot? Sounds like it is failing and/or hanging.
karnarokEpoch commentedon Aug 4, 2026
I did not look for an error in Zot or Registry. I thought that if I have the issue with Zot and Registry, it might be an ORAS issue, more than an OCI Registry issue.
I reproduced the problem with both registry, and had the same problem, but without a clear error log from the OCI registry side (zot might be the most verbose one):
Searching in logs I found the start of the POST at 36:18.
It timed out at 37:18.
Just before you have the error timeout, but it seems triggered by zot.
And if you look at content-length on response, you can see that Zot got all the blob.
karnarokEpoch commentedon Aug 4, 2026
I did try something new.
Copy directly from remote registry, download speed is faster, but I ended up twice with a fatal error (not all the time).
It seems unrelated to the initial issue topic, it fails in the display module
TerryHowe commentedon Aug 5, 2026
The
send on closed channelpanic reported in this comment has been split out into #2125 (labeledhelp wanted) with a full root-cause analysis and suggested fix.That panic is a concrete, fixable ORAS CLI concurrency bug (a use-after-close race on the progress channel —
net/http'swriteLoopgoroutine keeps reading the tracked reader aftermessenger.Close()closes the update channel).The original symptom in this issue —
oras copy --from-oci-layouthanging after 100% with anEOFon the blobPUT— appears to be a registry/transport timeout (Zot logged the full blob received, then timed out) ororas-goretry behavior, rather than a CLI bug. Closing this in favor of the tracked, actionable panic in #2125. If the hang persists independently of the panic, please reopen with--debugoutput around the retry/backoff and we can triage it (likely upstream inoras-go).TerryHowe commentedon Aug 5, 2026
Thanks for your issue. Created a new issue so it could be fixed burning less tokens