Modify

Opened 5 years ago

Closed 3 years ago

#12971 closed defect (moved_to_github)

avahi-daemon exits immediately

Reported by: Egon Eckert <egon.eckert@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Attitude Adjustment 12.09 Beta
Keywords: Cc:

Description

avahi-daemon with default config exits immediately upon start:

root@dr3800:~# avahi-daemon 
Found user 'nobody' (UID 65534) and group 'nogroup' (GID 65534).
Successfully dropped root privileges.
avahi-daemon 0.6.31 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
dbus_bus_get_private(): Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
WARNING: Failed to contact D-Bus daemon.
avahi-daemon 0.6.31 exiting.
root@dr3800:~# 

A simple and sufficient fix is to add

enable-dbus=no

into [server] section of avahi-daemon.conf.

Attachments (0)

Change History (7)

comment:1 Changed 5 years ago by todd_richmond@…

thx for the fix - I've been looking for a fix for a while. dbus is installed but avahi-daemon won't start without disabling it

you will also want to add /etc/avahi/avahi-daeon.conf to /etc/sysupgrade.conf to prevent any custom config from being overwritten on upgrade

comment:2 Changed 4 years ago by Mike Brady <mikebrady@…>

Just looking at this belatedly, and glad you've got a work-around. I don't understand the problem. The default build configuration for avahi is for it not to have D-BUS support. The "enable-dbus=no" directive is only used by the D-BUS-enabled version of avahi. So, did you actually build it with D-BUS support?

comment:3 Changed 4 years ago by todd_richmond@…

I was using stock builds from attitude-adjustment and trunk and the config definitely resolved the problem. Unfortunately I've moved on to a Buffalo AC1750 Broadcomm router so no OpenWRT at the moment

comment:4 Changed 4 years ago by Jim

I can confirm that the dbus=no needs to be added for trunk.
I didn't build anything special.

comment:5 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

comment:6 Changed 3 years ago by anonymous

I can confirm that the dbus=no still needs to be added for current trunk.
Milstone should be changed to Chaos Calmer

comment:7 Changed 3 years ago by nbd

  • Resolution set to moved_to_github
  • Status changed from new to closed

avahi is maintained here: https://github.com/openwrt/packages

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.