DBus error "org.freedesktop.DBus.Error.TimedOut":Failed to activate service 'org.freedesktop.systemd1': timed out

Hi Team,

We have the below environment where our Microk8s is running.
Total 7 VMs(Controller node for the Microk8s)

root@paasnode01:~# kubectl get nodes
NAME STATUS ROLES AGE VERSION
paasnode07 Ready 340d v1.26.4
paasnode04 Ready 366d v1.26.14
paasnode06 Ready 340d v1.26.14
paasnode01 Ready 366d v1.26.14
paasnode03 Ready 366d v1.26.14
paasnode05 Ready 366d v1.26.14
paasnode02 Ready 366d v1.26.14
root@paasnode01:~#

Node passnode07 is showing below error whenever try to run the microk8s command.

root@paasnode07:~# microk8s.refresh-certs -c
internal error, please report: running “microk8s.refresh-certs” failed: cannot create transient scope: DBus error “org.freedesktop.DBus.Error.TimedOut”: [Failed to activate service ‘org.freedesktop.systemd1’: timed out (service_start_timeout=25000ms)]
root@paasnode07:~#
root@paasnode07:~# microk8s.status
internal error, please report: running “microk8s.status” failed: cannot create transient scope: DBus error “org.freedesktop.DBus.Error.TimedOut”: [Failed to activate service ‘org.freedesktop.systemd1’: timed out (service_start_timeout=25000ms)]
root@paasnode07:~#

regards
Arup

Hi Everyone,
Would like to inform you that, this DB bus error has been resolved now.

Solution:

While checking the DB bus service we have found that two required files are empty.

  1. org.freedesktop.timedate1.conf
  2. org.freedesktop.systemd1.conf

Below are the logs

root@paasnode07:~# systemctl status dbus
● dbus.service - D-Bus System Message Bus
Loaded: loaded (/lib/systemd/system/dbus.service; static)
Active: active (running) since Mon 2024-04-22 14:33:28 IST; 34s ago
TriggeredBy: ● dbus.socket
Docs: man:dbus-daemon(1)
Main PID: 78559 (dbus-daemon)
Tasks: 1 (limit: 77711)
Memory: 600.0K
CPU: 7ms
CGroup: /system.slice/dbus.service
└─78559 @dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation --syslog-only

Apr 22 14:33:28 paasnode07 systemd[1]: Started D-Bus System Message Bus.
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.systemd1.conf, line 1, column 0: not well-for>
’ while parsing ‘/usr/share/dbus-1/system.d/org.freedesktop.systemd1.conf’
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: dbus-daemon[78559]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.systemd1.conf, line 1, co>
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: ’ while parsing ‘/usr/share/dbus-1/system.d/org.freedesktop.systemd1.conf’
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.timedate1.conf, line 1, column 0: not well-fo>
’ while parsing ‘/usr/share/dbus-1/system.d/org.freedesktop.timedate1.conf’
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: dbus-daemon[78559]: Encountered error 'Error in file /usr/share/dbus-1/system.d/org.freedesktop.timedate1.conf, line 1, c>
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: ’ while parsing ‘/usr/share/dbus-1/system.d/org.freedesktop.timedate1.conf’
Apr 22 14:33:28 paasnode07 dbus-daemon[78559]: [system] AppArmor D-Bus mediation is enabled
Apr 22 14:33:53 paasnode07 dbus-daemon[78559]: [system] Failed to activate service ‘org.freedesktop.systemd1’: timed out (service_start_timeout=25000ms)

==========================================
What we did we copied the files from one of the running worker node, after that the error stopped coming & microk8s commands are also started working.