mirror of
https://github.com/devgianlu/go-librespot.git
synced 2026-04-26 05:15:49 +03:00
[GH-ISSUE #240] Stuck after "Failed restoring session after logout" #153
Labels
No labels
bug
enhancement
pull-request
spotify-side
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-librespot#153
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @2opremio on GitHub (Nov 3, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/240
go-librespotgets stuck afterFailed restoring session after logoutIt reauthenticated upon a manual restart without problems:
It may have been a legitimate error at the time, but the process shouldn't get stuck. Even crashing (and letting the OS restart it if configured like that) is better than being unauthenticated and completely nonfunctional.
I've noticed that it's become increasingly difficult to have go-librespot as a long-running daemon process. Most of the times, when I try to use it it either fails to tranfer the session or is stuck in an irrecoverable state without manual intervention (See https://github.com/devgianlu/go-librespot/issues/228 and https://github.com/devgianlu/go-librespot/issues/238 and a few others which have been resolved, thanks). I'm starting to consider either switching product or working around it by having a cronjob restarting it every hour (but I would hate to do this)
@devgianlu Don't get me wrong, I am really thankful for your hard work I love the project! It's just that, as a user, it's become difficult to deal with. Particularly since I originally came from using https://github.com/Spotifyd/spotifyd looking for a better maintained alternative.
You could say, "OK, then contribute and fix the problems", and you would be right! But I don't have the time.
@markferry commented on GitHub (Nov 5, 2025):
I suspect I have been hitting this too - with 8 instances of go-librespot running it seems to happen about once a day.
Running now with debug logging to try reproducing...
@blattm commented on GitHub (Nov 27, 2025):
Happens to me as well :/
The "loading previously persisted zeroconf credentials" message makes me think, that maybe the problem does not occur if zerconf credential storage is disabled...
I just started using this configuration and in case the issue reappears, I'll let you know.
Until this is properly fixed, a simple workaround would be to just exit in the "main.go" where the "failed restoring session..." is printed.
@markferry commented on GitHub (Nov 27, 2025):