Open Wollert opened 1 month ago
Audio Sink Error Connection Refused: \<AlsaSink> Device default May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_open' failed with error 'Unknown errno (524)'
It looks like your sound card is already in use by another application?
Audio Sink Error Connection Refused:
Device default May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_open' failed with error 'Unknown errno (524)' It looks like your sound card is already in use by another application?
I tried sudo lsof /dev/snd/*
and got only pipewire and wireplumb. I killed these processes and restarted the raspotify service, but I still get the same error. Is there any other way to find the application(-s) that might be causing the problem?
Please note that I have not installed any additional applications on this version of Raspbian, I downloaded the image and flashed it just before installing raspotify.
How about installing the pipewire-alsa
package and restarting Raspotify?
You could also try the same approach with the pipewire-pulse
package and pulseaudio
backend.
Installing the pipewire-alsa
package and restarting Raspotify resulted in a new error message. I understand that something might not be running that should be, but I don't know how to fix the issue.
Oct 22 14:38:02 kurer librespot[678]: [2024-10-22T12:38:02Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: <AlsaSink> Device default May be Invalid, Busy, or Already in Use, ALSA function 'snd_pcm_open' failed with error 'Host is down (112)'
Not sure about this. I suspect Pipewire might be running as a different user than librespot, and that it has something to do with the connection refused message.
As a last resort, you could try uninstalling Pipewire altogether and see if that works for you.
That didn't help I'm afraid, but that you for your help!
Do other audio-based applications work? e.g. try the speaker-test
application, which IIRC is in the package alsa-utils
, and see if you get any sound.
Yes, speaker-test
works fine.
Good sign then. My guess is that librespot is simply misconfigured, perhaps missing some permissions. You could try to verify this by running librespot as root on the command line, tweaking parameters as needed. Right now I don't have a fresh Raspbian system (nor a RPI 3B) to test on so I can't really make any progress yet.
I'm getting the same error when running librespot as root. However, when I run librespot (not as root) everything works fine...
From this info I can only guess that:
pi
or similar)Is this correct?
So I have the same problem and I just did the speaker test and it works I just don't know why it won't connect. It does the same thing it connects on Spotify but when I press play it immediately pauses and doesn't move on the timeline at all
Compatible Device
Are you sure?
Compatible OS
Compatible Configuration
Latest Version
Are you sure?
Due Diligence
What happened?
Clean install on a RPi 3B.
Raspotify shows up as speaker in Spotify app on phone (and in Spotify player on Windows computer), and I am able to connect to it. But I am unable to play any tracks. When I press play nothing happens. When I change tracks and press play multiple times raspotify crashes.
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 )