New AmpliPi Software Release 0.4.5

We’ve just released AmpliPi 0.4.5! See here for full patch notes, here’s the highlights:

  • Upgraded Spotify stream from spotifyd to go-librespot for a more reliable connection to Spotify’s servers

  • Renamed our Updater to Admin Panel since it handles passwords, updates, and support tunnel

  • Added an option to the Admin Panel for persistent logging. This will help us troubleshoot longer term issues.

Let us know how it behaves! We’re hoping the new Spotify stream works much better for all of our users.

1 Like

Thanks guys, just updated – fyi got this error thought I’d share:

I noticed that you might be aware with the logging before it. Rebooted and everything seems fine after the fact.

1 Like

I’m having an issue of anything playing off the Spotify streams now since updating. Device will connect, pause Spotify, lose the connection, can’t be found again. Have tried rebooting multiple times, deleting the sources/readding the sources.

UPDATE:
went back to 4.4, worked.
updated to 4.5 again, still not working. do not see any errors triggering though?

That’s odd. We haven’t seen this behavior in any of our testing. Some additional information from the go-librespot spotify client is logged in /home/pi/.config/amplipi/srcs/v*/log. Would you mind sending the contents of that file as well as http://amplipi.local:19531/entries when this happens?

Thanks AmpliPi Team!
The Spotify connection has been working well for me so far (installed yesterday). I will let you know if I have any other connectivity issues.
The only issue I noticed is that it seems to completely ignore the volume changes I make on the device. I have to change it from the AmpliPi app. Not a huge deal for me, but just wanted to let you know.

Yeah when we tested the new Spotify client’s integrated volume control it degraded the audio quality so initially we disabled it. I realize this a pretty useful feature. We are hoping to add back volume control in the future via the volume control pass-through capability that the new client has.

1 Like

I am going to DM you the files!

1 Like

I’m seeing the connection failure in your logs and added an issue here to keep track of it: Spotify Connection issues using go-librespot 0.1.2 · Issue #1000 · micro-nova/AmpliPi · GitHub

It looks like the Shannon connection is not re-established on failure · Issue #88 · devgianlu/go-librespot · GitHub is suspiciously similar. We will work with the developers of go-librespot to resolve this.

They had me open up a new issue here: Repeated connection failure · Issue #149 · devgianlu/go-librespot · GitHub

@matchmee after checking in with the go-librespot guys the next steps are to get a stack trace of the failure condition. The Spotify client, go-librespot, uses a SIGABRT signal to dump the current state of each go thread to its logfile. This should provide a ton of info about the state the Spotify client gets into when it is in this failure condition.

Would you mind running the following commands on you unit over an SSH connection right after you experience the Spotify failure? I tested them on one of our internal development units.

kill -SIGABRT $(pgrep go-librespot) 
cat .config/amplipi/srcs/v*/log > matchmee_spotify_logs.txt

After sending those commands, please send us the contents of matchmee_spotify_logs.txt

Also relevant may be any extra details about you internet connection that could be adding delay. Is this running through a VPN or something like a pi hole? Or does the unit live on a VLAN restricted in another way?

We really appreciate your help debugging this!

@matchmee did you happen to get a chance to try that out?

I am very sorry, holiday travel and everything had a long time getting through. Your message about asking Pihole got me thinking, and sure enough my pihole was blocking the requests! I was able to whitelist the issue and then it started working! Apologies on that one!

Oh awesome! I’ll let the go-librespot guys know.

Would you happen to be able to share what you had to whitelist to get this to work? I have a feeling future Pihole (or similar firewalls) users will thank you.

Sorry on the delay! I Regex Whitelisted this link:

audio4-ak.spotifycdn.com