You are not logged in.

#1 2010-09-14 08:06:38

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

avahi fails to broadcast

for some time avahi has stopped broadcasting. I'm running Arch 64 and have netatalk, ushare and mt-daapd setup and connect from a MacBook to stream and access files.
At some point daap stopped showing up in iTunes, and ushare doesn't appear in vlc in the UPnP discovery. The Arch64 "Apple" server doesn't show up in the Finder anymore, however I can connect to it manually.

I've tried all the suggestions on the avahi Wiki page with no apparent change in behavior. Now my nsswitch.conf looks like this

passwd: files
group: files
shadow: files
publickey: files
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 mdns
networks: files
protocols: files
services: files
ethers: files
rpc: files
netgroup: files

avahi-daemon.conf

[server]
#host-name=foo
#domain-name=local
browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
#allow-interfaces=eth0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
disallow-other-stacks=yes
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
#publish-hinfo=yes
#publish-workstation=yes
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3

This is what I get from the log. Whereas the first entry is disquieting, it seems to start and register all services

Sep 14 09:28:43 arch64 avahi-daemon[5444]: Got SIGTERM, quitting.
Sep 14 09:28:43 arch64 avahi-daemon[5444]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.200.
Sep 14 09:28:43 arch64 avahi-daemon[5444]: avahi-daemon 0.6.27 exiting.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Found user 'avahi' (UID 84) and group 'avahi' (GID 84).
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Successfully dropped root privileges.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: avahi-daemon 0.6.27 starting up.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Successfully called chroot().
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Successfully dropped remaining capabilities.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Loading service file /services/afpd.service.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Loading service file /services/daap.service.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Loading service file /services/sftp-ssh.service.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Loading service file /services/ssh.service.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.200.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: New relevant interface eth0.IPv4 for mDNS.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Network interface enumeration completed.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Registering new address record for fe80::219:66ff:fec1:667f on eth0.*.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Registering new address record for 192.168.1.200 on eth0.IPv4.
Sep 14 09:28:43 arch64 avahi-daemon[5584]: Registering HINFO record with values 'X86_64'/'LINUX'.
Sep 14 09:28:44 arch64 avahi-daemon[5584]: Server startup complete. Host name is arch64.local. Local service cookie is 1430413077.
Sep 14 09:28:45 arch64 avahi-daemon[5584]: Service "arch64" (/services/ssh.service) successfully established.
Sep 14 09:28:45 arch64 avahi-daemon[5584]: Service "arch64" (/services/sftp-ssh.service) successfully established.
Sep 14 09:28:45 arch64 avahi-daemon[5584]: Service "arch64" (/services/daap.service) successfully established.
Sep 14 09:28:45 arch64 avahi-daemon[5584]: Service "arch64" (/services/afpd.service) successfully established.

For what it's worth, my rc.conf

DAEMONS=(syslog-ng network openntpd netfs crond dbus hal afpd mysqld httpd ddclient ushare mt-daapd bluetooth lircd fbsplash alsa avahi-daemon)

Does any one see anything wrong? I'm thinking I need to toggle something in avahi-daemon.conf

Searching the forum I noticed some users were adding a multicast route to the interface. I never had that before (when everything was working), is it necessary?

Last edited by subatomic (2010-09-14 11:41:57)

Offline

#2 2010-09-14 18:12:22

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

Re: avahi fails to broadcast

here is an excerpt of the running daemons, however you'll see that avahi doesn't want to believe. Seems many users get a SIGTERM at start, but this apparently is not the problem, for it does indeed start.

ps --ppid=1

4076 ?        00:00:01 hald
4160 ?        00:00:00 afpd
4433 ?        00:00:00 ushare
6210 ?        00:00:00 dbus-launch
6211 ?        00:00:01 dbus-daemon
6812 ?        00:00:00 avahi-daemon

[dust@arch64 ~]$  avahi-browse -a
Failed to create client object: Daemon not running

Last edited by subatomic (2010-10-12 07:22:55)

Offline

#3 2010-10-12 07:23:03

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

Re: avahi fails to broadcast

no one has any problem with avahi? amazing!

Offline

#4 2010-10-16 19:45:48

