Dnsconfd - Systemd is not listening on name org.freedesktop.systemd1

I noticed the following error on my freshly installed Fedora Workstation 42:

dnsconfd[2095]: Traceback (most recent call last):
dnsconfd[2095]:   File "/usr/lib/python3.13/site-packages/dnsconfd/systemd_manager.py", line 27, in subscribe_systemd_signals
dnsconfd[2095]:     self.systemd_interface.Subscribe()
dnsconfd[2095]:     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
dnsconfd[2095]:   File "/usr/lib64/python3.13/site-packages/dbus/proxies.py", line 141, in __call__
dnsconfd[2095]:     return self._connection.call_blocking(self._named_service,
dnsconfd[2095]:            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^
dnsconfd[2095]:                                           self._object_path,
dnsconfd[2095]:                                           ^^^^^^^^^^^^^^^^^^
dnsconfd[2095]:     ...<3 lines>...
dnsconfd[2095]:                                           args,
dnsconfd[2095]:                                           ^^^^^
dnsconfd[2095]:                                           **keywords)
dnsconfd[2095]:                                           ^^^^^^^^^^^
dnsconfd[2095]:   File "/usr/lib64/python3.13/site-packages/dbus/connection.py", line 634, in call_blocking
dnsconfd[2095]:     reply_message = self.send_message_with_reply_and_block(
dnsconfd[2095]:         message, timeout)
dnsconfd[2095]: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name is not activatable
dnsconfd[2095]: During handling of the above exception, another exception occurred:
dnsconfd[2095]: Traceback (most recent call last):
dnsconfd[2095]:   File "/usr/lib64/python3.13/site-packages/systemd/journal.py", line 599, in emit
dnsconfd[2095]:     msg = self.format(record)
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 998, in format
dnsconfd[2095]:     return fmt.format(record)
dnsconfd[2095]:            ~~~~~~~~~~^^^^^^^^
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 711, in format
dnsconfd[2095]:     record.message = record.getMessage()
dnsconfd[2095]:                      ~~~~~~~~~~~~~~~~~^^
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 400, in getMessage
dnsconfd[2095]:     msg = msg % self.args
dnsconfd[2095]:           ~~~~^~~~~~~~~~~
dnsconfd[2095]: TypeError: not all arguments converted during string formatting
dnsconfd[2095]: Call stack:
dnsconfd[2095]:   File "/usr/bin/dnsconfd", line 56, in <module>
dnsconfd[2095]:     main_loop.run()
dnsconfd[2095]:   File "/usr/lib64/python3.13/site-packages/gi/overrides/GLib.py", line 497, in run
dnsconfd[2095]:     super(MainLoop, self).run()
dnsconfd[2095]:   File "/usr/bin/dnsconfd", line 50, in <lambda>
dnsconfd[2095]:     ctx.transition_function(ContextEvent("STOP"))))
dnsconfd[2095]:   File "/usr/lib/python3.13/site-packages/dnsconfd/fsm/dnsconfd_context.py", line 90, in transition_function
dnsconfd[2095]:     event = callback(event)
dnsconfd[2095]:   File "/usr/lib/python3.13/site-packages/dnsconfd/fsm/transitions/stopping.py", line 180, in _reverting_resolv_c>
dnsconfd[2095]:     if not self.systemd_manager.subscribe_systemd_signals():
dnsconfd[2095]:   File "/usr/lib/python3.13/site-packages/dnsconfd/systemd_manager.py", line 34, in subscribe_systemd_signals
dnsconfd[2095]:     self.lgr.error("Systemd is not listening on "
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 1548, in error
dnsconfd[2095]:     self._log(ERROR, msg, args, **kwargs)
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 1664, in _log
dnsconfd[2095]:     self.handle(record)
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 1680, in handle
dnsconfd[2095]:     self.callHandlers(record)
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 1736, in callHandlers
dnsconfd[2095]:     hdlr.handle(record)
dnsconfd[2095]:   File "/usr/lib64/python3.13/logging/__init__.py", line 1026, in handle
dnsconfd[2095]:     self.emit(record)
dnsconfd[2095]:   File "/usr/lib64/python3.13/site-packages/systemd/journal.py", line 627, in emit
dnsconfd[2095]:     self.handleError(record)
dnsconfd[2095]: Message: 'Systemd is not listening on name org.freedesktop.systemd1'
dnsconfd[2095]: Arguments: (DBusException('The name is not activatable'),)
dnsconfd[2095]: INFO:DnsconfdContext:New state: ContextState.SUBMITTING_STOP_JOB, new event: FAIL
dnsconfd[2095]: INFO:Stopping:Config says we should not handle routes, skipping
dnsconfd[2095]: INFO:DnsconfdContext:New state: ContextState.REMOVING_ROUTES, new event: SUCCESS
dnsconfd[2095]: INFO:Stopping:Stopping event loop and FSM
dnsconfd[2095]: INFO:DnsconfdContext:New state: ContextState.STOPPING, new event: None

Where are you running the code from?
Is it a systemd service or a terminal command line?
If it’s in a service you likely need to turn off a isolation setting.

I don’t run it myself, just noticed the error in system journal.

Do you need dnsconfd? Or does it just happened to be installed?

Description    : avahi-dnsconfd connects to a running avahi-daemon and runs the script
               : /etc/avahi/dnsconfd.action for each unicast DNS server that is announced on the
               : local LAN. This is useful for configuring unicast DNS servers in a DHCP-like
               : fashion with mDNS.
Vendor         : Fedora Project

I’m not sure if I do, I beleive it happened to be installed.

In that case you can uninstall it

sudo dnf remove avahi-dnsconfd

dnsconfd is used in special circumstances, so if you need it you would know.
I would not be surprised if this software has bugs if it is not used very often.

1 Like