-
Notifications
You must be signed in to change notification settings - Fork 458
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
Connection reset by peer (os error 104) #1306
Comments
Isn't this #706? |
I have the same issue and it's a regular one. I have the pulseaudio backend with Pipewire |
I don't think it is. Not for me at least. In #706 people are talking about having to restart and VPN and/or WiFi switching maybe causing it. I'm not using a VPN, the box running spotifyd is wired, not WiFi. My connection to spotifyd just drops (the song keeps playing - output just reverts to my phone speaker). I simply select my spotifyd server as the output device and output quickly switches back to spotifyd. Here's my log for today with just "Loading" and "loaded" stripped out:
It just happened once today. It's not unusual for it to happen 3-4 times in a session (a few hours). |
My solution is to migrate to Librespot, which has resolved this issue with a new 'keep-alive' system. |
Unfortunately my backend isn't supported by librespot (Pipewire) so I would love to have a fix for spotifyd |
I'm also running into this same issue. I now see that I'm using librespot as well. Same issue. [2024-11-05T23:59:04Z ERROR librespot_core::session] Connection reset by peer (os error 104) |
Try creating a new cache folder and run Librespot with the options --cache and --access-token. Perhaps authorizing directly with the access token will prevent the subscription from terminating. |
I used to have random disconnects after an hour max., but yesterday I listened for multiple hours with no problems using a build of #1317. Also, previously MPRIS stopped working after connecting and disconnecting from another client a few times, that seems to be fixed as well. Huge thanks from me as well :) |
Note that the bulk part of the work on stability and everything has been done by librespot devs, so that credit goes to them. But thanks a lot for testing the branch! |
I would like to try that too but I am not familiar with the process. How do I test #1317 ? Is it in the source on "Spotifyd/spotifyd.git" or on "eladyn/spotifyd.git" ? |
@MrZoltan You have indeed several options, but the easiest one is probably either the github CLI ( |
@eladyn Thanks a lot for the help! It wasn't so easy but I managed to work it out in the end. It now seem that the "Connection reset by peer (os error 104)" does not appearing anymore and that is a big relief, again thanks for that. I can't help but notice that now when skipping track there is an sound artefact for a very brief moment SkipTrack->Silence->Noise->Start of next track. should I maybe write another issue with that ? It was not present before. |
Description
Every time I start spotifyd, it plays for about an hour or two and then goes from the play state to idle. When I check journalctl, it says "subscription terminated." followed by "Connection reset by peer". After that, it starts the authentication process again. I'm not exactly sure what to do or what could be causing this.
To Reproduce
Logs
Click to show logs
Compilation flags
Versions (please complete the following information):
The text was updated successfully, but these errors were encountered: