jeremy_fritz
Posts: 70
Joined: Tue Jul 17, 2012 7:04 pm

Shairport issue: program automatically stops in WiFi

Tue Nov 11, 2014 6:21 pm

Hi everybody,

I have been using Shairport in a Raspberry Pi model B for a while and it worked perfectly until a few days ago.
Indeed, after a while (maybe after a few hours), my Airplay receiver (aka my Raspberry Pi) is not visible any more.

What is very strange is that the problem seems to happen just when my Raspberry Pi is connected to my network in Wifi.
I made an experience and it seems to be OK when I use the ethernet.

If it can help, I followed this tutorial: http://drewlustro.com/hi-fi-audio-via-a ... pberry-pi/

Have you experienced the same problem?
Could you help me diagnose the problem (I don't know how to understand the file shairport.log, shairport.err or syslog)?

Thank you very much!

hagensieker
Posts: 41
Joined: Thu Mar 13, 2014 7:45 pm

Re: Shairport issue: program automatically stops in WiFi

Tue Nov 11, 2014 7:05 pm

create a file called

/root/check_services

place the command in that starts your shairport server. In my case it is:

shairport -a Airpi -o alsa -- -d hw:0,0


Then do:

chmod 700 /root/check_services


Then add it to your cron (I have mine set to check shairport every 5 minutes.)

*/5 * * * * /bin/bash /root/check_services


Also in the cron is this:

@reboot shairport -a Airpi -o alsa -- -d hw:0,0

jeremy_fritz
Posts: 70
Joined: Tue Jul 17, 2012 7:04 pm

Re: Shairport issue: program automatically stops in WiFi

Wed Nov 12, 2014 7:34 pm

Thank you for your answer!

If I understand, the cron will try to launch Shairport every 5 minutes.
But I don't understand why I have to do this. Is it normal that the servcie shutdowns automatically? Is there a way to fix it?

Thank you!

jeremy_fritz
Posts: 70
Joined: Tue Jul 17, 2012 7:04 pm

Re: Shairport issue: program automatically stops in WiFi

Sat Nov 15, 2014 10:21 am

I keep looking for another solution. But thank you hagensieker! I will use it if I can't fix the issue.

So my Shairport always ends up disapearing in Wifi mode.
What is very strange is that when I try to relaunch it, it says
Starting Shairport 1.1.1-22-gd679d19
FATAL: could not bind any listen sockets!
Shutting down...
Then, I conclude that the service is up!

After a while and trying to solve it, it ends up appearing :shock:

Could you help me?
Thank you

Return to “Graphics, sound and multimedia”