V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
yaott2020
V2EX  ›  Docker

问一下关于 DBus 的问题

  •  
  •   yaott2020 · 145 天前 · 521 次点击
    这是一个创建于 145 天前的主题,其中的信息可能已经有所发展或是发生改变。

    一开始发现 Docker 容器无法启动,后面发现 Docker 容器无法创建。然后想着重启看看,结果输入 sudo reboot 后,报错:

    Failed to set wall message, ignoring: Launch helper exited with unknown return code 1
    Call to Reboot failed: Launch helper exited with unknown return code 1
    

    Docker 错误也是类似:

    Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: unable to apply cgroup configuration: unable to start unit "docker-***.scope" (properties [{Name:Description Value:"libcontainer container ***"} {Name:Slice Value:"system.slice"} {Name:Delegate Value:true} {Name:PIDs Value:@au [3423]} {Name:MemoryAccounting Value:true} {Name:CPUAccounting Value:true} {Name:IOAccounting Value:true} {Name:TasksAccounting Value:true} {Name:DefaultDependencies Value:false}]): Launch helper exited with unknown return code 1: unknown
    Error: failed to start containers: portainer
    

    在 Google 上搜不到类似情况

    有 v 友遇到类似的问题吗?该如何解决?

    补充系统信息:

             _,met$$$$$gg.           root@***
          ,g$$$$$$$$$$$$$$$P.        OS: Debian 12 bookworm
        ,g$$P""       """Y$$.".      Kernel: x86_64 Linux 6.1.0-13-amd64
       ,$$P'              `$$$.      Uptime: 10m
      ',$$P       ,ggs.     `$$b:    Packages: 526
      `d$$'     ,$P"'   .    $$$     Shell: ***
       $$P      d$'     ,    $$P     Disk: 210G / 1.1T (21%)
       $$:      $$.   -    ,d$$'     CPU: Intel Celeron J1900 @ 4x 2.4157GHz
       $$\;      Y$b._   _,d$P'      RAM: 1153MiB / 7834MiB
       Y$$.    `.`"Y$$$$P"'
       `$$b      "-.__
        `Y$$
         `Y$$.
           `$$b.
             `Y$$b.
                `"Y$b._
                    `""""
    
    3 条回复    2023-12-05 20:45:07 +08:00
    julyclyde
        1
    julyclyde  
       145 天前
    你这个 dbus 故障是宿主机的吧?

    reboot 命令和 systemd 之间的通信是通过 dbus 传递的

    dockerd 、containerd 是经过 systemd socket activation 启动的,当 dbus 有问题的时候,systemd 不能正常工作,所以也就无法启动这俩 daemon 了

    你可以看看/usr/lib/systemd/system/ 目录下边 dbus 相关的 service 文件,试试手工执行那个 daemon 服务,并在此时从另一个终端输入上述几个命令试试,如果可以的话,建议重启整机,如果不行,你就慢慢修 dbus 吧,此时千万别重启
    yaott2020
        2
    yaott2020  
    OP
       144 天前 via Android
    @julyclyde 是的,但是通过 systemd 查看发现 dbus.service 和 dbus.socket 都正常。reboot 依然会报错但是依然会重启。
    julyclyde
        3
    julyclyde  
       143 天前
    @yaott2020 看看日志吧
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2890 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 12:39 · PVG 20:39 · LAX 05:39 · JFK 08:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.