Closed mchccc closed 5 months ago
Thanks for the post. This isn't exactly a crash -- Shairport Sync is exiting because it received an error 19 when trying to access the output device -- Error 19 means "No Such Device", so for some reason, the device is not accessible. You have not specified the output device in the configuration file, so it may be that Shairport Sync is trying to access whatever the default alsa
device is. It might be better to specify the device rather than rely on a default. Use $ shairport-sync -h
to get a list of possible devices, though this is a bit crude and may not be completely accurate. A tool called sps-alsa-explore
might help you to get more specific and reliable information.
Thank you very much,
it seems that shairport-sync
sees the card correctly
hardware output devices:
"hw:DAC"
"hw:vc4hdmi"
and the output of sps-alsa-explore
also looks fine
pi@raspberry3:~/sps-alsa-explore $ ./sps-alsa-explore
> Device Full Name: "hw:DAC"
Short Name: "hw:0"
This device seems suitable for use with Shairport Sync.
Possible mixers: "PCM",0 Range: 128.00 dB
The following rate and format would be chosen by Shairport Sync in "auto" mode:
Rate Format
44100 S16_LE
> Device Full Name: "hw:vc4hdmi"
Short Name: "hw:1"
This device can not be accessed and so can not be checked.
(Does it need to be configured or connected?)
Why would it work when launched manually but not when running as a service? And how would I go about setting the card in the configuration file?
Thank you
This issue has been inactive for 28 days so will be closed 7 days from now. To prevent this, please remove the "stale" label or post a comment.
I still haven't solved this :/
Thanks. One of the suggestions was:
It might be better to specify the device rather than rely on a default.
Did you happen to try that? Maybe specify hw:DAC
as the output_device
in the alsa
stanza of the configuration file.
Hey what do you know, that worked great! :D
Thank you, sorry I didn't know how to fix the config file, it was smooth!
What happened?
Just as the title says, shairport-sync works fine if launched manually from a terminal, but crashes as soon as something tries to connect when it's running as a service.
I have an external USB DAC connected to a raspberry 3, which works fine with raspotify.
The output below is before and after trying to play something; attached below is also verbose output from a sysctl run, which looks exactly the same as the one from a manual run (compared with diff).
Thank you
Relevant log output
System Information.
Configuration Information.
PulseAudio or PipeWire installed?
How did you install Shairport Sync?
Built from source
Check previous issues