Closed anbugge closed 3 years ago
Dec 23 09:57:44 volumio volumio[18836]: [Vollibrespot] : SessionError: Connection reset by peer (os error 104)
You seem to have some network issues
Thanks. That would make sense, except everything else seems to work fine, including streaming FLAC internet radio and playing Spotify from Volumio directly. I'll keep an eye on things and see if I can make any sense of it.
Oh - 104
means as it says - connection rest by peer - i.e Spotify's servers requested a reset. Doesn't necessary mean your network is bad, just that their servers don't recognise our connection, so we restart the daemon..
That would make even more sense :) After making myself more familiar with the project I guess this would basically be a feature request to Librespot to handle this error gracefully and re-establish the connection instead of erroring out?
Oh it's something that we really need to do, but involves quite a restructuring of the logic.. https://github.com/librespot-org/librespot/issues/134
Librespot needs some love, I should try and find some time for it..
Ah, so not something for me to play with as a first foray into Rust programming in the holidays... :) For what it's worth it's been working flawlessly for me after creating the issue. I think this issue can be closed unless you want to keep it around as motivation for the session handling work.
Thanks for the help and for a great product!
Good to know, it's normally caused by some hiccups along the way to Spotify's servers and goes away in some time. Go ahead and close this, we have enough tracking issues for this :-)
Hey @anbugge, I had the same issue and tried almost everything I found on the internet, related to this. Then I was almost 100% positive that the problem was my junky ISP-router with WiFi built in (even though nothing else showed any issues). Due to working from home etc. I finally got a better router and it really solved the problem instantly. So nothing really new, but I was looking for a place to leave this comment, if somebody (like me beforehand) turns the internet upside down for a solution to this problem. Doesn't mean that a decent error-handling would not be better, but at least something like a Pi4 instead of a Pi0 won't solve this problem either.
After working fine for a while (2-10 minutes) Spotify Connect suddenly stops playback in the middle of a song.
Log output when this is happening:
Output of
journalctl -u volspotconnect2.service
: