开发者社区> 问答> 正文

failed to create shim task: Failed to Check if grp

版本:

$ containerd -v containerd github.com/containerd/containerd v1.6.6 10c12954828e7c7c9b6e0ea9b0c02b01407d3ae1 $ crictl -v crictl version 1.24.1 $ kata-runtime -v kata-runtime : 3.1.0-alpha0 commit : 5f5b4f7 OCI specs: 1.0.2-dev

我正在使用CCv0分支

circtl FATA[0002] error FATA[0002] run pod sandbox: rpc error: code = Unknown desc = failed to create containerd task: failed to create shim task: Failed to Check if grpc server is working: ttrpc: closed: unknown

容器日志信息:

INFO[2022-11-24T22:14:32.953515014-05:00] RunPodSandbox for &PodSandboxMetadata{Name:nginx-sandbox,Uid:92995a40-cad0-4f58-b82e-a0430a65a392,Namespace:default,Attempt:1,} time="2022-11-24T22:14:34.991745444-05:00" level=warning msg="Unable to connect to unix socket (/run/vc/vm/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2/qmp.sock): dial unix /run/vc/vm/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2/qmp.sock: connect: no such file or directory" name=containerd-shim-v2 pid=485331 sandbox=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 source=virtcontainers/hypervisor subsystem=qmp time="2022-11-24T22:14:34.991808559-05:00" level=error msg="Failed to connect to QEMU instance" error="dial unix /run/vc/vm/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2/qmp.sock: connect: no such file or directory" name=containerd-shim-v2 pid=485331 sandbox=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 source=virtcontainers/hypervisor subsystem=qemu INFO[2022-11-24T22:14:35.440484208-05:00] shim disconnected id=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 WARN[2022-11-24T22:14:35.440546698-05:00] cleaning up after shim disconnected id=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 namespace=k8s.io INFO[2022-11-24T22:14:35.440554955-05:00] cleaning up dead shim ERRO[2022-11-24T22:14:35.453971811-05:00] failed to delete cmd="/usr/local/bin/containerd-shim-kata-v2 -namespace k8s.io -address /run/containerd/containerd.sock -publish-binary /usr/local/bin/containerd -id aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 -bundle /dev/shm/run/containerd/io.containerd.runtime.v2.task/k8s.io/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 delete" error="exit status 1" WARN[2022-11-24T22:14:35.454050937-05:00] failed to clean up after shim disconnected error="time="2022-11-24T22:14:35-05:00" level=warning msg="failed to cleanup container" container=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 error="open /run/vc/sbs/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2: no such file or directory" name=containerd-shim-v2 pid=485370 sandbox=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 source=containerd-kata-shim-v2\nio.containerd.kata.v2: open /run/vc/sbs/aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2: no such file or directory: exit status 1" id=aeb914a3dc9e931a9262fd71df307e613b42d9b88b6ece92a21efbc344327df2 namespace=k8s.io ERRO[2022-11-24T22:14:35.454088295-05:00] copy shim log error="read /proc/self/fd/17: file already closed" ERRO[2022-11-24T22:14:35.514833013-05:00] RunPodSandbox for &PodSandboxMetadata{Name:nginx-sandbox,Uid:92995a40-cad0-4f58-b82e-a0430a65a392,Namespace:default,Attempt:1,} failed, error error="failed to create containerd task: failed to create shim task: Failed to Check if grpc server is working: ttrpc: closed: unknown"

原提问者GitHub用户taoohong 如对项目有进一步反馈,请在 GitHub 提交 issue https://github.com/kata-containers/kata-containers/issues

展开
收起
码字王 2023-05-17 16:10:55 384 0
2 条回答
写回答
取消 提交回答
  • 值得去的地方都没有捷径

    这个错误看起来是容器运行时(kata-runtime)无法连接到QEMU实例导致的。你可以检查一下QEMU实例是否运行,并且检查容器运行时的配置是否正确。如果你使用的是Kubernetes,你可以检查一下kubelet的日志,看看是否有更多的信息。

    2023-05-18 18:40:39
    赞同 展开评论 打赏
  • 也许你在没有SECCOMP的情况下编译了kata代理。本文件中有一些描述:

    If you enable seccomp in the main configuration file but build the agent without seccomp capability, the runtime exits conservatively with an error message.

    https://github.com/kata-containers/kata-containers/blob/main/docs/Developer-Guide.md#connect-to-debug-console

    原回答者GitHub用户ZhizhouTian 如对项目有进一步反馈,请在 GitHub 提交 issue https://github.com/kata-containers/kata-containers/issues

    2023-05-17 16:24:52
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载