is the avahi user creation supposed to be part of installing avahi?

Adam Dershowitz dersh at alum.mit.edu
Mon Mar 24 09:28:03 PDT 2008


I believe that this is the problem that I saw before.  It seems that  
by default dbus doesn't run while avahi does.
Just doing:
sudo launchctl load -w /Library/LaunchDaemons/org.macports.dbus.plist
starts the dbus daemon and should allow avahi to connect to it properly.

And, for anyone who might be interested, I had an additional avahi  
problem where my log was filling up with:
Mar 23 17:41:06 Macintosh org.freedesktop.avahi-daemon[67]: Received  
packet from invalid interface.
Mar 23 17:41:36: --- last message repeated 9 times ---
Mar 23 17:41:36 Macintosh org.freedesktop.avahi-daemon[67]: Received  
packet from invalid interface.
Mar 23 17:42:06: --- last message repeated 9 times ---
Mar 23 17:42:06 Macintosh org.freedesktop.avahi-daemon[67]: Received  
packet from invalid interface.

I found that the solution was just to kill it:
sudo avahi-daemon -k

at which point it automatically restarted and the errors went away.

--Adam



On Mar 24, 2008, at 12:33 AM, nodje wrote:

> thanks for the reply Paul.
> gives no hope though :(
>
> I've had this message for months.
> It's polluting my console log and probably consumes resources.
>
> As you say, some other applications need it. So it's not even  
> possible to uninstall.
>
> ...
>
>
> On 24 Mar 2008, at 1:30 PM, paul beard wrote:
>>
>>
>> On Sun, Mar 23, 2008 at 8:19 PM, nodje <nodje.co at gmail.com> wrote:
>> I had an avahi probleme due to thuis missing user.
>> I recently updated avahi to 0.6.22_0 (from 0.6.17_0). It fixed the  
>> missing avahi
>> user problem.
>>  But I'm still having an issue, apparently similar with Paul's one.
>>
>> Console log:
>> 24/03/2008 12:05:13 PM org.freedesktop.avahi-dnsconfd[522]
>> Failed to connect to the daemon. This probably means that you
>> 24/03/2008 12:05:13 PM org.freedesktop.avahi-dnsconfd[522]
>> didn't start avahi-daemon before avahi-dnsconfd.
>> 24/03/2008 12:05:13 PM com.apple.launchd[1]
>> (org.freedesktop.avahi-dnsconfd[522]) Exited with exit code: 1
>> 24/03/2008 12:05:13 PM com.apple.launchd[1] (org.freedesktop.avahi- 
>> dnsconfd)
>> Throttling respawn: Will start in 10 seconds
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523]
>> Found user 'avahi' (UID 502) and group 'avahi' (GID 502).
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523]
>> Successfully dropped root privileges.
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523] avahi- 
>> daemon 0.6.22
>>  starting up.
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523]
>> WARNING: No NSS support for mDNS detected, consider installing nss- 
>> mdns!
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523]
>> dbus_bus_get_private(): Failed to connect to socket
>> /opt/local/var/run/dbus/system_bus_socket: Connection refused
>> 24/03/2008 12:05:14 PM org.freedesktop.avahi-daemon[523] WARNING:
>> Failed to contact D-Bus daemon.
>> 24/03/2008 12:05:14 PM com.apple.launchd[1]
>> (org.freedesktop.avahi-daemon[523]) Exited with exit code: 255
>> 24/03/2008 12:05:14 PM com.apple.launchd[1] (org.freedesktop.avahi- 
>> daemon)
>> Throttling respawn: Will start in 10 seconds
>> 24/03/2008 12:05:23 PM org.freedesktop.avahi-dnsconfd[524] connect():
>> No such file or directory
>> 24/03/2008 12:05:23 PM org.freedesktop.avahi-dnsconfd[524]
>> Failed to connect to the daemon. This probably means that you
>> 24/03/2008 12:05:23 PM org.freedesktop.avahi-dnsconfd[524] didn't  
>> start
>> avahi-daemon before avahi-dnsconfd.
>> 24/03/2008 12:05:23 PM com.apple.launchd[1]
>> (org.freedesktop.avahi-dnsconfd[524]) Exited with exit code: 1
>>
>> Would reinstall avahi solve the problem?
>> I have seen very few thread about the topic.
>> Paul, did you manage to get a working asahi?
>>
>> Thanks,
>>
>> --nodje
>>
>>
>> To be honest, I'm not sure. This seems to be one of those areas  
>> where MacPorts and Apple duplicate each other's efforts. I don't  
>> know if avahi is supposed to do anything other than just be  
>> installed so other applications don't grumble. An mDNS responder  
>> exists on OS X, anyway.
>>
>> At the moment, my avahi isn't even running, for some reason. I  
>> don't know if it matters or not.
>>
>> -- 
>> Paul Beard / www.paulbeard.org/
>> <paulbeard at gmail.com/paulbeard at gmail.com>
>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-users/attachments/20080324/e02b1599/attachment-0001.html 


More information about the macports-users mailing list