Repository navigation
Description
Description
We recently attempted to upgrade containerd from 2.1.3 to 2.2.1. Following the upgrade we started noticing a small error rate where image pulls fail due to what seems to be a timeout.
{
"msg":"cancel pulling image REDACTED because of no progress in 5m0s",
"level":"error",
"time":"2026-01-20T11:58:33.474002390Z"
}
{
"msg":"stop pulling image REDACTED: active requests=2, bytes read=33554432",
"level":"info",
"time":"2026-01-20T11:58:33.474111392Z"
}
{
"msg":"PullImage \"REDACTED\" failed",
"level":"error",
"error":"rpc error: code = Canceled desc = failed to pull and unpack image \"REDACTED\": context canceled",
"time":"2026-01-20T11:58:33.478690237Z"
}The error rate is fairly small. For a given day we saw 4,482 error out of 6,458,935 image pulls (~0.07% error rate).
The main changes to our config from 2.1.3 to 2.2.1 was the configuration for parallel pulls:
[plugins.'io.containerd.transfer.v1.local']
max_concurrent_downloads = 20
concurrent_layer_fetch_buffer = 16777216
max_concurrent_unpacks = 5Steps to reproduce the issue
Haven't found a way to reproduce yet. The error rate is minimal.
From our initial investigation it seems like #12331 should have fixed it but potentially introduced another error path?
Describe the results you received and expected
Image pull failures where we don't expect to see them.
What version of containerd are you using?
2.2.1
Any other relevant information
$ runc --version
runc version 1.3.4
commit: v1.3.4-0-gd6d73eb8
spec: 1.2.1
go: go1.24.10
libseccomp: 2.5.6$ sudo ./crictl info
{
"cniconfig": {
"Networks": [
{
"Config": {
"CNIVersion": "0.3.1",
"Name": "cni-loopback",
"Plugins": [
{
"Network": {
"ipam": {},
"type": "loopback"
},
"Source": "{\"type\":\"loopback\"}"
}
],
"Source": "{\n\"cniVersion\": \"0.3.1\",\n\"name\": \"cni-loopback\",\n\"plugins\": [{\n \"type\": \"loopback\"\n}]\n}"
},
"IFName": "lo"
},
{
"Config": {
"CNIVersion": "0.4.0",
"Name": "aws-cni",
"Plugins": [
{
"Network": {
"ipam": {},
"name": "aws-cni",
"type": "aws-cni"
},
"Source": "{\"mtu\":\"9001\",\"name\":\"aws-cni\",\"pluginLogFile\":\"/pay/log/aws-routed-eni/aws-k8s-cni-plugin.log\",\"pluginLogLevel\":\"DEBUG\",\"podSGEnforcingMode\":\"standard\",\"type\":\"aws-cni\",\"vethPrefix\":\"eni\"}"
},
{
"Network": {
"ipam": {
"type": "host-local"
},
"name": "egress-cni",
"type": "egress-cni"
},
"Source": "{\"enabled\":\"false\",\"ipam\":{\"dataDir\":\"/run/cni/v4pd/egress-v6-ipam\",\"ranges\":[[{\"subnet\":\"fd00::ac:0/118\"}]],\"routes\":[{\"dst\":\"::/0\"}],\"type\":\"host-local\"},\"mtu\":\"9001\",\"name\":\"egress-cni\",\"pluginLogFile\":\"/var/log/aws-routed-eni/egress-v6-plugin.log\",\"pluginLogLevel\":\"DEBUG\",\"randomizeSNAT\":\"prng\",\"type\":\"egress-cni\"}"
},
{
"Network": {
"capabilities": {
"portMappings": true
},
"ipam": {},
"type": "portmap"
},
"Source": "{\"capabilities\":{\"portMappings\":true},\"type\":\"portmap\"}"
},
{
"Network": {
"capabilities": {
"bandwidth": true
},
"ipam": {},
"type": "bandwidth"
},
"Source": "{\"capabilities\":{\"bandwidth\":true},\"type\":\"bandwidth\"}"
}
],
"Source": "{\n \"cniVersion\": \"0.4.0\",\n \"name\": \"aws-cni\",\n \"disableCheck\": true,\n \"plugins\": [\n {\n \"name\": \"aws-cni\",\n \"type\": \"aws-cni\",\n \"vethPrefix\": \"eni\",\n \"podSGEnforcingMode\": \"standard\",\n \"mtu\": \"9001\",\n \"pluginLogFile\": \"/pay/log/aws-routed-eni/aws-k8s-cni-plugin.log\",\n \"pluginLogLevel\": \"DEBUG\"\n },\n {\n \"name\": \"egress-cni\",\n \"type\": \"egress-cni\",\n \"ipam\": {\n \"type\": \"host-local\",\n \"routes\": [\n {\n \"dst\": \"::/0\"\n }\n ],\n \"dataDir\": \"/run/cni/v4pd/egress-v6-ipam\",\n \"ranges\": [\n [\n {\n \"subnet\": \"fd00::ac:0/118\"\n }\n ]\n ]\n },\n \"enabled\": \"false\",\n \"randomizeSNAT\": \"prng\",\n \"mtu\": \"9001\",\n \"pluginLogFile\": \"/var/log/aws-routed-eni/egress-v6-plugin.log\",\n \"pluginLogLevel\": \"DEBUG\"\n },\n {\n \"type\": \"portmap\",\n \"capabilities\": {\n \"portMappings\": true\n }\n },\n {\n \"type\": \"bandwidth\",\n \"capabilities\": {\n \"bandwidth\": true\n }\n }\n ]\n}"
},
"IFName": "eth0"
}
],
"PluginConfDir": "/etc/cni/net.d",
"PluginDirs": [
"/opt/cni/bin"
],
"PluginMaxConfNum": 1,
"Prefix": "eth"
},
"config": {
"cdiSpecDirs": [
"/etc/cdi",
"/var/run/cdi"
],
"cni": {
"binDir": "",
"binDirs": [
"/opt/cni/bin"
],
"confDir": "/etc/cni/net.d",
"confTemplate": "",
"ipPref": "",
"maxConfNum": 1,
"setupSerially": false,
"useInternalLoopback": false
},
"containerd": {
"defaultRuntimeName": "runc",
"ignoreBlockIONotEnabledErrors": false,
"ignoreRdtNotEnabledErrors": false,
"runtimes": {
"nvidia-container-runtime": {
"ContainerAnnotations": null,
"PodAnnotations": null,
"baseRuntimeSpec": "/etc/containerd/cri-base.json",
"cgroupWritable": false,
"cniConfDir": "",
"cniMaxConfNum": 0,
"io_type": "",
"options": {
"BinaryName": "/usr/bin/nvidia-container-runtime",
"SystemdCgroup": true
},
"privileged_without_host_devices": false,
"privileged_without_host_devices_all_devices_allowed": false,
"runtimePath": "",
"runtimeType": "io.containerd.runc.v2",
"sandboxer": "podsandbox",
"snapshotter": ""
},
"runc": {
"ContainerAnnotations": null,
"PodAnnotations": null,
"baseRuntimeSpec": "/etc/containerd/cri-base.json",
"cgroupWritable": false,
"cniConfDir": "",
"cniMaxConfNum": 0,
"io_type": "",
"options": {
"BinaryName": "/usr/local/sbin/runc",
"CriuImagePath": "",
"CriuWorkPath": "",
"IoGid": 0,
"IoUid": 0,
"NoNewKeyring": false,
"Root": "",
"ShimCgroup": "",
"SystemdCgroup": true
},
"privileged_without_host_devices": false,
"privileged_without_host_devices_all_devices_allowed": false,
"runtimePath": "",
"runtimeType": "io.containerd.runc.v2",
"sandboxer": "podsandbox",
"snapshotter": ""
}
}
},
"containerdEndpoint": "/run/containerd/containerd.sock",
"containerdRootDir": "/pay/containerd",
"device_ownership_from_security_context": false,
"disableApparmor": false,
"disableHugetlbController": true,
"disableProcMount": false,
"drainExecSyncIOTimeout": "0s",
"enableCDI": true,
"enableSelinux": false,
"enableUnprivilegedICMP": true,
"enableUnprivilegedPorts": true,
"ignoreDeprecationWarnings": null,
"ignoreImageDefinedVolumes": false,
"maxContainerLogLineSize": 204800,
"netnsMountsUnderStateDir": false,
"restrictOOMScoreAdj": false,
"rootDir": "/pay/containerd/io.containerd.grpc.v1.cri",
"selinuxCategoryRange": 1024,
"stateDir": "/run/containerd/io.containerd.grpc.v1.cri",
"tolerateMissingHugetlbController": true,
"unsetSeccompProfile": ""
},
"features": {
"supplemental_groups_policy": true
},
"golang": "go1.24.11",
"lastCNILoadStatus": "OK",
"lastCNILoadStatus.default": "OK",
"runtimeHandlers": [
{
"features": {
"recursive_read_only_mounts": true,
"user_namespaces": true
}
},
{
"features": {
"recursive_read_only_mounts": true,
"user_namespaces": true
},
"name": "nvidia-container-runtime"
},
{
"features": {
"recursive_read_only_mounts": true,
"user_namespaces": true
},
"name": "runc"
}
],
"status": {
"conditions": [
{
"message": "",
"reason": "",
"status": true,
"type": "RuntimeReady"
},
{
"message": "",
"reason": "",
"status": true,
"type": "NetworkReady"
},
{
"message": "",
"reason": "",
"status": true,
"type": "ContainerdHasNoDeprecationWarnings"
}
]
}
}/etc/containerd/cri-base.json is the default CRI base with overrides on rlimits and doesn't seem relevant to the bug being reported. W
$ uname -a
Linux i-0e16aa7c776b59047 6.8.0-1044-aws #46-Ubuntu SMP Fri Nov 21 16:50:44 UTC 2025 x86_64 x86_64 x86_64 GNU/LinuxShow configuration if it is related to CRI plugin.
$ cat /etc/containerd/config.toml
version = 2
root = "/pay/containerd"
state = "/run/containerd"
oom_score = -999
imports = ["/etc/containerd/*.toml"]
[grpc]
address = "/run/containerd/containerd.sock"
uid = 0
gid = 400
[metrics]
address = "127.0.0.1:1338"
[plugins]
[plugins.'io.containerd.transfer.v1.local']
max_concurrent_downloads = 3
concurrent_layer_fetch_buffer = 16777216
max_concurrent_unpacks = 1
[plugins."io.containerd.gc.v1.scheduler"]
pause_threshold = 0.1
[plugins."io.containerd.grpc.v1.cri"]
sandbox_image = <REDACTED_INTERNAL_REGISTRY_PAUSE_IAMGE>
max_container_log_line_size = 204800
[plugins."io.containerd.grpc.v1.cri".containerd]
default_runtime_name = "runc"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes]
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc]
runtime_type = "io.containerd.runc.v2"
base_runtime_spec = "/etc/containerd/cri-base.json"
[plugins."io.containerd.grpc.v1.cri".containerd.runtimes.runc.options]
BinaryName = "/usr/local/sbin/runc"
SystemdCgroup = true
[plugins."io.containerd.cri.v1.images"]
[plugins."io.containerd.cri.v1.images".registry]
config_path = "/etc/containerd/certs.d"Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
dosubot commentedon Jul 27, 2026
Hi, @dl-stripe. I'm Dosu, and I'm helping the containerd team manage their backlog and am marking this issue as stale.
Issue Summary
context canceled.Next Steps
Thanks for your understanding and contribution.
github-actions commentedon Aug 11, 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.