Skip to content

[BUG] dbus-daemon[]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file #199

@captainnapalm

Description

@captainnapalm

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Calibre seems to be working as expected, but logs are being bombarded with the following message:

calibre            | dbus-daemon[2631]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2638]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2645]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2652]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2659]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2667]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2674]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2681]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2688]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2695]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2702]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[2709]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file

Expected Behavior

No response

Steps To Reproduce

  1. Running latest docker with the compose as below.
  2. Observe logs filling with the above message.

Environment

- OS:Ubuntu 22.04
- How docker service was installed:

CPU architecture

x86-64

Docker creation

services:
  calibre:
    image: lscr.io/linuxserver/calibre
    container_name: calibre
    security_opt:
      - seccomp:unconfined #optional
    volumes:
      - /mnt/nvmetank/appdata/calibre:/config
      - /mnt/user/media/ebooks:/CalibreLibrary
      - /mnt/nvmetank/appdata/calibre/plugins:/plugins
      - /mnt/nvmetank/appdata/calibre/uploads:/uploads
    ports:
      - 7575:8080
      - 7576:8081
      - 7577:8181
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Edmonton
    networks:
      - prodnet
    restart: unless-stopped

Container logs

calibre            | dbus-daemon[20420]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20427]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20434]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20441]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20448]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20455]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20462]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20469]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | dbus-daemon[20476]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | Waiting up to 5 seconds for desktop processes to terminate...
calibre            | All desktop processes terminated cleanly.
calibre            | [migrations] started
calibre            | [migrations] no migrations found
calibre            | usermod: no changes
calibre            | ───────────────────────────────────────
calibre            | 
calibre            |       ██╗     ███████╗██╗ ██████╗
calibre            |       ██║     ██╔════╝██║██╔═══██╗
calibre            |       ██║     ███████╗██║██║   ██║
calibre            |       ██║     ╚════██║██║██║   ██║
calibre            |       ███████╗███████║██║╚██████╔╝
calibre            |       ╚══════╝╚══════╝╚═╝ ╚═════╝
calibre            | 
calibre            |    Brought to you by linuxserver.io
calibre            | ───────────────────────────────────────
calibre            | 
calibre            | To support LSIO projects visit:
calibre            | https://www.linuxserver.io/donate/
calibre            | 
calibre            | ───────────────────────────────────────
calibre            | GID/UID
calibre            | ───────────────────────────────────────
calibre            | 
calibre            | User UID:    1000
calibre            | User GID:    1000
calibre            | ───────────────────────────────────────
calibre            | Linuxserver.io version: v8.14.0-ls369
calibre            | Build-date: 2025-11-07T04:50:02+00:00
calibre            | ───────────────────────────────────────
calibre            |     
calibre            | [custom-init] No custom files found, skipping...
calibre            | xsettingsd: Loaded 5 settings from /config/.xsettingsd
calibre            | xsettingsd: Unable to open connection to X server
calibre            | _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root
calibre            | dbus-daemon[277]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | screen 0 shmid 0
calibre            | [ls.io-init] done.
calibre            | The XKEYBOARD keymap compiler (xkbcomp) reports:
calibre            | > Warning:          Could not resolve keysym XF86CameraAccessEnable
calibre            | > Warning:          Could not resolve keysym XF86CameraAccessDisable
calibre            | > Warning:          Could not resolve keysym XF86CameraAccessToggle
calibre            | > Warning:          Could not resolve keysym XF86NextElement
calibre            | > Warning:          Could not resolve keysym XF86PreviousElement
calibre            | > Warning:          Could not resolve keysym XF86AutopilotEngageToggle
calibre            | > Warning:          Could not resolve keysym XF86MarkWaypoint
calibre            | > Warning:          Could not resolve keysym XF86Sos
calibre            | > Warning:          Could not resolve keysym XF86NavChart
calibre            | > Warning:          Could not resolve keysym XF86FishingChart
calibre            | > Warning:          Could not resolve keysym XF86SingleRangeRadar
calibre            | > Warning:          Could not resolve keysym XF86DualRangeRadar
calibre            | > Warning:          Could not resolve keysym XF86RadarOverlay
calibre            | > Warning:          Could not resolve keysym XF86TraditionalSonar
calibre            | > Warning:          Could not resolve keysym XF86ClearvuSonar
calibre            | > Warning:          Could not resolve keysym XF86SidevuSonar
calibre            | > Warning:          Could not resolve keysym XF86NavInfo
calibre            | Errors from xkbcomp are not fatal to the X server
calibre            | 19
calibre            | 20
calibre-web        | [2025-11-12 11:00:12,911]  WARN {warnings.py:110} /lsiopy/lib/python3.12/site-packages/pycountry/__init__.py:10: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
calibre-web        |   import pkg_resources
calibre-web        | 
calibre            | INFO:data_websocket:pcmflux library found. Audio capture is available.
calibre            | INFO:data_websocket:pixelflux library found. Striped encoding modes available.
calibre            | INFO:root:Expected C js_config_t size (from ctypes): 1354 bytes
calibre            | INFO:main:Upload directory ensured: /config/Desktop
calibre            | INFO:main:Legacy Mode ENABLED (SELKIES_MASTER_TOKEN is not set).
calibre            | INFO:main:Starting Selkies (WebSocket Mode) with settings: {'audio_enabled': (True, False), 'microphone_enabled': (True, False), 'gamepad_enabled': (True, False), 'clipboard_enabled': (True, False), 'command_enabled': (True, False), 'file_transfers': ['upload', 'download'], 'encoder': 'x264enc', 'framerate': (8, 120), 'h264_crf': (5, 50), 'jpeg_quality': (1, 100), 'h264_fullcolor': (False, False), 'h264_streaming_mode': (False, False), 'use_cpu': (False, False), 'use_paint_over_quality': (True, False), 'paint_over_jpeg_quality': (1, 100), 'h264_paintover_crf': (5, 50), 'h264_paintover_burst_frames': (1, 30), 'second_screen': (True, False), 'audio_bitrate': '320000', 'is_manual_resolution_mode': (False, False), 'manual_width': 0, 'manual_height': 0, 'scaling_dpi': '96', 'enable_binary_clipboard': (False, False), 'use_browser_cursors': (False, False), 'use_css_scaling': (False, False), 'ui_title': 'Selkies', 'ui_show_logo': (True, False), 'ui_show_core_buttons': (True, False), 'ui_show_sidebar': (True, False), 'ui_sidebar_show_video_settings': (True, False), 'ui_sidebar_show_screen_settings': (True, False), 'ui_sidebar_show_audio_settings': (True, False), 'ui_sidebar_show_stats': (True, False), 'ui_sidebar_show_clipboard': (True, False), 'ui_sidebar_show_files': (True, False), 'ui_sidebar_show_apps': (True, False), 'ui_sidebar_show_sharing': (True, False), 'ui_sidebar_show_gamepads': (True, False), 'ui_sidebar_show_fullscreen': (True, False), 'ui_sidebar_show_gaming_mode': (True, False), 'ui_sidebar_show_trackpad': (True, False), 'ui_sidebar_show_keyboard_button': (True, False), 'ui_sidebar_show_soft_buttons': (True, False), 'port': 8082, 'control_port': 8083, 'master_token': '', 'dri_node': '', 'audio_device_name': 'output.monitor', 'watermark_path': '', 'watermark_location': -1, 'debug': (False, False), 'enable_sharing': (True, False), 'enable_collab': (True, False), 'enable_shared': (True, False), 'enable_player2': (True, False), 'enable_player3': (True, False), 'enable_player4': (True, False)}
calibre            | INFO:main:Initial Encoder: x264enc, Framerate: 60
calibre            | INFO:main:SelkiesStreamingApp initialized: encoder=x264enc, display=1024x768
calibre            | INFO:main:All main components initialized. Running server...
calibre            | INFO:webrtc_input:System DPI detected as ~96. Cursor size cap set to 32x32px.
calibre            | INFO:webrtc_input:Resetting keyboard modifiers.
calibre            | INFO:webrtc_input:Clipboard monitor running (binary mode: False)
calibre            | INFO:webrtc_input:Found XFIXES version 4.0
calibre            | INFO:webrtc_input:starting cursor monitor
calibre            | INFO:webrtc_input:watching for cursor changes
calibre            | WARNING:data_websocket:Cannot broadcast cursor data: no clients connected or server not ready.
calibre            | INFO:data_websocket:Data WebSocket Server listening on port 8082
calibre            | INFO:webrtc_input:Initializing 4 persistent gamepad instances...
calibre            | INFO:root:Packed js_config payload for 'Microsoft X-Box 360 pad' (js0): len=1360 bytes. Name='Microsoft X-Box 360 pad', Vendor=0x045e, Product=0x028e, Version=0x0100, Reported Buttons=11 (Array capacity: 512), Reported Axes=8 (Array capacity: 64)
calibre            | INFO:selkies_gamepad:Gamepad configured. JS socket: /tmp/selkies_js0.sock, EVDEV socket: /tmp/selkies_event1000.sock. Using fixed config: Microsoft X-Box 360 pad
calibre            | INFO:webrtc_input:Initialized and started persistent gamepad instance for index 0 (Name: 'Microsoft X-Box 360 pad', JS: /tmp/selkies_js0.sock, EVDEV: /tmp/selkies_event1000.sock).
calibre            | INFO:root:Packed js_config payload for 'Microsoft X-Box 360 pad' (js1): len=1360 bytes. Name='Microsoft X-Box 360 pad', Vendor=0x045e, Product=0x028e, Version=0x0100, Reported Buttons=11 (Array capacity: 512), Reported Axes=8 (Array capacity: 64)
calibre            | INFO:selkies_gamepad:Gamepad configured. JS socket: /tmp/selkies_js1.sock, EVDEV socket: /tmp/selkies_event1001.sock. Using fixed config: Microsoft X-Box 360 pad
calibre            | INFO:webrtc_input:Initialized and started persistent gamepad instance for index 1 (Name: 'Microsoft X-Box 360 pad', JS: /tmp/selkies_js1.sock, EVDEV: /tmp/selkies_event1001.sock).
calibre            | INFO:root:Packed js_config payload for 'Microsoft X-Box 360 pad' (js2): len=1360 bytes. Name='Microsoft X-Box 360 pad', Vendor=0x045e, Product=0x028e, Version=0x0100, Reported Buttons=11 (Array capacity: 512), Reported Axes=8 (Array capacity: 64)
calibre            | INFO:selkies_gamepad:Gamepad configured. JS socket: /tmp/selkies_js2.sock, EVDEV socket: /tmp/selkies_event1002.sock. Using fixed config: Microsoft X-Box 360 pad
calibre            | INFO:webrtc_input:Initialized and started persistent gamepad instance for index 2 (Name: 'Microsoft X-Box 360 pad', JS: /tmp/selkies_js2.sock, EVDEV: /tmp/selkies_event1002.sock).
calibre            | INFO:root:Packed js_config payload for 'Microsoft X-Box 360 pad' (js3): len=1360 bytes. Name='Microsoft X-Box 360 pad', Vendor=0x045e, Product=0x028e, Version=0x0100, Reported Buttons=11 (Array capacity: 512), Reported Axes=8 (Array capacity: 64)
calibre            | INFO:selkies_gamepad:Gamepad configured. JS socket: /tmp/selkies_js3.sock, EVDEV socket: /tmp/selkies_event1003.sock. Using fixed config: Microsoft X-Box 360 pad
calibre            | INFO:webrtc_input:Initialized and started persistent gamepad instance for index 3 (Name: 'Microsoft X-Box 360 pad', JS: /tmp/selkies_js3.sock, EVDEV: /tmp/selkies_event1003.sock).
calibre            | INFO:selkies_gamepad:Gamepad /tmp/selkies_js0.sock: Event processor started.
calibre            | INFO:selkies_gamepad:JS interposer server listening on /tmp/selkies_js0.sock
calibre            | INFO:selkies_gamepad:Gamepad /tmp/selkies_js1.sock: Event processor started.
calibre            | INFO:selkies_gamepad:JS interposer server listening on /tmp/selkies_js1.sock
calibre            | INFO:selkies_gamepad:Gamepad /tmp/selkies_js2.sock: Event processor started.
calibre            | INFO:selkies_gamepad:JS interposer server listening on /tmp/selkies_js2.sock
calibre            | INFO:selkies_gamepad:Gamepad /tmp/selkies_js3.sock: Event processor started.
calibre            | INFO:selkies_gamepad:JS interposer server listening on /tmp/selkies_js3.sock
calibre            | INFO:selkies_gamepad:EVDEV interposer server listening on /tmp/selkies_event1000.sock
calibre            | INFO:selkies_gamepad:EVDEV interposer server listening on /tmp/selkies_event1001.sock
calibre            | INFO:selkies_gamepad:EVDEV interposer server listening on /tmp/selkies_event1002.sock
calibre            | INFO:selkies_gamepad:EVDEV interposer server listening on /tmp/selkies_event1003.sock
calibre            | xsettingsd: Loaded 5 settings from /config/.xsettingsd
calibre            | dbus-daemon[501]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre            | xsettingsd: Created window 0x1400001 on screen 0 with timestamp 218138565
calibre            | xsettingsd: Selection _XSETTINGS_S0 is owned by 0x0
calibre            | xsettingsd: Took ownership of selection _XSETTINGS_S0
calibre            | dbus-daemon[511]: Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file
calibre-web        | Connection to localhost (127.0.0.1) 8083 port [tcp/*] succeeded!
calibre-web        | [ls.io-init] done.
calibre            | WARNING:data_websocket:Cannot broadcast cursor data: no clients connected or server not ready.
calibre            | dbus-daemon[538]: 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

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Issues

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions