Airplay not working at all
#31
I had the same problem. From syslog I got this:

Code:
dimangi@kotialttari:~$ cat /var/log/syslog |grep -i avahi | tail
May  3 21:35:28 kotialttari avahi-daemon[429]: Got SIGTERM, quitting.
May  3 21:35:28 kotialttari avahi-daemon[429]: Leaving mDNS multicast group on interface eth0.IPv4 with address 192.168.1.133.
May  3 21:35:30 kotialttari avahi-daemon[429]: avahi-daemon 0.6.30 exiting.
May  3 21:35:30 kotialttari avahi: Avahi detected that your currently configured local DNS server serves
May  3 21:35:30 kotialttari avahi: a domain .local. This is inherently incompatible with Avahi and thus
May  3 21:35:30 kotialttari avahi: Avahi disabled itself. If you want to use Avahi in this network, please
May  3 21:35:30 kotialttari avahi: contact your administrator and convince him to use a different DNS domain,
May  3 21:35:30 kotialttari avahi: since .local should be used exclusively for Zeroconf technology.
May  3 21:35:30 kotialttari avahi: For more information, see http://avahi.org/wiki/AvahiAndUnicastDotLocal
May  3 21:36:05 kotialttari dbus[421]: [system] Failed to activate service 'org.freedesktop.Avahi': timed out
dimangi@kotialttari:~$

Basically it's saying that somewhere in my network the domain .local is already in use.

I wanted to find out where is this .local, so I tried this:

Code:
dimangi@kotialttari:~$ host -t SOA local
local has SOA record ns1.inet.fi. hostmaster.sonera.fi. 1 14400 7200 864000 14400
dimangi@kotialttari:~$

It seems my ISP is using that .local, so I'm out of luck trying to sort the problem inside my own network. I tried to change the domain-name in avahi-daemon.conf, but it didn't help. Next I tried to remove the file /var/run/avahi-daemon/disabled-for-unicast-local, but that also did not work. The third solution candidate I found with google was to change the option AVAHI_DAEMON_DETECT_LOCAL=1 >> AVAHI_DAEMON_DETECT_LOCAL=0 in /etc/default/avahi-daemon. And at least with the first couple of restarts everything seems fine. Avahi starts automatically and on my mac I can instantly see XMBC advertised in Airfoil.

Code:
dimangi@kotialttari:~$ cat /var/log/syslog |grep -i avahi |tail
May  3 22:13:06 kotialttari avahi-daemon[433]: avahi-daemon 0.6.30 starting up.
May  3 22:13:07 kotialttari avahi-daemon[433]: Successfully called chroot().
May  3 22:13:07 kotialttari avahi-daemon[433]: Successfully dropped remaining capabilities.
May  3 22:13:07 kotialttari avahi-daemon[433]: No service file found in /etc/avahi/services.
May  3 22:13:07 kotialttari avahi-daemon[433]: Network interface enumeration completed.
May  3 22:13:07 kotialttari avahi-daemon[433]: Registering HINFO record with values 'I686'/'LINUX'.
May  3 22:13:07 kotialttari avahi-daemon[433]: Server startup complete. Host name is kotialttari.local. Local service cookie is 1021547625.
May  3 22:13:07 kotialttari avahi-daemon[433]: Joining mDNS multicast group on interface eth0.IPv4 with address 192.168.1.133.
May  3 22:13:07 kotialttari avahi-daemon[433]: New relevant interface eth0.IPv4 for mDNS.
May  3 22:13:07 kotialttari avahi-daemon[433]: Registering new address record for 192.168.1.133 on eth0.IPv4.
dimangi@kotialttari:~$


Hope that helps...
FM2A75M-ITX, A6-5400K, Antec ISK 300-150, Sony KDL-40W5500, Rotel RA-11, QNAP TS-219p, Cisco E3000, Nyxboard hybrid, USB-CEC
Reply
#32
Im trying to change this, but im getting a error.

"Insufficient access privileges for item "/etc/default/avahi-daemon"

How do I get privileges to access this?

thanks
Reply
#33
nevermind just did

sudo nano /etc/default/avahi-daemon

changed it that way.
And it work.

