You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Containerd multipart fetch cancelled by progress timeout #12811
If my root cause analysis is correct, here are some solutions:
Adding a timeout-per-chunk so that a stalled pull is cancelled earlier would help retry the pull earlier, at the expense of redownloading these chunks.
bump the timeout from 5 min to something more ?
move the progress timeout a bit closer to the fetch, and if any chunk is downloading, not timeout.
bumping the MaxIdleConns to something higher would help, but not solve the issue, I think it could be a good idea to make this higher anyways though. This is the current default:
somehow give priority to early chunks, and add slowdowns on the later chunks if one chunk gets stuck, but that would make the code more complex, and slow and meh.
It sounds like head-of-line blocking. If first one is blocked, event if rest of them are still working on download, it will be considered as no-progress. We can write some UT test case to verify this behaviour.
What i have noticed recently when setting concurrent_layer_fetch_buffer = 33554432 and max_concurrent_downloads = 32, is a failure rate of at least 5% with "context canceled" However, I do not see aborted errors (I'm pasting the error from containerd below.).
Is it the same issue? Also, it looks like that #12802 is the same?
Errors in containerd
time="2026-03-03T02:02:16.312156545Z" level=error msg="failed to cleanup \"extract-297543922-tkoN sha256:aa62f7b0f621af0336d6f64fee7a96766580aac01011b117a4e57588e167ca10\"" error="snapshot extract-297543922-tkoN sha256:aa62f7b0f621af0336d6f64fee7a96766580aac01011b117a4e57588e167ca10 does not exist: not found"
time="2026-03-03T02:02:16.313933116Z" level=error msg="PullImage \"docker.io/lmsysorg/sglang:v0.4.3-cu124-srt\" failed" error="rpc error: code = Canceled desc = failed to pull and unpack image \"docker.io/lmsysorg/sglang:v0.4.3-cu124-srt\": failed to copy: context canceled"
time="2026-03-03T02:02:16.314008887Z" level=info msg="stop pulling image docker.io/lmsysorg/sglang:v0.4.3-cu124-srt: active requests=0, bytes read=10797330687"
Hi, @azr. I'm Dosu, and I'm helping the containerd team manage their backlog and am marking this issue as stale.
Issue Summary
You reported sporadic image pull failures in containerd v2.2.1 on large layers.
The failures appear during multipart downloads that stall and are then canceled after about 5 minutes with context canceled and aborted errors.
You suspected the progress timeout may be firing even while other chunks are still active, which could point to head-of-line blocking or progress-tracking issues.
Follow-up discussion suggested this may be related to no-progress behavior, and a unit test was proposed to help verify the timeout path.
A later report described similar context canceled failures with concurrent_layer_fetch_buffer = 33554432 and max_concurrent_downloads = 32, possibly matching the same underlying issue.
Next Steps
Please let us know if this is still relevant on the latest version of containerd.
If it is still reproducible, you can keep the discussion open by commenting here; otherwise, this issue will be automatically closed in 7 days.
This issue was closed because it has been stale for 2 weeks with no activity. Feel free to reopen or create a new issue if you would like to continue working on it.
Activity
azr commentedon Jan 23, 2026
If my root cause analysis is correct, here are some solutions:
Adding a timeout-per-chunk so that a stalled pull is cancelled earlier would help retry the pull earlier, at the expense of redownloading these chunks.
bump the timeout from 5 min to something more ?
move the progress timeout a bit closer to the fetch, and if any chunk is downloading, not timeout.
bumping the MaxIdleConns to something higher would help, but not solve the issue, I think it could be a good idea to make this higher anyways though. This is the current default:
containerd/core/remotes/docker/registry.go
Lines 254 to 268 in e86523e
fuweid commentedon Jan 23, 2026
It sounds like head-of-line blocking. If first one is blocked, event if rest of them are still working on download, it will be considered as no-progress. We can write some UT test case to verify this behaviour.
Add test to reproduce multipart fetch deadlock
strigazi commentedon Mar 4, 2026
Hello @azr ,
What i have noticed recently when setting
concurrent_layer_fetch_buffer = 33554432andmax_concurrent_downloads = 32, is a failure rate of at least 5% with "context canceled" However, I do not see aborted errors (I'm pasting the error from containerd below.).Is it the same issue? Also, it looks like that #12802 is the same?
Errors in containerd
containerd config snippet
dosubot commentedon Aug 3, 2026
Hi, @azr. I'm Dosu, and I'm helping the containerd team manage their backlog and am marking this issue as stale.
Issue Summary
context canceledandabortederrors.context canceledfailures withconcurrent_layer_fetch_buffer = 33554432andmax_concurrent_downloads = 32, possibly matching the same underlying issue.Next Steps
Thanks for your understanding and contribution.
github-actions commentedon Aug 18, 2026
This issue was closed because it has been stale for 2 weeks with no activity. Feel free to reopen or create a new issue if you would like to continue working on it.