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
"failed to stop container: context deadline exceeded: unknown"
After that container state can't be changed due to fact that Pid is not exists anymore and Exit event was not handled properly.
Error from log:
Oct 13 16:12:08 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:12:08.020634516Z" level=error msg="Failed to handle backOff event &TaskExit{ContainerID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,ID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,Pid:12412,ExitStatus:0,ExitedAt:2023-10-13 01:10:17.977124706 +0000 UTC,XXX_unrecognized:[],} for 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd" error="failed to handle container TaskExit event: failed to cleanup container 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd in task-service: container must be created: failed precondition"
full log:
Oct 13 01:10:15 hostname containerd[1548]: time="2023-10-13T01:10:15.243451096Z" level=info msg="CreateContainer within sandbox \"d102f495d90c786957cd58cc877de75b9da599da9cba0273d8f754adb8fb1525\" for container &ContainerMetadata{Name:cache-job,Attempt:0,}"
Oct 13 01:10:15 hostname containerd[1548]: time="2023-10-13T01:10:15.307650802Z" level=info msg="CreateContainer within sandbox \"d102f495d90c786957cd58cc877de75b9da599da9cba0273d8f754adb8fb1525\" for &ContainerMetadata{Name:cache-job,Attempt:0,} returns container id \"680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd\""
Oct 13 01:10:15 hostname containerd[1548]: time="2023-10-13T01:10:15.308485075Z" level=info msg="StartContainer for \"680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd\""
Oct 13 01:10:15 hostname containerd[1548]: time="2023-10-13T01:10:15.310733930Z" level=info msg="shim containerd-shim started" address="unix:///run/containerd/s/531c24254735587221a2ea954cdeda9d083e903d10112a9b57b424f45bf0fc6d" debug=false pid=12393
Oct 13 01:10:15 hostname containerd[1548]: time="2023-10-13T01:10:15.446857438Z" level=info msg="StartContainer for \"680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd\" returns successfully"
Oct 13 01:10:18 hostname containerd[1548]: time="2023-10-13T01:10:18.510862521Z" level=error msg="collecting metrics for 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd" error="cgroups: cgroup deleted"
Oct 13 01:10:27 hostname containerd[1548]: time="2023-10-13T01:10:27.980083052Z" level=error msg="failed to handle container TaskExit event &TaskExit{ContainerID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,ID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,Pid:12412,ExitStatus:0,ExitedAt:2023-10-13 01:10:17.977124706 +0000 UTC,XXX_unrecognized:[],}" error="failed to stop container: context deadline exceeded: unknown"
Oct 13 16:16:58 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:16:58.645935223Z" level=info msg="StopContainer for \"680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd\" with timeout 30 (s)"
Oct 13 16:16:58 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:16:58.646613873Z" level=info msg="StopContainer for \"680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd\" returns successfully"
Oct 13 16:17:02 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:17:02.704244442Z" level=error msg="collecting metrics for 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd" error="cgroups: cgroup deleted"
Oct 13 16:17:09 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:17:09.019842710Z" level=info msg="TaskExit event &TaskExit{ContainerID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,ID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,Pid:12412,ExitStatus:0,ExitedAt:2023-10-13 01:10:17.977124706 +0000 UTC,XXX_unrecognized:[],}"
Oct 13 16:17:09 ed-c16-208-221-76 containerd[1548]: time="2023-10-13T16:17:09.020717601Z" level=error msg="Failed to handle backOff event &TaskExit{ContainerID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,ID:680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd,Pid:12412,ExitStatus:0,ExitedAt:2023-10-13 01:10:17.977124706 +0000 UTC,XXX_unrecognized:[],} for 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd" error="failed to handle container TaskExit event: failed to cleanup container 680d7356661f9f87a602b589bd5cec535bf3a674a65bd38966072b75a779a8fd in task-service: : failed precondition"
Description
Containerd unable to Stop container in specific condition.
What exactly occured:
Note
Error from log:
full log:
containerd version: 1.6.24 61f9fd8
Steps to reproduce the issue
No steps to reproduce.
Describe the results you received and expected
Container cleanup expected
What version of containerd are you using?
1.6.24 61f9fd8
Any other relevant information
No response
Show configuration if it is related to CRI plugin.