Shairport killed/reopened repeatedly

Hi,

If I start an AirPlay stream from one device to Volumio, it’s working fine. If I then start another stream from a different device, it sometimes works. But more often than not, the AirPlay target disappears from all devices and doesn’t come back.

Checking journalctl -f , I see that Volumio appears to be repeatedly starting and then immediately stopping the airplay service. This causes systemd to throttle and refuse to try to start the service. It never actually gets launched again until either started manually via an ssh session or if the pi’s rebooted.

Shairplay-sync doesn’t seem to be crashing – rather, volumio is actually stopping and starting it repeatedly. Systemd’s ‘Failed’ messages only appear once it’s decided to start ignoring the requests.

Log extract:

May 17 21:12:38 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:38 gardenpi systemd[1]: Started ShairportSync AirTunes receiver. May 17 21:12:38 gardenpi systemd[1]: Stopping ShairportSync AirTunes receiver... May 17 21:12:38 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:38 gardenpi systemd[1]: Started ShairportSync AirTunes receiver. May 17 21:12:38 gardenpi systemd[1]: Stopping ShairportSync AirTunes receiver... May 17 21:12:38 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:38 gardenpi systemd[1]: Started ShairportSync AirTunes receiver. May 17 21:12:39 gardenpi systemd[1]: Stopping ShairportSync AirTunes receiver... May 17 21:12:39 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:39 gardenpi systemd[1]: Started ShairportSync AirTunes receiver. May 17 21:12:39 gardenpi systemd[1]: Stopping ShairportSync AirTunes receiver... May 17 21:12:39 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:39 gardenpi systemd[1]: Started ShairportSync AirTunes receiver. May 17 21:12:40 gardenpi systemd[1]: Stopping ShairportSync AirTunes receiver... May 17 21:12:40 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:40 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:40 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:40 gardenpi systemd[1]: Unit airplay.service entered failed state. May 17 21:12:40 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:40 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:40 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:40 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:40 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:40 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:40 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:40 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:40 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:41 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:41 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:41 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:41 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:41 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:41 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:41 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:41 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:41 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:42 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:42 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:42 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:42 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:42 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:42 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:42 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:42 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:42 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:42 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:42 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:42 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:43 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:43 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:43 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:43 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:43 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:43 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:43 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:43 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:43 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:43 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:43 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:43 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:44 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:44 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:44 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:44 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:44 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:44 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:44 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:44 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:44 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:44 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:44 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:44 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:44 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:44 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:44 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:45 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:45 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:45 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:45 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:45 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:45 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:45 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:45 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:45 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:45 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:45 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:45 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:46 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:46 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:46 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver. May 17 21:12:46 gardenpi systemd[1]: Starting ShairportSync AirTunes receiver... May 17 21:12:46 gardenpi systemd[1]: airplay.service start request repeated too quickly, refusing to start. May 17 21:12:46 gardenpi systemd[1]: Failed to start ShairportSync AirTunes receiver.

+1 - I am seeing this exact issue too. Anecdotally seems to occur most frequently when changing volume.