Closed kamikaze463 closed 3 years ago
From the log, it looks like the service is actually already running. Let me suggest that you look through the TROUBLESHOOTING.md page for some hints.
I've checked and verified all the steps mentioned in TROUBLESHOOTING.md page and I still can't get the devices to see the service.
Maybe try some of the older issues, e.g. #741?
can you confirm that avahi-daemon is alive and well? any time i've had issues with ios devices it was/is usually due to avahi problems.
I've been deploying in docker lately and the daemon will come up using the Top command. I haven't used raspabian so I can not really speak to it. Generally speaking though just executing ""avahi-daemon" will tell you if it fails or not. you might be missing libraries.
Should also double check the DBus is working properly. below is a docker image where the dbus wasnt running (and i was missing libnss-mdns). not sure if executing dbus-daemon --system might work on raspabian, but i'm sure you can google up some references.
Maybe try some of the older issues, e.g. #741?
I followed as is and I can now see the service being broadcasted in iTunes/OSX. and it is playing perfectly as it should. However, I still don't see service seen in either of my iPhones or in my iPad. (silly but wanted to mention; I've connected to the same network as MacBook)
@minix1234 here is the output that I get
pi@raspberrypi:~ $ dbus-daemon --system
dbus-daemon[1775]: Failed to start message bus: Failed to bind socket "/var/run/dbus/system_bus_socket": Address already in use
pi@raspberrypi:~ $ avahi-deamon
-bash: avahi-deamon: command not found
pi@raspberrypi:~ $ avahi-daemon
This program is intended to be run as root.
pi@raspberrypi:~ $ sudo avahi-daemon
Daemon already running on PID 379
Ok. I'm going to re-image one more time and follow the steps as is mentioned. I'll update you guys on it.
Thanks for the updates.
... I can now see the service being broadcasted in iTunes/OSX. and it is playing perfectly as it should. However, I still don't see service seen in either of my iPhones or in my iPad. (silly but wanted to mention; I've connected to the same network as MacBook)
This result means that Shairport Sync is working but not reaching your iOS devices. If that is so, then consider that there might be something odd with your network -- a firewall somewhere, perhaps, or a bad router. Are your iOS devices on VPNs, for example?
There are two utilities -- avahi-browse
(part of the avahi-utils
package) for the Shairport Sync (SPS) end and Discovery
by TildeSoft at the iOS/Mac end that you can use to see if the service advertisements are (a) being issued at the SPS end and (b) being seen at the iOS/MacOS end.
Thanks
from your comments it looks like they are both running. Try Mikes comments regarding avahi-browse. a common command is "avahi-browse -t --all"
you should see a list of register services that the avahi-daemon has cached. ones with _raop._tcp should corrispond to your shairport-sync instances. below you can see two visible on my test network.
if you want greater details on those registries than use
avahi-browse -rt --all
Damn! It was WindScribe. I had installed it on my router and it was somehow blocking the traffic from iOS device. I'm not sure why it wasn't from mac or windows laptop.
Yup! it was WindScibe. when I re-enable it, It stops broadcasting the device. I'm not sure whats the issue. But for now. Im going to remove the free-vpn option.
I might update the troubleshooting guide to mention VPNs...
I'm loving this!
Thanks Mike!!
Hey there!
I was not able to start the shairport-sync service. Hence cloned a fresh copy of Raspabian and tried to install using git clone method. I/m still not able to get the service up and running. I'm currently into below version
3.3.7rc1-OpenSSL-Avahi-ALSA-soxr-sysconfdir:/etc
when I check for the status it shows it started but I'm not able to see the service from any of the iOS or Mac
when I run
shairport-sync -vu
I get an error saying "Is another instance of Shairport Sync running on this device":
I tried running
gdb
and below is the outputI've already followed "Remove Old Versions of Shairport Sync and its Startup Scripts" 2 times excluding clean installation. But I'm still not able to get the service up.
Can you help me out?