Dbus-daemon.service failed to start

Hello,
some issues with dbus-daemon.service that failed to start:
OS: Fedora Linux 38 (Thirty Eight) x86_64
Kernel: 6.3.5-200.fc38.x86_64

systemctl status dbus-daemon.service

× dbus-daemon.service - D-Bus System Message Bus
     Loaded: loaded (/usr/lib/systemd/system/dbus-daemon.service; disabled; preset: disabled)
    Drop-In: /usr/lib/systemd/system/service.d
             └─10-timeout-abort.conf
     Active: failed (Result: exit-code) since Thu 2023-06-08 14:42:59 CEST; 9min ago
   Duration: 54ms
       Docs: man:dbus-daemon(1)
    Process: 2836 ExecStart=/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only (code=exited, status=1/FAILURE)
   Main PID: 2836 (code=exited, status=1/FAILURE)
        CPU: 25ms

giu 08 14:42:59 Desk01 systemd[1]: Started dbus-daemon.service - D-Bus System Message Bus.
giu 08 14:42:59 Desk01 dbus-daemon[2836]: Failed to start message bus: No socket received.
giu 08 14:42:59 Desk01 systemd[1]: dbus-daemon.service: Main process exited, code=exited, status=1/FAILURE
giu 08 14:42:59 Desk01 systemd[1]: dbus-daemon.service: Failed with result 'exit-code'.

How can I solve?

Mauro

Please provide sufficent detail to allow others to reproduce the issue. Start by postingthe text output from inxi -Fzx(braced by triple backquotes or using the </> icon so the post can be found in searches by the next person with the same problem and hardware).

What is the history: is this a fresh install or an upgrade? Check journalctl for more details of the problem.

It’s a “fresh” install. Problems happened probably after a system update, I noticed it now.

inxi -Fzx output is:

System:
  Kernel: 6.3.5-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: MATE v: 1.26.1 Distro: Fedora release 38 (Thirty
    Eight)
Machine:
  Type: Desktop Mobo: ASRock model: H61M-HVS serial: N/A
    BIOS: American Megatrends v: P2.50 date: 09/18/2012
CPU:
  Info: dual core model: Intel Pentium G620 bits: 64 type: MCP
    arch: Sandy Bridge rev: 7 cache: L1: 128 KiB L2: 512 KiB L3: 3 MiB
  Speed (MHz): avg: 1598 high: 1600 min/max: 1600/2600 cores: 1: 1596
    2: 1600 bogomips: 10377
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel 2nd Generation Core Processor Family Integrated Graphics
    vendor: ASRock driver: i915 v: kernel arch: Gen-6 bus-ID: 00:02.0
  Display: x11 server: X.Org v: 1.20.14 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: crocus gpu: i915 resolution: 1920x1080~60Hz
  API: OpenGL v: 3.3 Mesa 23.1.1 renderer: Mesa Intel HD Graphics 2000 (SNB
    GT1) direct-render: Yes
Audio:
  Device-1: Intel 6 Series/C200 Series Family High Definition Audio
    vendor: ASRock driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
  API: ALSA v: k6.3.5-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.71 status: n/a (root, process)
Network:
  Device-1: Realtek RTL810xE PCI Express Fast Ethernet vendor: ASRock
    driver: r8169 v: kernel port: e000 bus-ID: 02:00.0
  IF: enp2s0 state: up speed: 100 Mbps duplex: full mac: <filter>
Drives:
  Local Storage: total: 465.76 GiB used: 81.67 GiB (17.5%)
  ID-1: /dev/sda vendor: Seagate model: ST500DM002-1BD142 size: 465.76 GiB
    temp: 36 C
Partition:
  ID-1: / size: 68.35 GiB used: 9.97 GiB (14.6%) fs: ext4 dev: /dev/sda3
  ID-2: /boot size: 973.4 MiB used: 318.1 MiB (32.7%) fs: ext4
    dev: /dev/sda2
  ID-3: /home size: 387.49 GiB used: 71.39 GiB (18.4%) fs: ext4
    dev: /dev/sda4
Swap:
  ID-1: swap-1 type: zram size: 3.52 GiB used: 256 KiB (0.0%) dev: /dev/zram0
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 216 Uptime: 46m Memory: available: 3.52 GiB
  used: 2.32 GiB (65.7%) Init: systemd target: graphical (5) Compilers:
  gcc: 13.1.1 Packages: N/A note: see --rpm Shell: Bash v: 5.2.15 inxi: 3.3.27