harovali
Member
Registered: 2009-12-14
Posts: 6

Re: avahi fails to broadcast

have you tried running avahi-dnsconfd together with avahi-daemon ?
best regards
Haroldo

Offline

#5 2010-10-17 13:46:51

max.bra
Member
From: Bologna - Italy
Registered: 2008-06-02
Posts: 93

Re: avahi fails to broadcast

i use arch64 too and never had problems with avahi. only some config problem in the starting "study stage".

What has changed just before the moment has stopped working? config changes... updates...
pacman.log of that moment will be usefull...

my configs:
virtually same position in rc.conf daemon array

relevant packages

local/avahi 0.6.27-5
    A multicast/unicast DNS-SD framework
local/nss-mdns 0.10-2
    glibc plugin providing host name resolution via mDNS

my avahi-daemon.conf. the same as your except for:
- not interested in browse external domain
- leaved disallow-other-stacks=no that is default

[server]
#host-name=foo
#domain-name=local
#browse-domains=0pointer.de, zeroconf.org
use-ipv4=yes
use-ipv6=no
#allow-interfaces=eth0
#deny-interfaces=eth1
#check-response-ttl=no
#use-iff-running=no
#enable-dbus=yes
#disallow-other-stacks=no
#allow-point-to-point=no
#cache-entries-max=4096
#clients-max=4096
#objects-per-client-max=1024
#entries-per-entry-group-max=32
ratelimit-interval-usec=1000000
ratelimit-burst=1000

[wide-area]
enable-wide-area=yes

[publish]
#disable-publishing=no
#disable-user-service-publishing=no
#add-service-cookie=no
#publish-addresses=yes
#publish-hinfo=yes
#publish-workstation=yes
#publish-domain=yes
#publish-dns-servers=192.168.50.1, 192.168.50.2
#publish-resolv-conf-dns-servers=yes
#publish-aaaa-on-ipv4=yes
#publish-a-on-ipv6=no

[reflector]
#enable-reflector=no
#reflect-ipv=no

[rlimits]
#rlimit-as=
rlimit-core=0
rlimit-data=4194304
rlimit-fsize=0
rlimit-nofile=768
rlimit-stack=4194304
rlimit-nproc=3

Offline

#6 2010-11-30 08:15:54

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

Re: avahi fails to broadcast

"disallow-other-stacks=yes" was something I got from this post which had helped me then https://bbs.archlinux.org/viewtopic.php?pid=371998
I've however switched it back to default "no" with no success.

I should mention that when I connect manually from OSX I get the following message

Message from server "arch64". Something wrong with the volume's CNID DB, 
using temporary CNID DB instead. Check server messages for details. Switching to read-only mode.

I've tried deleting all the Apple dot files but I can't see what any of that has to do with Avahi broadcasting.

Offline

#7 2011-01-31 08:39:12

subatomic
Member
From: Berlin
Registered: 2005-06-26
Posts: 180

Re: avahi fails to broadcast

OK I never resolved this and I really need to get my ushare and daap servers running. I've really tried everything save reinstalling Avahi because of the dependencies, and I also see no clear advantage to that?

Anyone please?

Offline

#8 2012-04-05 08:33:05

T-u-N-i-X
Member
From: İstanbul
Registered: 2006-03-14
Posts: 435
Website

Re: avahi fails to broadcast

I've almost the same problem. We use avahi to broadcast samba shares via the Bonjour protocol. For 5-10 minutes it works OK. But after a while, I can't ping foo.local (despite I can ping its IP address) and the server disappears from the sidebar of Finder on Mac OS X. Restarting avahi-daemon solves the problem for another 5-10 minutes and the problems occurs again. The logs don't help either. Any ideas?


Quis custodiet ipsos custodiet?

Offline

#9 2012-04-09 18:48:57

SJ_UnderWater
Member
Registered: 2012-04-09
Posts: 10

Re: avahi fails to broadcast

i think what's happened there is that newer versions of netatalk register the services directly with avahi (using dbus) instead of requiring a .service file. If you have a newer version & old .service files, they're probably overlapping and causing this problem.

Offline

Board footer

Powered by FluxBB