Thanks heaps been trying to get this working for ages.
Reply
#34
Cool finding. I've pinged the XBMCbuntu dev about it Smile
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#35
Thanks for this solution.This will be fixed in the next XBMCbuntu version:

https://github.com/xbmc/XBMCbuntu/commit...66337701bd
Reply
#36
Thanks for the solution. This was really driving me mad!
Reply
#37
I am still having issues with Airplay on Frodo.

Here is code from my xbox.log:

Code:
18:26:55 T:2758716272  NOTICE: Thread AirPlayServer start, auto delete: false
18:26:55 T:2767108976  NOTICE: Thread Jobworker start, auto delete: true
18:26:55 T:2775501680  NOTICE: Thread CTCPServer start, auto delete: false
18:26:55 T:2783894384  NOTICE: Thread CEventServer start, auto delete: false
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-http type: _xbmc-jsonrpc-h._tcp name:XBMC (derek-ZBOX-ID81) port:8083
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::addService() named: XBMC (derek-ZBOX-ID81) type: _xbmc-jsonrpc-h._tcp port:8083
18:26:55 T:2783894384  NOTICE: ES: Starting UDP Event server on 0.0.0.0:9777
18:26:55 T:2783894384  NOTICE: UDP: Listening on port 9777
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-tpc type: _xbmc-jsonrpc._tcp name:XBMC (derek-ZBOX-ID81) port:9090
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::addService() named: XBMC (derek-ZBOX-ID81) type: _xbmc-jsonrpc._tcp port:9090
18:26:55 T:2750323568  NOTICE: Thread CMusicInfoScanner start, auto delete: false
18:26:55 T:2892999536  NOTICE: -->Python Interpreter Initialized<--
18:26:55 T:2892999536   DEBUG: Process - The source file to load is /home/derek/.xbmc/addons/script.artwork.downloader/service.py
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webserver type: _http._tcp name:XBMC (derek-ZBOX-ID81) port:8083
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::addService() named: XBMC (derek-ZBOX-ID81) type: _http._tcp port:8083
18:26:55 T:2926570352  NOTICE: -->Python Interpreter Initialized<--
18:26:55 T:2926570352   DEBUG: Process - The source file to load is /home/derek/.xbmc/addons/script.tvguide/service.py
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.airplay type: _airplay._tcp name:XBMC (derek-ZBOX-ID81) port:36667
18:26:55 T:2767108976   DEBUG: CZeroconfAvahi::addService() named: XBMC (derek-ZBOX-ID81) type: _airplay._tcp port:36667
18:26:55 T:2739927920  NOTICE: Thread Jobworker start, auto delete: true
18:26:55 T:2739927920   DEBUG: CZeroconfAvahi::doPublishService identifier: servers.eventserver type: _xbmc-events._udp name:XBMC (derek-ZBOX-ID81) port:9777
18:26:55 T:2739927920   DEBUG: CZeroconfAvahi::addService() named: XBMC (derek-ZBOX-ID81) type: _xbmc-events._udp port:9777

It also shows that the service is running, but still not available to be selected on an iPhone 5.

Code:
derek@derek-ZBOX-ID81:~$ ps -eaf | grep ava
avahi      804     1  0 Apr17 ?        00:00:01 avahi-daemon: running [derek-ZBO                             X-ID81.local]
avahi      805   804  0 Apr17 ?        00:00:00 avahi-daemon: chroot helper
derek    24795 24688  0 10:13 pts/0    00:00:00 grep --color=auto ava

Can anyone assist? Thanks!
Setup:
- nvidia Shield TV Pro
- 8TB Synology DS214play
- 2TB External eSATA

twitter
Reply
#38
I was having a problem with RaspbMC where Airplay would not work after a reboot unless I disabled and re-enabled it within XBMC.
Solved it by editing the Upstart configuration file /etc/init/avahi-daemon.conf to make avahi-daemon start before XBMC.
Change the following line:
Code:
start on (((started xbmc and enable-avahi-daemon) or no-xbmc) and started dbus)
to read:
Code:
start on (((starting xbmc and enable-avahi-daemon) or no-xbmc) and started dbus)
Hope that helps someone.
Reply

Logout Mark Read Team Forum Stats Members Help
Airplay not working at all0