ashthespy / Vollibrespot

Spotify Connect daemon for Volumio
MIT License
20 stars 8 forks source link

Logged in connection to Spotify disconnects after some inactive time #11

Open chaseadam opened 2 years ago

chaseadam commented 2 years ago

Using a username/password to login to Spotify specified in /etc/vollibrespot.conf.

After some inactive time the device disappears from Spotify clienst and the following error is in the logs:

Sep 13 09:37:24 hifiberry vollibrespot[771]: [Vollibrespot] : Connection to server closed.
Sep 13 09:37:24 hifiberry vollibrespot[771]: [Vollibrespot] : Spirc shut down unexpectedly
Sep 13 09:37:24 hifiberry vollibrespot[771]: [Vollibrespot] : EventSender disconnected

Restarting the service which runs volibrespot re-connects, but will disconnect again after some time.

This behavior does not exist in upstream librespot. I made a small attempt to rebase to latest upstream librespot, but it looks like they did some internals rework which does not make it straight forward.

ashthespy commented 2 years ago

I haven't been doing much with this off-late - and yes, this is currently based of my (old) custom fork of librespot But it would seem Volumio's fork (https://github.com/volumio/Vollibrespot/tree/0.4.2) is tracking upstream?

Either way, this player/daemon is very bare bones, and your probably better off using something like spotifyd until I/someone makes the time to rework it :-)

austin99 commented 2 years ago

I'm having a similar-ish issue, however in my case I'm using a VPN and upon bringing the VPN connection up, I get the following messages exactly 60 seconds later.

[Vollibrespot] : Connection to server closed.
[Vollibrespot] librespot_core::session: Invalidating session[0]
[Vollibrespot] librespot_core::channel: new ChannelManager
[Vollibrespot] librespot_core::session: drop Dispatch
[Vollibrespot] : Spirc shut down unexpectedly
[Vollibrespot] librespot_connect::spirc: drop Spirc[0]
[Vollibrespot] librespot_playback::player: Shutting down player thread ...
[Vollibrespot] librespot_playback::player: drop PlayerInternal[0]
[Vollibrespot] librespot_playback::player: PlayerInternal thread finished.
[Vollibrespot] : EventSender disconnected
[Vollibrespot] vollibrespot::meta_pipe: drop MetaPipeThread[0]

I don't have any issues when the VPN remains disconnected.

@ashthespy would you be able to point me in the right direction as to how I might further diagnose? Thanks