Hi all,
I’m another one, who is new to this and I have the issue, that the Spotify Authentication only works, after restarting the server.
Below you find details on how to reproduce the issue:
- I start the Raspberry
- I open http://192.168.178.36:6680/iris/library/albums
→ Albums linked my Spotify account are shown - I select an album an clock on play
→ Error message “Mopidy: Failed to add some tracks”
The logs say:
2019-12-08 11:58:45,309 INFO [497:SpotifyBackend-3] mopidy_spotify.lookup: Failed to lookup “spotify:album:1SvXpumbe1NKEzOAyMjfGT”: Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Going back some minutes in the log, it gives me. So there is some authentication issue.
2019-12-08 11:40:41,368 ERROR [497:SpotifyEventLoop] spotify.session: Spotify login error: <ErrorType.OTHER_PERMANENT: 10>
2019-12-08 11:40:41,370 INFO [497:SpotifyEventLoop] spotify.session: Spotify logged out
2019-12-08 11:40:42,872 ERROR [497:SpotifyBackend-3] mopidy_spotify.web: OAuth token refresh failed: Unknown error.
2019-12-08 11:40:42,872 ERROR [497:SpotifyBackend-3] mopidy_spotify.web: Failed to load Spotify user profile
But if I restart the server (Settings (http://192.168.178.36:6680/iris/settings) and click on “Restart Server”) the log says:
2019-12-08 12:01:51,288 INFO [2544:SpotifyEventLoop] spotify.session: Spotify logged in
2019-12-08 12:01:51,290 INFO [2544:SpotifyEventLoop] mopidy_spotify.backend: Logged in to Spotify in online mode
2019-12-08 12:01:51,861 INFO [2544:SpotifyBackend-3] mopidy_spotify.web: Logged into Spotify Web API as m0t0slkutgqsjw6lg48qli1wi
2019-12-08 12:01:51,865 INFO [2544:SpotifyBackend-3] mopidy_spotify.backend: Started spotify backend
Now I can go to Albums, select one and click on play → No error, everything works.
I have to do this everytime I restart the Raspberry.
Does anybody have an idea where to search for the issue?
Thank you for the help.