Skip to content

[BUG] dbus daemon fails to start due to existing pid file #9

@Steltek

Description

@Steltek

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

After startup, the log often is flooded with these messages:

dbus-daemon[541]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file dbus-daemon[554]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file dbus-daemon[565]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file dbus-daemon[578]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file dbus-daemon[589]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file

To stop it, I have to access the container and rm /run/dbus/pid

Expected Behavior

dbus-daemon should start up (maybe a check and cleanup of the file on startup is needed?)

The workaround I currently use is to manually rm /run/dbus/pid and then restart the container.

Steps To Reproduce

Issue randomly occurs after the container has been up for several days (potentially crashed).

One way to force it to occur is to kill the container (docker kill containername) and then start it again.

Environment

- OS: Debian Linux (13.2/trixie)
- How docker service was installed: Docker CE .deb packages from Docker. (docker-ce 5:28.1.0-1~debian.13~trixie)

CPU architecture

x86-64

Docker creation

image: lscr.io/linuxserver/rustdesk:latest
    container_name: rustdesk-web
    security_opt:
      - seccomp:unconfined #optional
    environment:
      - PUID=redacted
      - PGID=redacted
      - TZ=Europe/Luxembourg
      - CUSTOM_USER=redacted
      - PASSWORD=redacted
    volumes:
      - ./rustdesk-web/config:/config
    ports:
      #- 3010:3000
      - redacted:3001
    restart: always

Container logs

dbus-daemon[884]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[895]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[906]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[918]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[929]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[940]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[953]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[964]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[979]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[991]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1002]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1013]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1025]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1036]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1047]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1060]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1071]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1082]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1094]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1105]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1116]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1128]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1139]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1150]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1163]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1175]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1186]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1198]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1209]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1220]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1232]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1243]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1254]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1266]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1277]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1289]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1300]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1311]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1327]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1338]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1350]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1363]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1374]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1385]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
dbus-daemon[1397]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions