New 2023 Spotify Plugin

Hi!

Looks like a couple of things:

a) Spotify catalogue errors with endpoints available to librespot (this causes track skipping or simply no playback on Volumio, even if the track is available through your Spotify app):

Dec 16 11:36:06 volumio go-librespot[2423]: time="2025-12-16T11:36:06+01:00" level=warning msg="failed seeking to track in context spotify:playlist:37i9dQZF1E4nGI1v6PL6cd" error="could not find track" uri="spotify:playlist:37i9dQZF1E4nGI1v6PL6cd"

b) Connection to Spotify server, catalogue, & authentication issues:

Dec 16 07:20:06 volumio go-librespot[2423]: time="2025-12-16T07:20:06+01:00" level=error msg="failed receiving packet" error="failed reading packet header: read tcp (IP's): read: connection reset by peer"

Dec 16 11:36:06 volumio volumio[1970]: SPOTIFY: received: {"type":"will_play","data":{"context_uri":"spotify:playlist:37i9dQZF1E4nGI1v6PL6cd","uri":"spotify:track:1lFau9QnLnI8Db1K2uxeQ8","play_origin":""}}
Dec 16 11:36:06 volumio go-librespot[2423]: time="2025-12-16T11:36:06+01:00" level=debug msg="selected format OGG_VORBIS_320 (9ccc6182f9317d1cde96f3e4d0dab6a4a06b9ea2)" uri="spotify:track:1lFau9QnLnI8Db1K2uxeQ8"
Dec 16 11:36:06 volumio go-librespot[2423]: time="2025-12-16T11:36:06+01:00" level=debug msg="requested aes key for file 9ccc6182f9317d1cde96f3e4d0dab6a4a06b9ea2, gid: 1lFau9QnLnI8Db1K2uxeQ8"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=trace msg="sent dealer ping"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=warning msg="failed handling dealer request" error="failed loading current track (transfer): failed creating stream for spotify:track:1lFau9QnLnI8Db1K2uxeQ8: failed retrieving audio key: context deadline exceeded"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="skipping packet PacketTypeMercuryEvent, len: 411"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="skipping packet PacketTypeMercuryEvent, len: 3518"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="skipping packet PacketTypeMercuryEvent, len: 2203"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="skipping packet PacketTypeMercuryEvent, len: 370"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="skipping packet PacketTypeMercuryEvent, len: 2172"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=debug msg="handling resume player command from 8e675c6bfd0631914dbf93c8a016bb1f9773b22d"
Dec 16 11:36:21 volumio go-librespot[2423]: time="2025-12-16T11:36:21+01:00" level=warning msg="failed handling dealer request" error="no primary stream"

Hope this helps the team @Darmur !

Update: I have no idea what changed but for 2 days the plugin works like a charm. No hickups, connects each time within a second and plays flawless for hours. I really hope it will keep doing such a good job.

a new version 4.3.4 is available in the Beta test channel, both for Volumio 3 (buster) and Volumio 4 (Bookworm)

Yesterday, I started having an issue with every track or playlist I tried on Spotify. Below is my configuration setup and error.

Raspberry Pi 3 Model B Rev 1.2 - SD Card
System Version: 4.073
Spotify Plugin Version: 4.3.4

level=error msg=“failed handling request play” error=“failed loading context: failed loading current track (load context): failed creating stream for spotify:track:4xdBrk0nFZaP54vvZj0yx7: failed retrieving audio key: failed retrieving aes key with code 1”
error: Failed to send command to Spotify local API: /player/play: Error: Internal Server Error

Edit: I have contacted spotify to see if this is a problem specifically with my account and access permissions. They would not help at all as Volumio is not an official partner. They went as far to tell me that they recommend not using Volumio with Spotify.

I installed Volumio to use as a Spotify streamer. I got everything set up and it works fine–when I stream from my phone to the device.

But I want to be able to play directly from the device, which doesn’t work at all. I press play and the progress bar doesn’t move. Nothing happens. Web radio can play directly from the device, but not Spotify. Anyone have any idea?

Im running Volumio 3 on 2 Raspberry PI’s. One has an IQaudio digi amp+ , the other an IQaudio DAC+. When connecting from Spotify Connect it wont allow Lossless files, only File quality Automatic. I have a Spotify premium account and its Lossless OK direct to my phone or a USB C DAC connected to my phone (Dragonfly DAC). Any ideas whether this is a Volumio issue?
Thanks Jan

please read from here:

Hi everyone — quick note in case it helps some users who still hit stability issues with Spotify inside Volumio.

I’m not trying to replace the official plugin (and huge respect to the team maintaining it). I just built an external, Docker-based workaround that keeps Volumio “clean” and treats Spotify as a standard network source:

  • a Docker container exposes a Spotify Connect endpoint
  • audio is bridged to a regular Icecast/HTTP stream
  • in Volumio you simply add that URL as a Web Radio / custom station, and play it like any other radio stream

So Volumio remains the playback device, but Spotify control stays in the Spotify app via Connect. It’s not “deep integration” (no library merge, limited metadata), but it’s predictable and hardware-agnostic.

Full setup + one-command install are documented here:

https://spotycast.ovh

If linking here isn’t appropriate for this thread, feel free to let me know and I’ll remove it.

Hi

Any news about the talks between spotify and volumio regarding support of high res?

Regards peter

4 Likes

Hello everyone. I have a fresh installation of 4.096 on an RPi5 8GB, Spotify plugin 4.3.4. Every time I start Volumio, the Spotify plugin gets logged out. After logging in again, everything works. What could be wrong? This didn’t happen on RPi4 and 4.089.

Spotify plugin updated to v4.4.1
Thank you @devgianlu :wink:

2 Likes