raspotify: bluealsa PCM errors with 0.31.1

Sorry in advance for my lack of knowledge, but I’m running into issues with a fresh install of Raspotify on my RPi Zero W running Raspberry Pi OS Lite “Bullseye”. I borked my old working Buster setup by trying to build bluealsa from source with AAC support. My playback device is a BT speaker.

The errors I’m getting are:

Nov 23 17:15:29 raspberrypi librespot[443]: ALSA lib bluealsa-pcm.c:763:(_snd_pcm_bluealsa_open) Couldn't get BlueALSA PCM: PCM not found
Nov 23 17:15:29 raspberrypi librespot[443]: [2021-11-23T17:15:29Z 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 'ENODEV: No such device'

Running librespot manually does work fine however, so I’m not sure what is causing this. It seems it may be related to other recent issues? Got it working by downgrading to 0.16.0.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 29

Most upvoted comments

It’s fixed for me using the AF_UNIX change in this issue.

Good deal!!!

0.31.2-beta-2 is up. If all goes well I will release 0.31.2 in a couple days.

https://github.com/dtcooper/raspotify/releases/tag/0.31.2-beta-2

@bablokb might be able to help better than I?

pi-btaudio is currently broken (at least for Buster and later). I am working on a newer version that uses bluez-alsa instead of bluesalsa. There is still some testing ahead, the dbus-code doing the auto-connect also needs updates.

Using a Raspberry Pi as a middle man is indeed nothing you would normally want to do, if your controlling device can also stream bluetooth.

Good deal. I’ll add that to master. It will be in the next release.

That seems to have done the trick! 0.31.0 up and running without any errors in systemd logs. Thank you very much.

Sorry, I’m a knucklehead when it comes to stuff like this,

It’s all good. I’m probably the one who broke it,lol!!!

Try adding: AF_BLUETOOTH

To the RestrictAddressFamilies= so it looks like:

RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6 AF_NETLINK AF_BLUETOOTH