Mopidy setup for every new device

So, i’ve installed Mopidy and all seems to be working fine. However one small issue is whenever a new device or new browser accesses mopidy web (im using IRIS) it starts at the setup window again. Also, I notice that Spotify is also then not Authenticated.

I am using Homeassistant to access it, but the behaviour remains the same if I browse directly to the mopidy web server.

I notice a HTTP address already in use, im not sure why I am receiving this as I certainly only have one instance of Mopidy running.

Is it possible to have spotify logged in for all devices and everyone accessing mopidy?

Thanks

INFO     2023-02-03 12:24:13,551 [8945:MainThread] mopidy.__main__
  Starting Mopidy 3.3.0
DEBUG    2023-02-03 12:24:13,553 [8945:MainThread] mopidy.ext
  Loading entry point: iris = mopidy_iris:Extension
DEBUG    2023-02-03 12:24:13,554 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-Iris 3.66.0
DEBUG    2023-02-03 12:24:13,555 [8945:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2023-02-03 12:24:13,556 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 3.3.0
DEBUG    2023-02-03 12:24:13,556 [8945:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2023-02-03 12:24:13,556 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 3.3.0
DEBUG    2023-02-03 12:24:13,556 [8945:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 3.3.0
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 3.3.0
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 3.3.0
DEBUG    2023-02-03 12:24:13,557 [8945:MainThread] mopidy.ext
  Loading entry point: spotify = mopidy_spotify:Extension
DEBUG    2023-02-03 12:24:13,559 [8945:MainThread] mopidy.ext
  Loaded extension: Mopidy-Spotify 4.1.1
DEBUG    2023-02-03 12:24:13,559 [8945:MainThread] mopidy.ext
  Discovered extensions: iris, file, http, m3u, softwaremixer, stream, spotify
DEBUG    2023-02-03 12:24:13,560 [8945:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyri                              ng will not be available. (dbus not installed)
INFO     2023-02-03 12:24:13,560 [8945:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2023-02-03 12:24:13,561 [8945:MainThread] mopidy.config
  Loading config from file:///etc/xdg/mopidy/mopidy.conf failed; it does not exi                              st
INFO     2023-02-03 12:24:13,561 [8945:MainThread] mopidy.config
  Loading config from file:///home/dean/.config/mopidy/mopidy.conf
INFO     2023-02-03 12:24:13,562 [8945:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2023-02-03 12:24:13,566 [8945:MainThread] mopidy.ext
  Validating extension: iris
DEBUG    2023-02-03 12:24:13,587 [8945:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2023-02-03 12:24:13,587 [8945:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2023-02-03 12:24:13,627 [8945:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2023-02-03 12:24:13,627 [8945:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2023-02-03 12:24:13,627 [8945:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2023-02-03 12:24:13,628 [8945:MainThread] mopidy.ext
  Validating extension: spotify
INFO     2023-02-03 12:24:13,632 [8945:MainThread] mopidy.__main__
  Enabled extensions: iris, m3u, stream, http, softwaremixer, file
INFO     2023-02-03 12:24:13,632 [8945:MainThread] mopidy.__main__
  Disabled extensions: spotify
WARNING  2023-02-03 12:24:13,632 [8945:MainThread] mopidy.__main__
  Found spotify configuration errors. The extension has been automatically disab                              led:
WARNING  2023-02-03 12:24:13,633 [8945:MainThread] mopidy.__main__
    spotify/username must be set.
WARNING  2023-02-03 12:24:13,633 [8945:MainThread] mopidy.__main__
    spotify/password must be set.
WARNING  2023-02-03 12:24:13,633 [8945:MainThread] mopidy.__main__
    spotify/client_id must be set.
WARNING  2023-02-03 12:24:13,633 [8945:MainThread] mopidy.__main__
    spotify/client_secret must be set.
WARNING  2023-02-03 12:24:13,633 [8945:MainThread] mopidy.__main__
  Please fix the extension configuration errors or disable the extensions to sil                              ence these messages.
DEBUG    2023-02-03 12:24:13,683 [8945:MainThread] mopidy.commands
  Available Mopidy mixers: SoftwareMixer
INFO     2023-02-03 12:24:13,683 [8945:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
DEBUG    2023-02-03 12:24:13,683 [8945:MainThread] pykka
  Registered SoftwareMixer (urn:uuid:0445a9b9-ca2a-49b9-8928-10f360538453)
DEBUG    2023-02-03 12:24:13,683 [8945:MainThread] pykka
  Starting SoftwareMixer (urn:uuid:0445a9b9-ca2a-49b9-8928-10f360538453)
DEBUG    2023-02-03 12:24:13,684 [8945:MainThread] mopidy.commands
  Mixer volume left unchanged
INFO     2023-02-03 12:24:13,684 [8945:MainThread] mopidy.commands
  Starting Mopidy audio
DEBUG    2023-02-03 12:24:13,685 [8945:MainThread] pykka
  Registered Audio (urn:uuid:c56571a0-5879-4aea-8985-a373b63b4ece)
DEBUG    2023-02-03 12:24:13,685 [8945:MainThread] pykka
  Starting Audio (urn:uuid:c56571a0-5879-4aea-8985-a373b63b4ece)
INFO     2023-02-03 12:24:13,686 [8945:MainThread] mopidy.commands
  Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
DEBUG    2023-02-03 12:24:13,686 [8945:MainThread] mopidy.file.library
  Failed expanding path ($XDG_MUSIC_DIR) from file/media_dirs config value.
DEBUG    2023-02-03 12:24:13,686 [8945:MainThread] pykka
  Registered FileBackend (urn:uuid:3c4721e5-b50e-44d5-adce-7f891f0a223c)
DEBUG    2023-02-03 12:24:13,686 [8945:MainThread] pykka
  Starting FileBackend (urn:uuid:3c4721e5-b50e-44d5-adce-7f891f0a223c)
TRACE    2023-02-03 12:24:13,689 [8945:MainThread] mopidy.internal.timer
  FileBackend took 2ms
INFO     2023-02-03 12:24:13,703 [8945:MainThread] mopidy.internal.path
  Creating dir file:///home/dean/.local/share/mopidy/m3u
DEBUG    2023-02-03 12:24:13,703 [8945:MainThread] pykka
  Registered M3UBackend (urn:uuid:15db1eef-7d5f-4682-924f-dedb70852d3d)
DEBUG    2023-02-03 12:24:13,703 [8945:MainThread] pykka
  Starting M3UBackend (urn:uuid:15db1eef-7d5f-4682-924f-dedb70852d3d)
INFO     2023-02-03 12:24:13,704 [8945:Audio-2] mopidy.audio.actor
  Audio output set to "autoaudiosink"
TRACE    2023-02-03 12:24:13,704 [8945:MainThread] mopidy.internal.timer
  M3UBackend took 15ms
DEBUG    2023-02-03 12:24:13,707 [8945:MainThread] pykka
  Registered StreamBackend (urn:uuid:c9ace4d8-a3fc-4ce6-a7ab-d2f8e0701abe)
DEBUG    2023-02-03 12:24:13,708 [8945:MainThread] pykka
  Starting StreamBackend (urn:uuid:c9ace4d8-a3fc-4ce6-a7ab-d2f8e0701abe)
TRACE    2023-02-03 12:24:13,709 [8945:MainThread] mopidy.internal.timer
  StreamBackend took 4ms
INFO     2023-02-03 12:24:13,709 [8945:MainThread] mopidy.commands
  Starting Mopidy core
DEBUG    2023-02-03 12:24:13,711 [8945:MainThread] pykka
  Registered Core (urn:uuid:8ec14881-c477-41e6-aaf1-e6fc29ecfdf6)
DEBUG    2023-02-03 12:24:13,711 [8945:MainThread] pykka
  Starting Core (urn:uuid:8ec14881-c477-41e6-aaf1-e6fc29ecfdf6)
INFO     2023-02-03 12:24:13,713 [8945:MainThread] mopidy.commands
  Starting Mopidy frontends: IrisFrontend, HttpFrontend
DEBUG    2023-02-03 12:24:13,714 [8945:MainThread] pykka
  Registered IrisFrontend (urn:uuid:84848736-75ff-4b13-a17b-06351d7eda6c)
DEBUG    2023-02-03 12:24:13,714 [8945:MainThread] pykka
  Starting IrisFrontend (urn:uuid:84848736-75ff-4b13-a17b-06351d7eda6c)
INFO     2023-02-03 12:24:13,714 [8945:IrisFrontend-7] mopidy_iris.core
  Starting Iris 3.66.0
TRACE    2023-02-03 12:24:13,715 [8945:MainThread] mopidy.internal.timer
  IrisFrontend took 0ms
DEBUG    2023-02-03 12:24:13,715 [8945:MainThread] mopidy.http.actor
  Starting HTTP server
INFO     2023-02-03 12:24:13,716 [8945:IrisFrontend-7] mopidy.internal.path
  Creating dir file:///home/dean/.local/share/mopidy/iris
ERROR    2023-02-03 12:24:13,716 [8945:MainThread] mopidy.commands
  Frontend (HttpFrontend) initialization error: HTTP server startup failed: [Err                              no 98] Address already in use
INFO     2023-02-03 12:24:13,716 [8945:MainThread] mopidy.commands
  Starting GLib mainloop
^C

more from the logs after trying to load a song from spotify.

I get the error failed to load some tracks.

-- Journal begins at Fri 2023-01-27 23:51:13 PST, ends at Fri 2023-02-03 13:06:25 PST. --
Feb 03 02:39:42 ha mopidy[456]: INFO     [MainThread] mopidy.commands Stopping Mopidy backends
Feb 03 02:39:42 ha mopidy[456]: INFO     [MainThread] mopidy.commands Stopping Mopidy audio
Feb 03 02:39:42 ha mopidy[456]: INFO     [MainThread] mopidy.commands Stopping Mopidy mixer
Feb 03 02:39:42 ha systemd[1]: mopidy.service: Succeeded.
Feb 03 02:39:42 ha systemd[1]: Stopped Mopidy music server.
-- Boot 9646557eea1f473fa125b31b3665da90 --
Feb 03 02:40:07 ha systemd[1]: Starting Mopidy music server...
Feb 03 02:40:07 ha systemd[1]: Started Mopidy music server.
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.__main__ Starting Mopidy 3.3.0
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.config Loading config from builtin defaults
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.config Loading config from command line options
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.__main__ Enabled extensions: http, spotify, m3u, file, stream, softwaremixer, iris
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.__main__ Disabled extensions: none
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Feb 03 02:40:08 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, SpotifyBackend
Feb 03 02:40:08 ha mopidy[482]: INFO     [Audio-2] mopidy.audio.actor Audio output set to "autoaudiosink"
Feb 03 02:40:09 ha mopidy[482]: ERROR    [SpotifyEventLoop] spotify.session Spotify login error: <ErrorType.USER_NEEDS_PREMIUM: 15>
Feb 03 02:40:09 ha mopidy[482]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Authorization failed, not attempting Spotify API request. Please get new credentials from https://www.mopidy.com/authenticate and/or restart Mopidy to resolve this problem.
Feb 03 02:40:09 ha mopidy[482]: ERROR    [SpotifyBackend-6] mopidy_spotify.web OAuth token refresh failed: invalid_client Client not known.
Feb 03 02:40:09 ha mopidy[482]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Failed to load Spotify user profile
Feb 03 02:40:09 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Feb 03 02:40:09 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend
Feb 03 02:40:09 ha mopidy[482]: INFO     [IrisFrontend-10] mopidy_iris.core Starting Iris 3.66.0
Feb 03 02:40:09 ha mopidy[482]: INFO     [HttpFrontend-12] mopidy.http.actor HTTP server running at [::]:6680
Feb 03 02:40:09 ha mopidy[482]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands GLib mainloop got SIGTERM. Exiting...
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands Stopping Mopidy frontends
Feb 03 02:41:49 ha mopidy[482]: INFO     [IrisFrontend-10] mopidy_iris.core Stopping Iris
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands Stopping Mopidy core
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands Stopping Mopidy backends
Feb 03 02:41:49 ha systemd[1]: Stopping Mopidy music server...
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands Stopping Mopidy audio
Feb 03 02:41:49 ha mopidy[482]: INFO     [MainThread] mopidy.commands Stopping Mopidy mixer
Feb 03 02:41:49 ha systemd[1]: mopidy.service: Succeeded.
Feb 03 02:41:49 ha systemd[1]: Stopped Mopidy music server.
-- Boot 0eace7f27c104f1783889dfb8f52001f --
Feb 03 02:42:15 ha systemd[1]: Starting Mopidy music server...
Feb 03 02:42:15 ha systemd[1]: Started Mopidy music server.
Feb 03 02:42:15 ha mopidy[458]: INFO     [MainThread] mopidy.__main__ Starting Mopidy 3.3.0
Feb 03 02:42:15 ha mopidy[458]: INFO     [MainThread] mopidy.config Loading config from builtin defaults
Feb 03 02:42:15 ha mopidy[458]: INFO     [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Feb 03 02:42:15 ha mopidy[458]: INFO     [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Feb 03 02:42:15 ha mopidy[458]: INFO     [MainThread] mopidy.config Loading config from command line options
Feb 03 02:42:16 ha mopidy[458]: INFO     [MainThread] mopidy.__main__ Enabled extensions: stream, iris, spotify, m3u, softwaremixer, http, file
Feb 03 02:42:16 ha mopidy[458]: INFO     [MainThread] mopidy.__main__ Disabled extensions: none
Feb 03 02:42:16 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Feb 03 02:42:16 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Feb 03 02:42:16 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, SpotifyBackend
Feb 03 02:42:16 ha mopidy[458]: INFO     [Audio-2] mopidy.audio.actor Audio output set to "autoaudiosink"
Feb 03 02:42:16 ha mopidy[458]: ERROR    [SpotifyEventLoop] spotify.session Spotify login error: <ErrorType.USER_NEEDS_PREMIUM: 15>
Feb 03 02:42:17 ha mopidy[458]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Authorization failed, not attempting Spotify API request. Please get new credentials from https://www.mopidy.com/authenticate and/or restart Mopidy to resolve this problem.
Feb 03 02:42:17 ha mopidy[458]: ERROR    [SpotifyBackend-6] mopidy_spotify.web OAuth token refresh failed: invalid_client Client not known.
Feb 03 02:42:17 ha mopidy[458]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Failed to load Spotify user profile
Feb 03 02:42:17 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Feb 03 02:42:17 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend
Feb 03 02:42:17 ha mopidy[458]: INFO     [IrisFrontend-10] mopidy_iris.core Starting Iris 3.66.0
Feb 03 02:42:17 ha mopidy[458]: INFO     [HttpFrontend-12] mopidy.http.actor HTTP server running at [::]:6680
Feb 03 02:42:17 ha mopidy[458]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
Feb 03 02:43:25 ha mopidy[458]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:43:32 ha mopidy[458]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:43:47 ha mopidy[458]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:43:50 ha mopidy[458]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:43:55 ha mopidy[458]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands GLib mainloop got SIGTERM. Exiting...
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands Stopping Mopidy frontends
Feb 03 02:45:47 ha mopidy[458]: INFO     [IrisFrontend-10] mopidy_iris.core Stopping Iris
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands Stopping Mopidy core
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands Stopping Mopidy backends
Feb 03 02:45:47 ha systemd[1]: Stopping Mopidy music server...
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands Stopping Mopidy audio
Feb 03 02:45:47 ha mopidy[458]: INFO     [MainThread] mopidy.commands Stopping Mopidy mixer
Feb 03 02:45:47 ha systemd[1]: mopidy.service: Succeeded.
Feb 03 02:45:47 ha systemd[1]: Stopped Mopidy music server.
-- Boot 9b4881239049496583d240fd7b56762a --
Feb 03 02:46:13 ha systemd[1]: Starting Mopidy music server...
Feb 03 02:46:13 ha systemd[1]: Started Mopidy music server.
Feb 03 02:46:13 ha mopidy[470]: INFO     [MainThread] mopidy.__main__ Starting Mopidy 3.3.0
Feb 03 02:46:13 ha mopidy[470]: INFO     [MainThread] mopidy.config Loading config from builtin defaults
Feb 03 02:46:13 ha mopidy[470]: INFO     [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Feb 03 02:46:13 ha mopidy[470]: INFO     [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Feb 03 02:46:13 ha mopidy[470]: INFO     [MainThread] mopidy.config Loading config from command line options
Feb 03 02:46:14 ha mopidy[470]: INFO     [MainThread] mopidy.__main__ Enabled extensions: http, stream, spotify, softwaremixer, m3u, file, iris
Feb 03 02:46:14 ha mopidy[470]: INFO     [MainThread] mopidy.__main__ Disabled extensions: none
Feb 03 02:46:14 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Feb 03 02:46:14 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting Mopidy audio
Feb 03 02:46:14 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, SpotifyBackend
Feb 03 02:46:14 ha mopidy[470]: INFO     [Audio-2] mopidy.audio.actor Audio output set to "autoaudiosink"
Feb 03 02:46:15 ha mopidy[470]: ERROR    [SpotifyEventLoop] spotify.session Spotify login error: <ErrorType.USER_NEEDS_PREMIUM: 15>
Feb 03 02:46:16 ha mopidy[470]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Authorization failed, not attempting Spotify API request. Please get new credentials from https://www.mopidy.com/authenticate and/or restart Mopidy to resolve this problem.
Feb 03 02:46:16 ha mopidy[470]: ERROR    [SpotifyBackend-6] mopidy_spotify.web OAuth token refresh failed: invalid_client Client not known.
Feb 03 02:46:16 ha mopidy[470]: ERROR    [SpotifyBackend-6] mopidy_spotify.web Failed to load Spotify user profile
Feb 03 02:46:16 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting Mopidy core
Feb 03 02:46:16 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, HttpFrontend
Feb 03 02:46:16 ha mopidy[470]: INFO     [IrisFrontend-10] mopidy_iris.core Starting Iris 3.66.0
Feb 03 02:46:16 ha mopidy[470]: INFO     [HttpFrontend-12] mopidy.http.actor HTTP server running at [::]:6680
Feb 03 02:46:16 ha mopidy[470]: INFO     [MainThread] mopidy.commands Starting GLib mainloop
Feb 03 02:48:46 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:50:41 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:58:32 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:58:45 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 02:59:29 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3YuaBvuZqcwN3CEAyyoaei': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 02:59:36 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3YuaBvuZqcwN3CEAyyoaei': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 03:03:38 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 03:03:38 ha mopidy[470]: Traceback (most recent call last):
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 03:03:38 ha mopidy[470]:     yield
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 03:03:38 ha mopidy[470]:     if future.get() is None:
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 03:03:38 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 03:03:38 ha mopidy[470]:     raise value
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 03:03:38 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 03:03:38 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 03:03:38 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 03:03:38 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 03:03:38 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:03:38 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 45, in _parse_uri
Feb 03 03:03:38 ha mopidy[470]:     uri_type, uri_id = parsed_uri.path.split(":")[:2]
Feb 03 03:03:38 ha mopidy[470]: ValueError: not enough values to unpack (expected 2, got 1)
Feb 03 03:03:42 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:directory': Could not parse 'spotify:directory' as a Spotify URI
Feb 03 03:03:42 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 03:03:42 ha mopidy[470]: Traceback (most recent call last):
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 03:03:42 ha mopidy[470]:     yield
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 03:03:42 ha mopidy[470]:     if future.get() is None:
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 03:03:42 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 03:03:42 ha mopidy[470]:     raise value
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 03:03:42 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 03:03:42 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 03:03:42 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 03:03:42 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 03:03:42 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:03:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 45, in _parse_uri
Feb 03 03:03:42 ha mopidy[470]:     uri_type, uri_id = parsed_uri.path.split(":")[:2]
Feb 03 03:03:42 ha mopidy[470]: ValueError: not enough values to unpack (expected 2, got 1)
Feb 03 03:03:57 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3YuaBvuZqcwN3CEAyyoaei': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 03:04:14 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3zwmW1gM4E8FlHXV5nE16u': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 03:04:20 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3zwmW1gM4E8FlHXV5nE16u': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 03:04:42 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 03:04:42 ha mopidy[470]: Traceback (most recent call last):
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 03:04:42 ha mopidy[470]:     yield
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 03:04:42 ha mopidy[470]:     if future.get() is None:
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 03:04:42 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 03:04:42 ha mopidy[470]:     raise value
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 03:04:42 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 03:04:42 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 03:04:42 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 03:04:42 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 03:04:42 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 03:04:42 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 45, in _parse_uri
Feb 03 03:04:42 ha mopidy[470]:     uri_type, uri_id = parsed_uri.path.split(":")[:2]
Feb 03 03:04:42 ha mopidy[470]: ValueError: not enough values to unpack (expected 2, got 1)
Feb 03 12:50:16 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 12:50:24 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 12:50:27 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 12:50:30 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 12:51:02 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 12:51:02 ha mopidy[470]: Traceback (most recent call last):
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 12:51:02 ha mopidy[470]:     yield
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 12:51:02 ha mopidy[470]:     if future.get() is None:
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 12:51:02 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 12:51:02 ha mopidy[470]:     raise value
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 12:51:02 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 12:51:02 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 12:51:02 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 12:51:02 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 12:51:02 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:02 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 45, in _parse_uri
Feb 03 12:51:02 ha mopidy[470]:     uri_type, uri_id = parsed_uri.path.split(":")[:2]
Feb 03 12:51:02 ha mopidy[470]: ValueError: not enough values to unpack (expected 2, got 1)
Feb 03 12:51:03 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:directory': Could not parse 'spotify:directory' as a Spotify URI
Feb 03 12:51:04 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 12:51:04 ha mopidy[470]: Traceback (most recent call last):
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 12:51:04 ha mopidy[470]:     yield
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 12:51:04 ha mopidy[470]:     if future.get() is None:
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 12:51:04 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 12:51:04 ha mopidy[470]:     raise value
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 12:51:04 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 12:51:04 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 12:51:04 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 12:51:04 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 12:51:04 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:04 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 45, in _parse_uri
Feb 03 12:51:04 ha mopidy[470]:     uri_type, uri_id = parsed_uri.path.split(":")[:2]
Feb 03 12:51:04 ha mopidy[470]: ValueError: not enough values to unpack (expected 2, got 1)
Feb 03 12:51:06 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:playlists': Could not parse 'spotify:playlists' as a Spotify URI
Feb 03 12:51:06 ha mopidy[470]: ERROR    [Core-9] mopidy.core.library SpotifyBackend backend caused an exception.
Feb 03 12:51:06 ha mopidy[470]: Traceback (most recent call last):
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 17, in _backend_error_handling
Feb 03 12:51:06 ha mopidy[470]:     yield
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy/core/library.py", line 194, in get_images
Feb 03 12:51:06 ha mopidy[470]:     if future.get() is None:
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_threading.py", line 45, in get
Feb 03 12:51:06 ha mopidy[470]:     _compat.reraise(*self._data['exc_info'])
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_compat/__init__.py", line 29, in reraise
Feb 03 12:51:06 ha mopidy[470]:     raise value
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 193, in _actor_loop
Feb 03 12:51:06 ha mopidy[470]:     response = self._handle_receive(envelope.message)
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/pykka/_actor.py", line 299, in _handle_receive
Feb 03 12:51:06 ha mopidy[470]:     return callee(*message.args, **message.kwargs)
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/library.py", line 35, in get_images
Feb 03 12:51:06 ha mopidy[470]:     return images.get_images(self._backend._web_client, uris)
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in get_images
Feb 03 12:51:06 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 23, in <genexpr>
Feb 03 12:51:06 ha mopidy[470]:     uris = sorted((_parse_uri(u) for u in uris), key=uri_type_getter)
Feb 03 12:51:06 ha mopidy[470]:   File "/usr/lib/python3/dist-packages/mopidy_spotify/images.py", line 59, in _parse_uri
Feb 03 12:51:06 ha mopidy[470]:     raise ValueError(f"Could not parse {repr(uri)} as a Spotify URI")
Feb 03 12:51:06 ha mopidy[470]: ValueError: Could not parse 'spotify:playlists:featured' as a Spotify URI
Feb 03 12:51:07 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:playlists:featured': Could not parse 'spotify:playlists:featured' as a Spotify URI
Feb 03 12:51:11 ha mopidy[470]: ERROR    [HttpServer] mopidy_iris.handlers HTTP 401: UNAUTHORIZED
Feb 03 12:51:31 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3YuaBvuZqcwN3CEAyyoaei': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>
Feb 03 12:51:37 ha mopidy[470]: INFO     [SpotifyBackend-6] mopidy_spotify.lookup Failed to lookup 'spotify:track:3YuaBvuZqcwN3CEAyyoaei': Session must be logged in and online to load objects: <ConnectionState.LOGGED_OUT: 0>

Oh also I have premium

Spotify has been broken since last summer. Hopefully there will be a working version available soon.

See this issue if you want all the details Replace libspotify / Streaming does not work - "Spotify login error: <ErrorType.USER_NEEDS_PREMIUM: 15>" · Issue #110 · mopidy/mopidy-spotify · GitHub

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