Skip to content

Commit 834f363

Browse files
fdegirhardys
authored andcommitted
Add dbus and elemental-system-agent race condition to Known Issues
1 parent ffba4ef commit 834f363

File tree

1 file changed

+28
-1
lines changed

1 file changed

+28
-1
lines changed

asciidoc/edge-book/releasenotes.adoc

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,34 @@ TBC
4747

4848
== Known Issues
4949

50-
TBC
50+
* When onboarding remote hosts using Elemental, a race condition between `dbus.service` and `elemental-system-agent.service` might occur, resulting in `rancher-system-agent.service` on remote host to fail starting with errors similar to the one below. (see the https://github.com/suse-edge/edge-image-builder/issues/784[#784 Edge Image Builder issue] for details.)
51+
52+
[,bash]
53+
----
54+
Sep 19 19:38:07 elementalvm elemental-system-agent[3671]: time="2025-09-19T19:38:07Z" level=info msg="[6b20fe64c854da2639804884b34129bb8f718eb59578111da58d9de1509c24db_1:stderr]: Failed to restart rancher-system-agent.service: Message recipient disconnected from message bus without replying"
55+
----
56+
57+
As a workaround, a systemd override file can be created as below
58+
59+
[,bash]
60+
----
61+
[Unit]
62+
Wants=dbus.service network-online.target
63+
After=dbus.service network-online.target time-sync.target
64+
65+
[Service]
66+
ExecStartPre=/bin/bash -c 'echo "Waiting for dbus to become active..." | systemd-cat -p info -t elemental-system-agent; sleep 15; timeout 300 bash -c "while ! systemctl is-active --quiet dbus.service; do sleep 15; done"'
67+
----
68+
69+
and a custom script named `30a-copy-elemental-system-agent-override.sh` can be used to place the override to `/etc/systemd/system/elemental-system-agent.service.d` prior to EIB's https://github.com/suse-edge/edge-image-builder/blob/main/pkg/combustion/templates/31-elemental-register.sh.tpl[31-elemental-register.sh] script runs during the combustion phase.
70+
71+
[,bash]
72+
----
73+
#!/bin/bash
74+
75+
/bin/mkdir -p /etc/systemd/system/elemental-system-agent.service.d
76+
/bin/cp -f elemental-system-agent-override.conf /etc/systemd/system/elemental-system-agent.service.d/override.conf
77+
----
5178

5279
== Component Versions
5380

0 commit comments

Comments
 (0)