Linux Hardware Database (LHDB) has many entries, most higher spec. You appear to have 4GB RAM, but Intel graphics steals some of that, so you are right on the edge of what will work with Fedora Workstation.

Which Fedora spin are you using? Your dbus daemon service matches what I see on Workstation:

$ grep -F -- '--syslog-only' /lib/systemd/system/*.service
/lib/systemd/system/dbus-daemon.service:ExecStart=/usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only

Systemd tries to do initializations in parallel, so memory uasge at startup will be higher than for legacy init. Each new kernel tends to increase memory demands (but then people do work on trimming those demands) but living on the edge is dangerous.

Your CPU is also far below current norms. You will find one of the lightweight spins makes better use of limited RAM and CPU resources so is less likely to get into difficulties. Note that many widely used GUI programs do not work well in 4GB systems.

Initial spin was XFCE, then I switched to Mate Desktop.
My system is surely old!

Thank you for support.

Mauro

I’m seeing the same (similar?) issue with Kernel 6.3.6, though system RAM is 96 GB and CPU is dual Xeon E5-2687W. This is a system that’s been upgraded since Fedora 35, I think, so not a vanilla workstation. Per sealert recommendation, the system has been fully relabeled (i.e., touch /.autorelablel; reboot. Still trying to identify the cause of “No socket received”. Here’s the log message associated with the dbus-daemon failure:

Jun 10 23:47:24 zyxw.slewsys.org dbus-daemon[1862]: Failed to start message bus: No socket received.
Jun 10 23:47:24 zyxw.slewsys.org systemd[1]: dbus-daemon.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit dbus-daemon.service has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Jun 10 23:47:24 zyxw.slewsys.org systemd[1]: dbus-daemon.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit dbus-daemon.service has entered the 'failed' state with result 'exit-code'.
Jun 10 23:47:24 zyxw.slewsys.org audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=dbus-daemon comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'

Output of inxi -Fzx:

System:
  Kernel: 6.3.6-200.fc38.x86_64 arch: x86_64 bits: 64 compiler: gcc
    v: 2.39-9.fc38 Desktop: GNOME v: 44.2 Distro: Fedora release 38 (Thirty
    Eight)
Machine:
  Type: Desktop System: Hewlett-Packard product: HP Z820 Workstation v: N/A
    serial: <superuser required>
  Mobo: Hewlett-Packard model: 158B v: 1.01 serial: <superuser required>
    UEFI: Hewlett-Packard v: J63 v03.96 date: 10/28/2019
Battery:
  Device-1: hid-CC26442058FG61CA9-battery model: Apple Inc. Magic Trackpad 2
    charge: N/A status: discharging
CPU:
  Info: 2x 8-core model: Intel Xeon E5-2687W 0 bits: 64 type: MT MCP SMP
    arch: Sandy Bridge rev: 7 cache: L1: 2x 512 KiB (1024 KiB)
    L2: 2x 2 MiB (4 MiB) L3: 2x 20 MiB (40 MiB)
  Speed (MHz): avg: 1357 high: 3800 min/max: 1200/3800 cores: 1: 1200
    2: 1200 3: 1207 4: 1200 5: 1200 6: 1200 7: 1200 8: 1200 9: 1200 10: 1200
    11: 1200 12: 1200 13: 1200 14: 2400 15: 1200 16: 1200 17: 2105 18: 1200
    19: 1200 20: 1200 21: 1200 22: 1200 23: 1197 24: 1545 25: 1200 26: 3800
    27: 1200 28: 1197 29: 1200 30: 1200 31: 1200 32: 1200 bogomips: 150687
  Flags: avx ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GP107 [GeForce GTX 1050 Ti] vendor: ASUSTeK driver: nvidia
    v: 530.41.03 arch: Pascal bus-ID: 41:00.0
  Display: wayland server: X.Org v: 22.1.9 with: Xwayland v: 22.1.9
    compositor: gnome-shell driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,vesa gpu: nvidia,nvidia-nvswitch
    resolution: 3840x2160~60Hz
  API: OpenGL v: 4.6.0 NVIDIA 530.41.03 renderer: NVIDIA GeForce GTX 1050
    Ti/PCIe/SSE2 direct-render: Yes
Audio:
  Device-1: Intel C600/X79 series High Definition Audio
    vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus-ID: 00:1b.0
  Device-2: NVIDIA GP107GL High Definition Audio vendor: ASUSTeK
    driver: snd_hda_intel v: kernel bus-ID: 41:00.1
  API: ALSA v: k6.3.6-200.fc38.x86_64 status: kernel-api
  Server-1: PipeWire v: 0.3.71 status: active
Network:
  Device-1: Intel 82579LM Gigabit Network vendor: Hewlett-Packard
    driver: e1000e v: kernel port: f040 bus-ID: 00:19.0
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Intel 82574L Gigabit Network vendor: Hewlett-Packard
    driver: e1000e v: kernel port: e000 bus-ID: 01:00.0
  IF: enp1s0 state: down mac: <filter>
  IF-ID-1: br0 state: down mac: <filter>
  IF-ID-2: virbr0 state: down mac: <filter>
RAID:
  Device-1: cpool type: zfs status: ONLINE level: linear raw: size: 278 GiB
    free: 84.6 GiB zfs-fs: size: 269.38 GiB free: 75.96 GiB
  Components: Online: 1:
Drives:
  Local Storage: total: 6 TiB used: 989.75 GiB (16.1%)
  ID-1: /dev/sda vendor: Hitachi model: HUS156030VLS600 size: 279.4 GiB
    temp: 32 C
  ID-2: /dev/sdb vendor: Seagate model: ST6000NM0034 size: 5.46 TiB
    temp: 37 C
  ID-3: /dev/sdc vendor: Hitachi model: HUS156030VLS600 size: 279.4 GiB
    temp: 35 C
Partition:
  ID-1: / size: 5.26 TiB used: 796.02 GiB (14.8%) fs: btrfs dev: /dev/sdb4
  ID-2: /boot size: 1.9 GiB used: 307.3 MiB (15.8%) fs: ext4 dev: /dev/sdb3
  ID-3: /boot/efi size: 1022 MiB used: 17.4 MiB (1.7%) fs: vfat
    dev: /dev/sdb1
Swap:
  ID-1: swap-1 type: zram size: 8 GiB used: 0 KiB (0.0%) dev: /dev/zram0
  ID-2: swap-2 type: partition size: 200 GiB used: 0 KiB (0.0%)
    dev: /dev/sdb2
Sensors:
  System Temperatures: cpu: 55.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 723 Uptime: 1h 40m Memory: available: 94.3 GiB
  used: 10.52 GiB (11.2%) Init: systemd target: graphical (5) Compilers:
  gcc: 13.1.1 clang: 16.0.4 Packages: 6 note: see --rpm Shell: Bash v: 5.2.15
  inxi: 3.3.27

The dbus-daemon service has been replaced by dbus-broker for quite a while ago.

That’s it. Thank you!

Evidently gdm still launches dbus-run-session[1] which is provided by the dbus-daemon package. So if running Gnome, rather than remove dbus-daemon, just disable it, i.e., systemctl disable --now dbus-daemon.


  1. in gdm-session.c ↩︎

That depends.

The system-wide dbus server is started by systemd long before gdb has been launched. systemd also starts another dbus service for each gdb or gnome session.

There is an additional dbus server for the user session, and that is also started by systemd during setting up the session. If systemd fails to start dbus, there is a fall-back used by gdb and gnome to start it.

dbus-broker replaces dbus-daemon as you indicated. But after moving dbus-run-session out of the way: mv /usr/bin/dbus-run/session{,~}, the system crashes hard on boot:

RIP: 0010:kvm_nx_huge_page_recovery_worker+0x3b1/0x3f0 [kvm]

To recover, booting to multi-user target isn’t sufficient: I had to got back to rescue target (i.e., append to kernel command line rd.systemd.init=rescue.target). So it would appear that systemd-logind is also be calling dbus-run-session???

I’m not sure how to start dbus with gdb, but in the case of gdm and maybe systemd-logind, without dbus-run-session there appear to be no fall-backs?

dbus-broker is started by a user level unit file.

[vek@newbox ~]$ sudo systemctl --global is-enabled dbus-broker.service
[sudo] password for vek: 
enabled
[vek@newbox ~]$ 

Or

[vek@newbox ~]$ sudo systemctl --global list-unit-files dbus\*
UNIT FILE           STATE    PRESET  
dbus-broker.service enabled  enabled 
dbus-daemon.service disabled disabled
dbus.service        alias    -       
dbus.socket         enabled  enabled 

4 unit files listed.
[vek@newbox ~]$ 

Note that --global is for user services for all users, whereas --user is for services for the current logged in user. In the latter case you must run it without sudo.