Airplay not working at all

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Begall Offline
Senior Member
Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #16
I too have found that AirPlay is no longer functional, using both Eden-Final-PVR and the Update-1 build I just updated to, on my Ubuntu 11.10 system. XBMC is simply not appearing as a target for my phone.

I followed the advice in this thread and checked whether the avahi-daemon is active, which it is. I also restarted it just to make sure. Here are the relevant lines from the log when I restarted the service:

Code:
21:00:06 T:140387574343424    INFO: CZeroconfAvahi::clientCallback: client failure. avahi-daemon stopped? Recreating client...
21:00:06 T:140387574343424   DEBUG: CZeroconfAvahi::clientCallback: uiuui; coll or reg, anyways, resetting groups
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::clientCallback: client is up and running
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _airplay._tcp port:36667
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: 1C6F65CC6D3E@XBMC (xbmc-H67N-USB3-B3) type: _raop._tcp port:36666
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _xbmc-events._udp port:9777
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _xbmc-jsonrpc-h._tcp port:8082
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _xbmc-jsonrpc._tcp port:9090
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _xbmc-web._tcp port:8082
21:00:07 T:140387574343424   DEBUG: CZeroconfAvahi::addService() named: XBMC (xbmc-H67N-USB3-B3) type: _http._tcp port:8082
21:00:08 T:140387574343424   DEBUG: CZeroconfAvahi::groupCallback: Service successfully established
21:00:30 T:140387197519616   DEBUG: Previous line repeats 6 times.

Still nothing Sad
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #17
ensure that xbmc and the iphone are on the same subnet in your network ... else they won't see each other...

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Begall Offline
Senior Member
Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #18
iPhone is 192.168.0.2, XBMC box is 192.168.0.7 and nothing has changed in that respect from before when it worked. Is there a way to test AirPlay to make sure it's responding appropriately?
find quote
Begall Offline
Senior Member
Posts: 172
Joined: Dec 2011
Reputation: 6
Post: #19
Restarting the router fixed this. Not sure why, but there you go.
find quote
tmacka88 Offline
Member
Posts: 86
Joined: Mar 2012
Reputation: 0
Post: #20
(2012-04-06 12:15)prae5 Wrote:  
(2012-04-05 13:55)Memphiz Wrote:  Did you restart your computer You have to make the start of the deamon sticky. (not sure how to do that on xbmcbuntu). Maybe some linux dev or linux user could jump in here now.

If this is a standard XBMCBunutu install it should start automatically.

I've just done a fresh install to test this and it seems to start fine:

Code:
@MicroServer:~$ /etc/init.d/avahi-daemon status
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service avahi-daemon status

Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the status(8) utility, e.g. status avahi-daemon
avahi-daemon start/running, process 850

I did a clean install as well and it still does not start automatically. What do you meen with using service(8) utility not sure how to do that?

Cheers
find quote
grywnn Offline
Donor
Posts: 379
Joined: Mar 2010
Reputation: 0
Location: Germany
Post: #21
Try this one:
Code:
sudo update-rc.de avahi-daemon defaults
this should tell ubuntu to start the daemon on boot.
find quote
tmacka88 Offline
Member
Posts: 86
Joined: Mar 2012
Reputation: 0
Post: #22
(2012-04-09 11:44)grywnn Wrote:  Try this one:
Code:
sudo update-rc.de avahi-daemon defaults
this should tell ubuntu to start the daemon on boot.
I get this error

trent_mackness@XBMC:~$ sudo update-rc.de avahi-daemon defaults
sudo: update-rc.de: command not found


thaks
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #23
try without that .de thing (sudo update-rc avahi-daemon defaults)

You ever noticed autocompletion? You can type "update" followed by hitting the tab key twice and it will expand all possible commands which start with the word update.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
(This post was last modified: 2012-04-10 11:42 by Memphiz.)
find quote
erhnam Offline
Team-XBMC Live Developer
Posts: 671
Joined: May 2009
Reputation: 2
Location: The Netherlands
Post: #24
Memphiz,

The avahi deamon should be running by default on xbmcbuntu;

Code:
xbmc@live:~$ ps -eaf | grep ava
avahi     1075     1  0 10:28 ?        00:00:00 avahi-daemon: running [live.local]
avahi     1086  1075  0 10:28 ?        00:00:00 avahi-daemon: chroot helper

Maybe the avahi deamon has been stopped or crashed?
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #25
Seems to work for him when he starts it manually. Good to know that it doesn't seem to be a general issue with xbmcbuntu then.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
typ3ird Offline
Junior Member
Posts: 5
Joined: Dec 2009
Reputation: 0
Post: #26
I had the very same problem... worked once i started it manually. Ran the command for registering on startup now, hope that helps.
(XBMCbuntu, eden on ASRock 330)
find quote
tmacka88 Offline
Member
Posts: 86
Joined: Mar 2012
Reputation: 0
Post: #27
any more ideas cause it still will not automatically start the daemon when the computer boots.

thanks
find quote
tmacka88 Offline
Member
Posts: 86
Joined: Mar 2012
Reputation: 0
Post: #28
(2012-04-10 11:41)Memphiz Wrote:  try without that .de thing (sudo update-rc avahi-daemon defaults)

You ever noticed autocompletion? You can type "update" followed by hitting the tab key twice and it will expand all possible commands which start with the word update.

i did what you said with udate (tab twice) and there was a "update-rc.d" command so i used that withing the previous code and got this.

Quote:trent_mackness@XBMC:~$ sudo update-rc.d avahi-daemon defaults
update-rc.d: warning: /etc/init.d/avahi-daemon missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
System start/stop links for /etc/init.d/avahi-daemon already exist.

went to the site but doesnt really make much sense to me ;(
(2012-04-12 20:22)typ3ird Wrote:  I had the very same problem... worked once i started it manually. Ran the command for registering on startup now, hope that helps.
(XBMCbuntu, eden on ASRock 330)

Which command worked for you to register on startup?
(This post was last modified: 2012-04-20 08:45 by tmacka88.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 10,827
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #29
looks like it should already startup on boot for you (thats what the "System start/stop links for /etc/init.d/avahi-daemon already exist." means).

No clue whats up there. I quit supporting here now, since linux is not my system. Really wondering why not someone of the linux devs jumps in here :/

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
tmacka88 Offline
Member
Posts: 86
Joined: Mar 2012
Reputation: 0
Post: #30
Anyone else have any other ideas how to fix this. The only way i get it to work is manually
Code:
sudo service avahi-daemon start
every time I want to use Airplay with XBMC.

Hasnt anyone els had this issue cause I have done 4-5 clean installs and everytime same problem. Could it be something on my motherboard BIOS?

cheers
find quote