Closed faeikey closed 3 years ago
Thanks for the post and the kind words.
My guess is that you have installed Shairport Sync correctly and it is set to start up automatically when the Pi is restarted. For that reason, when you try to run Shairport Sync from the console, it is already running as a service daemon in the background and you get the error message shown above.
Since it reads the configuration at startup, any changes you make to the configuration file will have no effect on the operation of the service daemon until you restart it. If you want to experiment with Shairport Sync from the console, you should stop the service daemon first.
$ sudo systemctl stop shairport-sync
should do it. Then you can experiment away...
Thank you for the fast answer,
I have my Raspberry set up to run some services like Homebridge, a Blynk Server and the Shairport Service. It‘s running without a monitor an should therefore recognize the config at startup. I already did dozens of reboots but I see no changes.
The changes from the console were my last try to get it to do what i want.
As we are on it right now, what other ways of starting shairport are available?
I only know $ sudo systemctl start shairport-sync
Thanks for your help
What I am suggesting is that you stop the service and experiment with running Shairport Sync from the console until you get it working properly. It will read the same configuration file, so whatever settings you make will be seen by the service when it restarts.
By the way, all the settings on the configuration file above are commented out -- that is, they have no effect. Is that what the problem is?
Oh wow, i guess i didn’t saw the wood for the trees. Can i just comment in the whole document or should i pick and choose the options i would like to use?
No worries -- we've all done it, I'm sure. I'd strongly advise you to leave everything commented out except the one item you wish to experiment with. When you have that figured out, then move to the next item, if any.
Generally, practically all the settings are left commented out. Typically, the output device and the volume control name are uncommented and used. Sometimes, the name setting and the password setting are also used. There rest are rather esoteric.
It works again, thank you very much. 👍🏼 The cause was the options being commented out. But I wonder why it worked in the beginning. Keep up your great work.
Hi Mike, at first, let me thank you for this amazing piece of work and the support you are giving to the community.
I already had shairport-sync up and running, but as I moved my Pi from one room to another, connected a display and enabled VNC, Shairport suddenly stopped working. I spend countless hours to get it working again and read through your troubleshooting and many issues of others, learnt alot, but no luck getting shairport to run again.
My Raspberry Pi is visible from the Airplay selector screen and I can select and stream to it (so it seems), but no sound coming out of the jack. I made sure that the Audio output is working by playing something in the webbrowser.
Today I narrowed it down to some things I then tried to change in the shairport-sync.conf file:
shairport-sync -vu
it says that port 5000 is already used by something else, so I tried changing itI just noticed that every change I made so far is just disregarded by shairport. It still tries to use port 5000, the name is still the old one and I think it doesnt change the output to the one i specified.
I did
shairport-sync -V
and it said3.3.7rc3-OpenSSL-Avahi-ALSA-soxr-metadata-sysconfdir:/etc
that is exactly where I change the shairport-sync.conf file.I don't know what to do anymore so I give in and hope you are willing to help me.
Here is my shairport-sync.conf file: