-
Notifications
You must be signed in to change notification settings - Fork 462
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spotifyd stops after a few minutes: "Unable to load audio item: MercuryError" #1211
Comments
I did some further testing, and it appears that it really is my own network.
I'll need to investigate why it says "connection reset by peer", I guess the NAT doesn't like connections that are open for a long time or something. |
Sorry to hear that. Unfortunately, to fix this issue, proper reconnection support would need to be implemented in The other issue you're mentioning is (I think) about a slightly different problem. Since a recent release, |
The weird thing is that this is actually a really stable connection, I've had less problems on a network that was way, way worse. Spotifyd is really the only thing that's causing me problems here. Also, I've found it seems to be failing at whole minutes. I tested three times and once it failed at 8:01 and two times at 6:00. This might suggest a timeout of some sort. But it could also be that the server side pings the connection every minute and finds it in a broken state on these whole minutes.
I guess? But again, the network appears very stable - if anything, I would assume it's a timeout of some sort. |
I wish I could help. I have very little experience with Rust (I'm a Go person) and I'm not sure I want to put so much effort into getting to know the codebase. |
It appears that librespot-org/librespot#1176 improves things slightly. Or at least, with current librespot dev (librespot-org/librespot@f037e46) it appears to keep the connection alive when not playing music, and when it breaks while playing a song it will continue playing until the end instead of 30 seconds before the end - which was kind of frustrating. Also, reconnecting after a lost connection seems to work in the dev branch. Still hoping for a complete fix though. |
I have now switched to librespot-java which works reliably on my network (and as an added bonus also reports played tracks to "recently played" which is nice). It looks like librespot-java is able to automatically reconnect without interrupting the music. |
Hi there, I am running Spotifyd on a Pi Zero W which is only used as a Spotify connect device. I have a raspberry Pi 3 running with raspotify (on the same network) which is also based on librespot and it works perfectly now. I had the exact same issue a couple of years ago with raspotify, but I think it has been fixed on librespot, and updated on raspotify. Not sure I can help you but I can make some tests to help resolving the issue if it is possible. |
This issue has resolved itself magically somehow, for both my Raspberry Pi and my laptop (with different distro, and the Pi running librespot while my laptop uses spotifyd). This again points to some weirdness in my network that now appears to be resolved. |
I can confirm the same problem:
|
Description
Since a few weeks, Spotifyd has become unusable for me. It does still work, but when playing a few songs it will inevitably stop playing after a few minutes (about 5 or 10 minutes or so). Actually, the UI in Android thinks it has disconnected even before that, so clearly the connection to the Spotify servers appears to be broken and Spotifyd only realizes it a little bit later.
To Reproduce
Not anything in particular, just play some songs and it'll eventually stop working. I don't do anything different from what I did in the past.
Expected behavior
Not drop the connection, or if it does it should reestablish the connection without interrupting the music.
Logs
Full log where it happens. The
^C
at the end is where I stopped Spotifyd when the music stopped.Click to show logs
This is the part of the log that appears the most relevant:
Compilation flags
I built Spotifyd myself, at 1c14982 using
cargo build -j1 --release
.Versions (please complete the following information):
Additional context
The bug appears similar to #1154, but I don't think it's the same issue. As far as I know, nothing changed about my internet connection - Spotifyd just stopped working properly at some point (AFAIK with the same binary I was running for months). And my internet connection seems pretty stable and fast - well, at least the ethernet connection which it should pick (I hope).
The text was updated successfully, but these errors were encountered: