Products › lamco-dbus-tools › Interfaces

D-Bus in the journal: Rejected send message and failed starts

D-Bus lines in the journal explain refused calls and failed service starts, and lamco-dbus-tools reads the bus's and the service manager's lines for a span.

Logs journald

The journal is where the bus and the service manager say what they did: Which service they started, why a start failed, and which call the bus refused. A message on the bus carries none of that. When an error reply says only "access denied" or a name never appears, the line that explains it is often in the journal, from dbus-daemon, from dbus-broker or its launcher, or from systemd. lamco-dbus-tools reads those lines for the span of a recording and keeps them in the capture, stamped so they line up with the messages.

What it is

systemd-journald collects each process's log lines with its own metadata, including when it received each one. The bus's lines depend on the implementation:

  • dbus-daemon logs to the system log when configured to, with <syslog/> in its configuration or --syslog. It logs each service it forks and, when a start fails, the reason. When it logs to the journal, a refused call is logged as Rejected send message with the caller, interface, member and destination.
  • dbus-broker has the service manager start every service, so a failed start is logged by systemd as the unit's exit. The repository's notes on its source say its refusal lines carry structured fields, where dbus-daemon's are text. A refusal by SELinux on Fedora 44 was logged as "A security policy denied" with the sender, the call and the destination.
  • systemd logs each unit it starts for the bus, and what the service itself wrote to its output.

The system journal may be closed to an ordinary user, who then sees only their own lines. On the session bus, the user's service manager's lines are the user's own.

Errors you'll meet

  • org.freedesktop.DBus.Error.AccessDenied: The bus refused the call. The bus's own line in the journal, as recorded on dbus-daemon, starts dbus-daemon[661]: [system] Rejected send message, 1 matched rules; type="method_call". On dbus-broker it starts "A security policy denied".
  • org.freedesktop.DBus.Error.NoReply: A service left without answering. The journal may hold its exit, which the reply doesn't.

How lamco-dbus-tools reads it

dbussee journal asks the bus which process it is, reads the journal through journalctl, and keeps the lines that bear on the bus: The bus's own processes, the service manager's lines that mention D-Bus or a name the bus can start, and what a service the bus started wrote. Each line keeps journald's stamp of when it received it, on the monotonic clock of this boot, so a line can be set against a recording's times on the same machine and boot. dbussee record reads the same lines for its own span unless given --no-host. dbusdo doesn't touch the journal. dbustell activation gives a failed start in the words of whoever logged it, and dbustell errors joins a refusal's line to the error a caller got.

dbussee journal --since 30m                     # the bus's and the service manager's lines, last 30 minutes
dbussee journal --bus system --since 1h         # the same for the system bus
dbussee record --all --duration 15 --out rec.json   # a recording, with the journal for its span
dbustell activation rec.json                    # each start, and why one failed, in its logger's words
dbustell errors rec.json                        # each refusal joined to the bus's own line

Where it has been run

The README's run record lists, on KDE neon three minutes after boot on 2026-11-28, a user's journal holding an activation of org.kde.KSplash that plasmashell asked for and that failed. On private buses with dbus-daemon 1.16.2 and dbus-broker 37 (2026-11-29 and 2026-11-30), a service that exits 3 was reported with dbus-daemon's reason and the service manager's, and a refusal was joined to dbus-daemon's log line. On Fedora 44 with SELinux enforcing (2026-12-02), dbustell errors named dbus-broker's line and SELinux's decision.

Findings

  • ACT-001: A service failed to start.
  • ACT-002: A service took a second or more to start.
  • CALL-004: The bus refused or couldn't deliver calls. With the journal, the detail quotes the bus's own line about a refusal.

Related