Airplay not working at all

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Memphiz Offline
Team-XBMC Developer
Posts: 7,914
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #11
Code:
sudo service avahi-daemon start
... thats it then ... (sudo is important 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: 81
Joined: Mar 2012
Reputation: 0
Post: #12
(2012-04-02 09:57)Memphiz Wrote:  
Code:
sudo service avahi-daemon start
... thats it then ... (sudo is important here).

That fixed it for a bit. Now it stoped working again, saying the same thing:

14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.eventserver type: _xbmc-events._udp name:XBMC (XBMC) port:9777
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-http type: _xbmc-jsonrpc-h._tcp name:XBMC (XBMC) port:8080
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.jsonrpc-tpc type: _xbmc-jsonrpc._tcp name:XBMC (XBMC) port:9090
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webapi type: _xbmc-web._tcp name:XBMC (XBMC) port:8080
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.webserver type: _http._tcp name:XBMC (XBMC) port:8080
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:3043034880 DEBUG: SECTION:LoadDLL(libshairport.so.1)
14:40:22 T:2809125744 DEBUG: Thread CAirPlayServer start, auto delete: 0
14:40:22 T:3043034880 DEBUG: Loading: libshairport.so.1
14:40:22 T:2800733040 DEBUG: Thread Jobworker start, auto delete: 1
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.airplay type: _airplay._tcp name:XBMC (XBMC) port:36667
14:40:22 T:2817518448 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2792340336 DEBUG: Thread CAirTunesServer start, auto delete: 0
14:40:22 T:3043034880 DEBUG: CLastfmScrobbler: Clearing session.
14:40:22 T:2800733040 DEBUG: CZeroconfAvahi::doPublishService identifier: servers.airtunes type: _raop._tcp name:0BC5FF4A849E@XBMC (XBMC) port:36666
14:40:22 T:3043034880 DEBUG: CLibrefmScrobbler: Clearing session.
14:40:22 T:2800733040 DEBUG: CZeroconfAvahi::doPublishService: client not running, queued for publishing
14:40:22 T:2895117168 DEBUG: RunQuery took 9 ms for 10 items query: select * from episodeview order by idEpisode desc limit 10


this is the full log:

http://xbmclogs.com/show.php?id=1196

Did it not save my settings I changed or something?
find quote
Memphiz Offline
Team-XBMC Developer
Posts: 7,914
Joined: Feb 2011
Reputation: 91
Location: germany
Post: #13
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.

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: 81
Joined: Mar 2012
Reputation: 0
Post: #14
Yeh I did restart. Explains it at least.
find quote
prae5 Offline
Team-XBMC Forum Moderator
Posts: 1,684
Joined: Jan 2009
Reputation: 28
Location: Cambridge, UK
Post: #15
(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
find quote
Begall Online
Senior Member
Posts: 169
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-XBMC Developer
Posts: 7,914
Joined: Feb 2011
Reputation: 91
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 Online
Senior Member
Posts: 169
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 Online
Senior Member
Posts: 169
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: 81
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