Raspberry Pi Zero 2 W - Problems installing sound supervisor / Spotify issues

Hello, I recently tried to use may new Pi Zero 2 W for music streaming. I tried to deploy balenasound using the “one-click” and the CLI - variant. Spotify, Bluetooth, Airplay was not problem to install, but the sound supervisor failed every time.

Error Message from the build log:

[Success] Successfully built service multiroom-client
[Success] Successfully built service airplay
[Success] Successfully built service bluetooth
[Success] Successfully built service multiroom-server
[Info] Uploading images
[Success] Successfully uploaded images
[Error] Some services failed to build:
[Error] Service: sound-supervisor
[Error] Error: manifest for balenalib/raspberrypi0-2w-64-alpine-node:12 not found: manifest unknown: manifest unknown
[Info] Built on arm02
[Error] Not deploying release.

Here you can see the message “manifest unknown”. I searched for this error but found nothing.
I managed to install the other services, but not the sound supervisor. When I try to use spotify connect I am able to connect to the device using the spotify app, but as soon as I try to play music it disconnects immediately.

Log:

spotify [2021-12-20T16:41:00Z INFO librespot_playback::player] Loading with Spotify URI spotify:track:0K0JJ3QZEHYhBwkE21L2HZ
spotify [2021-12-20T16:41:01Z INFO librespot_playback::player] (178713 ms) loaded
spotify ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection terminated
spotify
spotify [2021-12-20T16:41:02Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: Device default May be Invalid, Busy, or Already in Use, ALSA function ‘snd_pcm_open’ failed with error ‘ECONNREFUSED: Connection refused’

Also I am unable to connect to BT. I am able to see the device and pair with it, but connecting doen’t work. Are the Spotify / BT issuses related to the missing sound-supervisor? I also tried the develeopment / production version. Didn’t change anything.

Help would be greatly appreciated.

1 Like

Welcome @lunaticluke - you actually found the problem yourself already.
The error you’re seeing ("[Error] Error: manifest for balenalib/raspberrypi0-2w-64-alpine-node:12 not found: manifest unknown: manifest unknown") means that the version 12 of Docker Hub does not exist - which is really doesn’t. But it seems to be needed for the sound supervisor. Maybe @mpous knows who to ping to get node version 12 pushed to that repo :slight_smile:

Cheers,

Nico

1 Like

@nmaas87 beat me to it! I have created an issue here, and am currently testing a node v14 upgrade for sound-supervisor. Since node v12 is now out of LTS, I don’t believe we are building new base images for it.

Here is the PR: https://github.com/balenalabs/balena-sound/pull/523

1 Like

Wow, I appreciate the fast replies! Do you think that the absence of the sound supervisor is responsible for the malfunction of Spotify connect and BT?

Thanks guys!

1 Like

@lunaticluke I believe so yes. I’ve tested the PR on a Pi 3, but will need to test on all the other devices before we merge and upload the base image. We are working on it though, so hold tight!

2 Likes

@lunaticluke We tested on all the devices we needed to, the PR is merged now, so go ahead and install and have fun!

Sounds good! Thank you very much :slight_smile:

Hello again, I deployed the balena sound once again to try if it works now. Initially I had a good feeling, because sound supervisor installed without a problem. But soon after I had the same issues as before.

The sound supervisor doesn’t start ( audio Waiting for sound supervisor to start at 172.17.0.1:80). This line reapeats itself over and over.

When I try to connect to Spotify and play a song it disconnects immediately. The logs are as follows:

spotify [2021-12-23T12:33:56Z INFO librespot_playback::player] Loading <Walk This Way (feat. Aerosmith)> with Spotify URI spotify:track:6qUEOWqOzu1rLPUPQ1ECpx
spotify [2021-12-23T12:33:57Z INFO librespot_playback::player] <Walk This Way (feat. Aerosmith)> (310386 ms) loaded
spotify ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection terminated
spotify
spotify [2021-12-23T12:33:58Z ERROR librespot_playback::player] Audio Sink Error Connection Refused: Device default May be Invalid, Busy, or Already in Use, ALSA function ‘snd_pcm_open’ failed with error ‘ECONNREFUSED: Connection refused’
Service exited ‘spotify sha256:b354887709a46e467701c9ea0ed1b59060e155973f9e65a25835d8b801c21de1’
audio Waiting for sound supervisor to start at 172.17.0.1:80
Restarting service ‘spotify sha256:b354887709a46e467701c9ea0ed1b59060e155973f9e65a25835d8b801c21de1’
spotify Starting Spotify plugin…
spotify Device name: balenaSound Spotify 1738
spotify Volume normalization enabled.
spotify Spotify audio cache disabled.
spotify [2021-12-23T12:34:01Z INFO librespot] librespot 0.3.1 bbd575e (Built on 2021-11-26, Build ID: a6e0Ery3, Profile: release)
spotify [2021-12-23T12:34:01Z INFO librespot_core::session] Connecting to AP “ap-gew1.spotify.com:4070
spotify [2021-12-23T12:34:01Z INFO librespot_core::session] Authenticated as “1155180833” !
spotify [2021-12-23T12:34:01Z INFO librespot_playback::mixer::softmixer] Mixing with softvol and volume control: Linear
spotify [2021-12-23T12:34:01Z INFO librespot_playback::convert] Converting with ditherer: tpdf
spotify [2021-12-23T12:34:01Z INFO librespot_playback::audio_backend::alsa] Using AlsaSink with format: S16
spotify [2021-12-23T12:34:01Z INFO librespot_core::session] Country: “AT”

When I try to pair my phone with the BT of the Pi it won’t work either.

I alqready set the variable “AUDIO_OUTPUT” to “DAC” and the custom config. “BALENA_HOST_CONFIG_dtoverlay” to “hifiberry-dac” because I’m using the hfiberry zero dac.

Any ideas? Thanks in advance!

Hi @lunaticluke, that sounds like the audio service is not running or started. Can you check the logs for that?

If you can download the logs from the dashboard i can take a look. There is a download icon in the top right corner in the devices’ page.

But as Flynn suggested earlier, yes, sound-supervisor and audio must be running for other services to work (even if they say they started).

log.txt (7.3 KB)

Hi!
Here’s the log. I performed a restart so you can see the startup - process. Thanks!

Happy new year!

In case you just get notified when I’m replying directly to you, here’s the requested log.
Thanks in advance!
log.txt (7.3 KB)

Hey, sorry for the delayed response, catching up after new years leave.

The logs you shared don’t show any output from sound-supervisor which is the service that is failing. Can you restart the service sound-supervisor and share the log that’s printed when doing so?

Hello! No Problem!

Here’s the requested log. Hope it is useful.

wg_audio_streaming_dull-jam-13.01.22_11 39 09_(+0000).txt (5.4 KB)

Thanks!

Hi @lunaticluke, the new logs you share also don’t show much of interest. If you can grant me support access to your device I can inspect it closely and see if I can find the problem. Here is how to do it: Grant support access - Balena Documentation

Hello @tmigone !
I granted you support access for 1 day.

Thanks!

Hello again @tmigone . The Support Accesss is soon revoked.
I prolonged it to one week.
Please tell me if you have any findings.

Thanks!