yaott2020
V2EX  ›  Docker

问一下关于 DBus 的问题

  •  
  •   yaott2020 · Dec 4, 2023 · 1876 views
  •   You need to sign in to view this topic
    This topic created in 1087 days ago, the information mentioned may be changed or developed.

    一开始发现 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 replies  •  2023-12-05 20:45:07 +08:00
    julyclyde
    julyclyde
    Dec 4, 2023
    1
    你这个 dbus 故障是宿主机的吧?

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

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

    你可以看看/usr/lib/systemd/system/ 目录下边 dbus 相关的 service 文件,试试手工执行那个 daemon 服务,并在此时从另一个终端输入上述几个命令试试,如果可以的话,建议重启整机,如果不行,你就慢慢修 dbus 吧,此时千万别重启
    yaott2020
    yaott2020
    OP
    Dec 5, 2023 via Android
    2
    @julyclyde 是的,但是通过 systemd 查看发现 dbus.service 和 dbus.socket 都正常。reboot 依然会报错但是依然会重启。
    julyclyde
    julyclyde
    Dec 5, 2023
    3
    @yaott2020 看看日志吧
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2241 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:35 · PVG 21:35 · LAX 05:35 · JFK 08:35
    ♥ Do have faith in what you're doing.