Airplay was working without any problems, but after upgrading to 2.692 from 2.673 using the web interface I lost it. It seems that the upgrade stopped airplay service from starting after boot, as
ps aux | grep airport
returns nothing and executing
shairport-sync &
fixes the problem.
I could not find any logs:
$ systemctl status shairport-sync --full
● shairport-sync.service - Shairport Sync - AirPlay Audio Receiver
Loaded: loaded (/lib/systemd/system/shairport-sync.service; static)
Active: failed (Result: exit-code) since Sun 2019-12-22 07:56:55 UTC; 6min ago
Process: 1365 ExecStart=/usr/local/bin/shairport-sync --configfile=/tmp/shairport-sync.conf (code=exited, status=217/USER)
Main PID: 1365 (code=exited, status=217/USER)
Dec 22 07:56:55 my-volumio systemd[1]: Starting Shairport Sync - AirPlay Audio Receiver...
Dec 22 07:56:55 my-volumio systemd[1]: Started Shairport Sync - AirPlay Audio Receiver.
Dec 22 07:56:55 my-volumio systemd[1]: shairport-sync.service: main process exited, code=exited, status=217/USER
Dec 22 07:56:55 my-volumio systemd[1]: Unit shairport-sync.service entered failed state.
$ journalctl -u shairport-sync.service
No journal files were found.
Confirmed on my test system. Toggling from the Sources menu doesn’t have any affect. The active/inactive status will toggle red but the status never truly changes.
I have still been having no success playing music via Airplay, even after a few upgrade versions of Volumio. I tried toggling the switch under settings on and off, restarting my Raspberry pi, and nothing worked, except logging in via SSH and manually doing the shairport-sync & command mentioned above. When I restart the system, I need to run that command again, each time.
Hi. I had the same problem. I am currently running 2.703 Here is how I solved it:
Install supervisord which will restart a process if it fails
modify a few config files
Reboot
I have no idea how well this will persist after an upgrade, but this will not be hard to re-do if needed. Here are the actual commands and config file edits:
Login via ssh to the volumio account on your local volumio device. I am using a raspberry pi
sudo su -
apt install supervisor
Create /etc/supervisor/conf.d/shairport-sync I used pico for this Here is mine:
[program:shairport-sync]
user=volumio
command=/usr/local/bin/shairport-sync
To create, copy the two lines above into /etc/supervisor/conf.d/shairport-sync.conf
pico /etc/supervisor/conf.d/shairport-sync.conf [/code]
5. Modify /etc/supervisor/supervisor.conf Here are the parts to change:
[code][supervisord]
logfile=/var/log/supervisord.log ; (main log file;default $CWD/supervisord.log)
pidfile=/var/run/supervisord.pid ; (supervisord pidfile;default supervisord.pid)
childlogdir=/var/log ; ('AUTO' child log dir, default $TEMP)
Reboot and it shairport-sync should be running after being started by supervisor. If it fails for some reason, here are a few things to look at:
Run
systemctl -l status supervisor.service
It should point you to the issue
Run
systemctl start supervisor.service
In case it did not start on boot. The package I installed setup the systemd config files so it should be trying to start already and this should not be needed.
Check the log files in /var/log/ You’ll see one for supervisor itself and both stderr and stdout for the shairport-sync service, in case they log anything.
I am really not sure why this work around is needed. Is airplay now a licensed feature or part of myvolumio integration somehow? I haven’t looked into that. I have been using volumio for years and did not need any of the integration of with services other than spotify, but sometimes I like to use airplay to play from a podcast or the spotify app itself.
Glad to hear it! Not for me, I’ve upgraded to 2.729 and just today to 2.773, but there’s been no change for Airplay to work for me without manually starting it through the terminal.
I guess I need to investigate easy ways to save my settings and restart my Volumio setup on my Raspberry Pi to see if a fresh start fixes it.
Which plugins you have installed? (meaning, all plugins you ever installed on this system, even the ones you removed now).
Also,did you install things manually?
We are trying to understand where this issue comes from and it seems that a particular part of the system gets overwritten in some circumstances and this results in airplay not working…
Here’s what shows up under my plugins:
System Information 0.1.0
LastFM Scrobbler 1.1.12
Spotify 1.3.5
Backup & Restore Data 0.7.2
I’m pretty sure I installed them all through the Settings/Plugin Manager, and I don’t think I’ve installed any other ones.
I installed Volumio on a fresh Raspberry Pi 3 B+ with Allo BOSS in February 2019 and Airplay/etc worked for several months. I’m not sure what happened to it.
Hopefully my issues are over; I used the Factory Reset button and re-did everything. I didn’t restore settings, I entered things as new. And Airplay is working, even after a reboot.
Airplay starts fine the first time the system boots. once I connect to airplay, if I disconnect from it my volumio pi disappears as an airplay destination from all devices. also if instead of airplay I choose local or network sources for playback, my volumio pi will disappear as an airplay destination after roughly 30 minutes. the only way I have found to get it to come back is to restart the pi. restarting shairport-sync does not bring it back, neither does restarting networking, neither using the GUI nor SSH works. very strange, it’s as if it goes into some kind of permanent hibernation mode