Open shumafuk opened 5 months ago
Somehow its working now, not sure why. Problem solved.
I have exactly the same problem.
I had this problem in the past with another client. The problem with that one was that an image output had to be connected. Unfortunately, it didn't work with raspotify to simply connect a monitor via HDMI
I also had the ERROR
Audio Sink Error Connection Refused: <AlsaSink> Device default May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_op>
Could fix it by defining the device (LIBRESPOT_DEVICE
) name in /etc/raspotify/conf
to an actual device, not default. I could list possible devices with librespot -d ?
. Maybe you will also need to define the format (LIBRESPOT_FORMAT
) in the same file.
So annoying, because simply running librespot
in a ssh session works without defining the exact device, not when starting it with systemd though.
I also had the ERROR
Audio Sink Error Connection Refused: <AlsaSink> Device default May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_op>
Could fix it by defining the device (
LIBRESPOT_DEVICE
) name in/etc/raspotify/conf
to an actual device, not default. I could list possible devices withlibrespot -d ?
. Maybe you will also need to define the format (LIBRESPOT_FORMAT
) in the same file.So annoying, because simply running
librespot
in a ssh session works without defining the exact device, not when starting it with systemd though.
@leonnicolas I am also having this issue... can you explain better how you solved it?
For example on my raspberry pi 4: I type
librespot -d ?
to find possible alsa devices. In my case the first one is called hw:CARD=Headphones,DEV=0
.
I open the file /etc/raspotify/conf
and uncomment the entry LIBRESPOT_DEVICE
and set its value to hw:CARD=Headphones,DEV=0
.
I also had to set the format to S16
. Maybe for your pi this can be another format. The format can be defined in /etc/raspotify/conf
as well. The entry is called LIBRESPOT_FORMAT
.
I restart the systemd unit.
systemctl restart raspotify
Check the logs with
journalctl -fu raspotify
while trying to play a song. Hopefully it works.
for me it ended up giving this code when listing librespot -d ?
pcm_dmix.c:999:(snd_pcm_dmix_open) unable to open slave
i had to disable the on board audio to only get the installed Dac when listing librespot -d ?
after that it worked flawlessly
Compatible Device
Are you sure?
Compatible OS
Compatible Configuration
Latest Version
Are you sure?
Due Diligence
What happened?
Raspotify suddenly stop playing anything. It disconnect right after I connect with any client at network, restart and after while I can connect again but again it disconnect, restart... so on. Any help from logs are appreciated. Thanks.
Relevant log output and/or the contents of /etc/raspotify/crash_report if any ( sudo journalctl -u raspotify -b and sudo cat /etc/raspotify/crash_report )