FS#55738 - [avahi] Installing avahi package does not reload dbus service

Attached to Project: Arch Linux
Opened by Chris Snell (chrissnell) - Sunday, 24 September 2017, 20:39 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Thursday, 03 March 2022, 12:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
When the avahi package is installed, avahi-daemon.service will fail to start and produces the following error in the journal:

Sep 24 15:26:02 jarvis avahi-daemon[327]: avahi-daemon 0.7 starting up.
Sep 24 15:26:02 jarvis avahi-daemon[327]: dbus_bus_request_name(): Connection ":1.90" is not allowed to own the service "org.freedesktop.Avahi" due to security policies in the config
Sep 24 15:26:02 jarvis avahi-daemon[327]: WARNING: Failed to contact D-Bus daemon.
Sep 24 15:26:02 jarvis avahi-daemon[327]: avahi-daemon 0.7 exiting.
Sep 24 15:26:02 jarvis systemd[1]: avahi-daemon.service: Main process exited, code=exited, status=255/n/a

This is because the dbus policies in /etc/dbus-1/systemd.d/avahi-dbus.conf have not been applied because the dbus service has not been reloaded.

The issue can be fixed by rebooting or running 'systemctl reload dbus'. I haven't encountered this problem before on my other Arch machines so I suspect that it might be a new regression.

Additional info:
avahi 0.7-1
dbus 1.10.22-1


Steps to reproduce:

pacman -S avahi
systemctl enable avahi-daemon.service
systemctl start avahi-daemon.service

--- observe that service will not start; inspect journal logs ---

systemctl reload dbus
systemctl start avahi-daemon.service

--- observe that service now starts properly ---
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Thursday, 03 March 2022, 12:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  2022-02-27: A task closure has been requested. Reason for request: This is no longer a bug. Thanks!
Comment by Jan Alexander Steffens (heftig) - Tuesday, 26 September 2017, 04:35 GMT
Have you installed dbus-broker?
Comment by Chris Snell (chrissnell) - Tuesday, 26 September 2017, 04:50 GMT
No, I haven't installed dbus-broker.
Comment by mattia (nTia89) - Sunday, 27 February 2022, 13:47 GMT
I cannot reproduce the issue. Is it still valid?
Comment by Chris Snell (chrissnell) - Sunday, 27 February 2022, 20:32 GMT
@mattia Nope, this is no longer valid and can be closed. Thanks!

Loading...