# Spotify token refresh fail

**URL:** <https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473>\
**Category:** Help and support\
**Created:** [May 23, 2022, 10:28am UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473 "2022-05-23T10:28:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbh181](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mbh181/32/1931_2.png) [@mbh181](https://discourse.mopidy.com/u/mbh181)\
**Post date:** [May 23, 2022, 10:28am UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/1 "2022-05-23T10:28:57Z")

</div>

Hello - running mopidy on RPI as service and spotify will not load songs. This even though all token and login details are saved correctly to config file.

Error log output below:

– Logs begin at Thu 2022-05-19 09:17:01 CEST, end at Mon 2022-05-23 12:24:32 CEST. –  
May 19 09:33:07 raspberrypi systemd[1]: Starting Mopidy music server…  
May 19 09:33:07 raspberrypi systemd[1]: Started Mopidy music server.  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy. **main** Starting Mopidy 3.2.0  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy.config Loading config from builtin defaults  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy-local.conf  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy.config Loading config from command line options  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy. **main** Enabled extensions: softwaremixer, musicbox\_webclient, spotify, m3u, iris,  
May 19 09:33:11 raspberrypi mopidy[497]: INFO [MainThread] mopidy. **main** Disabled extensions: none  
May 19 09:33:12 raspberrypi mopidy[497]: INFO [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer  
May 19 09:33:12 raspberrypi mopidy[497]: INFO [MainThread] mopidy.commands Starting Mopidy audio  
May 19 09:33:12 raspberrypi mopidy[497]: INFO [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, TuneInBac  
May 19 09:33:12 raspberrypi mopidy[497]: INFO [Audio-2] mopidy.audio.actor Audio output set to “alsasink”  
May 19 09:33:12 raspberrypi mopidy[497]: ERROR [SpotifyEventLoop] spotify.session Spotify login error: \<ErrorType.OTHER\_PERMANENT: 10\>  
May 19 09:33:14 raspberrypi mopidy[497]: ERROR [SpotifyBackend-7] mopidy\_spotify.web OAuth token refresh failed: Unknown error.  
May 19 09:33:14 raspberrypi mopidy[497]: ERROR [SpotifyBackend-7] mopidy\_spotify.web Failed to load Spotify user profile  
May 19 09:33:14 raspberrypi mopidy[497]: INFO [MainThread] mopidy.commands Starting Mopidy core  
May 19 09:33:14 raspberrypi mopidy[497]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend, MpdFrontend  
May 19 09:33:14 raspberrypi mopidy[497]: INFO [IrisFrontend-14] mopidy\_iris.core Starting Iris 3.58.2  
May 19 09:33:14 raspberrypi mopidy[497]: INFO [HttpFrontend-16] mopidy.http.actor HTTP server running at [::]:6680  
May 19 09:33:14 raspberrypi mopidy[497]: INFO [MainThread] mopidy\_mpd.actor MPD server running at [::ffff:127.0.0.1]:6600

Any thoughts on how to solve this one?

---

<div class="post-metadata">

**Author:** ![Morta](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/morta/32/1869_2.png) [@Morta](https://discourse.mopidy.com/u/Morta)\
**Post date:** [May 23, 2022, 11:55am UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/2 "2022-05-23T11:55:38Z")

</div>

```auto
May 23 13:47:02 5erver mopidy[167383]: INFO 2022-05-23 13:47:02,722 [167383:MainThread] mopidy.commands
May 23 13:47:02 5erver mopidy[167383]: Starting GLib mainloop
May 23 13:47:02 5erver mopidy[167383]: INFO 2022-05-23 13:47:02,722 [167383:QSaverFrontend-18 (_actor_loop)] mopidy_qsaver.frontend
May 23 13:47:02 5erver mopidy[167383]: Qsaver unable to restore tracklist file
May 23 13:47:23 5erver mopidy[167383]: INFO 2022-05-23 13:47:23,394 [167383:SpotifyBackend-4 (_actor_loop)] mopidy_spotify.lookup
May 23 13:47:23 5erver mopidy[167383]: Failed to lookup 'spotify:track:4KHXk0rTD80mEf7bbdK29j': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
May 23 13:47:25 5erver mopidy[167383]: INFO 2022-05-23 13:47:25,021 [167383:SpotifyBackend-4 (_actor_loop)] mopidy_spotify.lookup
May 23 13:47:25 5erver mopidy[167383]: Failed to lookup 'spotify:track:4KHXk0rTD80mEf7bbdK29j': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
May 23 13:47:26 5erver mopidy[167383]: INFO 2022-05-23 13:47:26,376 [167383:SpotifyBackend-4 (_actor_loop)] mopidy_spotify.lookup
May 23 13:47:26 5erver mopidy[167383]: Failed to lookup 'spotify:track:5r43qanLhUCdBj8HN3fa6B': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
```

Got this error but I’m logged in on spotify

---

<div class="post-metadata">

**Author:** ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)\
**Post date:** [May 23, 2022, 12:09pm UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/3 "2022-05-23T12:09:56Z")

</div>

> [@Spotify login error: \<ErrorType.USER\_NEEDS\_PREMIUM: 15\>](https://discourse.mopidy.com/t/spotify-login-error-errortype-user-needs-premium-15/5459/5):
>
> Yes, unfortunately Spotify disabled libspotify today, see [Sunset of libspotify on May 16, 2022 | Spotify for Developers](https://developer.spotify.com/community/news/2022/04/12/libspotify-sunset/). There’s currently no workaround for Mopidy-Spotify. It’s possible that if we could patch the system\_information\_string being used in libspotify’s ClientResponseEncrypted that might be enough. But I’m not sure if that’s possible/realisitic to do… And I don’t time to spend trying right now. Time is probably better spent moving to something based on librespot.

---

<div class="post-metadata">

**Author:** ![mbh181](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mbh181/32/1931_2.png) [@mbh181](https://discourse.mopidy.com/u/mbh181)\
**Post date:** [May 23, 2022, 12:49pm UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/4 "2022-05-23T12:49:28Z")

</div>

Thanks for the quick reply. I hadnt realised. Is there another extension for mopidy i can switch to using the rpi… Or does this mean spotify on mopidy is dead now?

---

<div class="post-metadata">

**Author:** ![Morta](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/morta/32/1869_2.png) [@Morta](https://discourse.mopidy.com/u/Morta)\
**Post date:** [May 23, 2022, 2:14pm UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/5 "2022-05-23T14:14:52Z")

</div>

It’s mean mopidy-spotify is dead at moment!

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [November 22, 2022, 2:14am UTC](https://discourse.mopidy.com/t/spotify-token-refresh-fail/5473/6 "2022-11-22T02:14:58Z")

</div>

Closed on November 22, 2022, 2:14am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
