Recently same problem here as Alan described. Connecting with spotify connect is problematic. Songs are scipping very fast and there is no sound. Sometimes there no connection at all. In the past spotify connect works flawlessly. Airplay does work..
20 comments
-
Benjamin I have the same experience. I guess Spotify has changed something and now the open-source project needs to update something (and then update HifiBerryOS)?
-
Aadjan van der Helm I have the same experience and agree with Benjamin's conclusion. The error log shows something choking up the communication ("unable to read encrypted file"). There is a new vollibrespot (0.2.5) not sure if that might solve it. Perhaps a new release of HifiBerryOS allows us to check that out?!
-
martinus I made this manual. It works for me.
-Install program called 'putty' (google it)
-open putty
- type rasperberry pi IP adress (mine is 192.168.50.222) in putty
-enter
-you see a terminal
-username; root
-password; hifiberry (is invisible!)
-type or copy / paste; nano /etc/hosts followed by enter
-scroll down (till you can't go further)
-type or copy / paste;104.199.65.124 ap-gew4.spotify.com
-ctrl x (save)
-y enter (close)
-reboot
And voila spotify connect does work again. It is magic......
Check before you start if your SSH application is connected.
-hifiberry os
-general
-remote loging
-remote loging on
Edited by martinus -
Aadjan van der Helm Follow-up: reading through the following issue posts on vollibrespot's GitHub, I was able to fix my setup:
https://github.com/ashthespy/Vollibrespot/issues/9
By adding a line to my /etc/hosts file.
-
Aadjan van der Helm Haha - fixing in parallel! Thanks for the manual Martinus!
-
Benjamin Works like a charm. Thanks buds!
-
Knut A central DNS redirect on your local router works as well (as suggested in this thread: https://community.spotify.com/t5/iOS-iPhone-iPad/Spotify-Connect-stopped-working-on-my-MultiRoom-system/td-p/5353783/highlight/true/page/10).
Please note I had to "force stop" Spotify on my mobile to get it working again.
-
HiFiBerry team We're adding the host entry in the upcoming HiFiBerryOS release automatically.
-
Knut Upgraded my three systems to the latest version today (20220726).
Surprisingly, the initial issues with spotify re-appeared:
- On system A where /etc/hosts had the re-route manually disabled (pre-upgrade handled by central DNS rewrite)
- On two systems B and C that use the updated /etc/hosts as well as the DNS rewrite
I have reverted system B to version 20220228 and spotify works again.
Same for system A.
Testing for system C: spotify takes long time to connect and then issues are re-occuring. Leaving it on latest for testing purposes.
Any ideas? What logging can I provide for debugging?
Thanks!
-
HiFiBerry team We can't really debug this at all. It seems that Spotify also had blocked some accounts for 3rd party software. You might contact Spotify and check if they see any problems with your account.
-
Knut Totally agree for Spotify changes.
Please help me understand: if Spotify works with the same Premium account with HifiberryOS v20220228 but does not with v20220726, why can we not do some debugging on our end? Anything that changed e.g. wrt Vollibrespot and the like?
-
HiFiBerry team We don't know the internals of the Spotify player. As there is no general problem, but only problem with two of your systems, there is simply nothing we can do. As other users have reported that Spotify could "reset" their account, that might be your best choice.
-
Gustavo Santos I have noticed that the fix above had already been implemented by a previous OS update (probably), but it did not work for me in Brazil. I tried removing the DNS entry to see if this was related to geography. Unfortunately, it seems that there is no way to make this work in the short term other than listening via bluetooth (as nobody knows precisely what is going on, apparently there were unknown changes on the server side).
-
HiFiBerry team This was just implemented in the latest release.
You can try to set the ap-port to something different than 443 as shown here:
https://github.com/ashthespy/Vollibrespot/issues/9#issuecomment-1095165490 -
Chander Adding my logs here - Spotify Connect not connecting on HifiBerry OS - 20230404 (Pi3 B+)
# ps -ef | grep spot
root 759 1 0 12:21 ? 00:00:00 /usr/bin/vollibrespot -c /etc/vollibrespot.conf
root 1052 1049 0 12:23 pts/0 00:00:00 grep spot#journalctl -l | grep spotApr 06 12:20:54 hifiberry python3[423]: INFO: audiocontrol2 - configuring watchdog spotifyd: ['spotify']Apr 06 12:21:19 hifiberry systemd[1]: Starting Vollibrespot...
Apr 06 12:21:20 hifiberry vollibrespot[759]: vollibrespot v0.2.4 UNKNOWN UNKNOWN (librespot 1a224a3 2020-10-25) -- Built On 2023-04-03
Apr 06 12:21:20 hifiberry vollibrespot[759]: Reading Config from "/etc/vollibrespot.conf"
Apr 06 12:21:20 hifiberry vollibrespot[759]: [Vollibrespot] : Using Alsa backend with device: default
Apr 06 12:21:21 hifiberry systemd[1]: Started Vollibrespot.
Apr 06 12:21:29 hifiberry node[775]: Registering source 'spotify'...
Apr 06 12:21:30 hifiberry vollibrespot[759]: [Vollibrespot] : couldn't parse packet from 192.168.1.23:5353: type 47 is invalid
Apr 06 12:21:30 hifiberry vollibrespot[759]: [Vollibrespot] : couldn't parse packet from 192.168.1.23:5353: type 47 is invalid***There were 20 odd more lines of this - I removed.
Any suggestions for this? -
Chander HiFiBerry team :) Any help here?
-
HiFiBerry team No we can't. Spotify might have blocked this for your account or there might be ofher issues. Unfortunately there is nothing we can do about this.
-
Chander HiFiBerry team - can you please tell me what are Spotify blocking for my account - so I can try and resolve it with them? At present I do not what is it they are blocking. I have 3 more spotify connect devices (though all officially supported) they all work fine.
-
HiFiBerry team There is no official support for Spotify on the Raspberry Pi. It might work, but it can stop working every moment. Have a look at other topics here about this where other users have reported Spotify blocking there account. There is nothing we can do about this. We also can't debug your local installation.
-
Chander Thanks HiFiBerry team - I was trying to make it work specifically with the Digi2 Pro; for a secondary system - for Spotify Connect only. It does work with Moode for me - but I loved your UI & inbuilt support for digi2 pro hat.
It also doesn't work on Volumio for me as I believe you are using Vollibrespot, which is common. Can't work it out.
Regardless - I guess I will have to wait for this - till the spotify connect is stable on HifiBerry OS.
Anyhow - great work on the UI - the best out there & that native now playing screen is a treat!
Cheers!