mopidy / mopidy-spotify

Mopidy extension for playing music from Spotify
https://mopidy.com/ext/spotify/
Apache License 2.0
936 stars 109 forks source link

spotify/username must be set #310

Closed Waldehead closed 3 years ago

Waldehead commented 3 years ago

Hey, since today this plugin stopped working. Yesterday it worked without a flaw. I didn't change anything.

I'm running Mopidy on a Raspberry PI4 with a Dac+Pro Hifiberry with an up to date Raspberry PI OS Lite.

My log says

NFO     2021-06-23 23:10:48,138 [7463:MainThread] mopidy.__main__
  Starting Mopidy 3.1.1
DEBUG    2021-06-23 23:10:48,145 [7463:MainThread] mopidy.ext
  Loading entry point: mobile = mopidy_mobile:Extension
DEBUG    2021-06-23 23:10:48,147 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-Mobile 1.10.0
DEBUG    2021-06-23 23:10:48,147 [7463:MainThread] mopidy.ext
  Loading entry point: iris = mopidy_iris:Extension
DEBUG    2021-06-23 23:10:48,148 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-Iris 3.58.0
DEBUG    2021-06-23 23:10:48,151 [7463:MainThread] mopidy.ext
  Loading entry point: file = mopidy.file:Extension
DEBUG    2021-06-23 23:10:48,152 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-File 3.1.1
DEBUG    2021-06-23 23:10:48,152 [7463:MainThread] mopidy.ext
  Loading entry point: http = mopidy.http:Extension
DEBUG    2021-06-23 23:10:48,153 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-HTTP 3.1.1
DEBUG    2021-06-23 23:10:48,153 [7463:MainThread] mopidy.ext
  Loading entry point: m3u = mopidy.m3u:Extension
DEBUG    2021-06-23 23:10:48,154 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-M3U 3.1.1
DEBUG    2021-06-23 23:10:48,154 [7463:MainThread] mopidy.ext
  Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG    2021-06-23 23:10:48,155 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-SoftwareMixer 3.1.1
DEBUG    2021-06-23 23:10:48,155 [7463:MainThread] mopidy.ext
  Loading entry point: stream = mopidy.stream:Extension
DEBUG    2021-06-23 23:10:48,156 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-Stream 3.1.1
DEBUG    2021-06-23 23:10:48,157 [7463:MainThread] mopidy.ext
  Loading entry point: spotify = mopidy_spotify:Extension
DEBUG    2021-06-23 23:10:48,159 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-Spotify 4.1.0
DEBUG    2021-06-23 23:10:48,160 [7463:MainThread] mopidy.ext
  Loading entry point: mpd = mopidy_mpd:Extension
DEBUG    2021-06-23 23:10:48,162 [7463:MainThread] mopidy.ext
  Loaded extension: Mopidy-MPD 3.1.0
DEBUG    2021-06-23 23:10:48,164 [7463:MainThread] mopidy.ext
  Discovered extensions: mobile, iris, file, http, m3u, softwaremixer, stream, spotify, mpd
DEBUG    2021-06-23 23:10:48,169 [7463:MainThread] mopidy.config.keyring
  Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.secrets service not running)
INFO     2021-06-23 23:10:48,169 [7463:MainThread] mopidy.config
  Loading config from builtin defaults
DEBUG    2021-06-23 23:10:48,173 [7463:MainThread] mopidy.config
  Loading config from file:///etc/xdg/mopidy/mopidy.conf failed; it does not exist
INFO     2021-06-23 23:10:48,173 [7463:MainThread] mopidy.config
  Loading config from file:///home/rocco/.config/mopidy/mopidy.conf
INFO     2021-06-23 23:10:48,175 [7463:MainThread] mopidy.config
  Loading config from command line options
DEBUG    2021-06-23 23:10:48,186 [7463:MainThread] mopidy.ext
  Validating extension: mobile
DEBUG    2021-06-23 23:10:48,194 [7463:MainThread] mopidy.ext
  Validating extension: iris
DEBUG    2021-06-23 23:10:48,276 [7463:MainThread] mopidy.ext
  Validating extension: file
DEBUG    2021-06-23 23:10:48,276 [7463:MainThread] mopidy.ext
  Validating extension: http
DEBUG    2021-06-23 23:10:48,384 [7463:MainThread] mopidy.ext
  Validating extension: m3u
DEBUG    2021-06-23 23:10:48,384 [7463:MainThread] mopidy.ext
  Validating extension: softwaremixer
DEBUG    2021-06-23 23:10:48,384 [7463:MainThread] mopidy.ext
  Validating extension: stream
DEBUG    2021-06-23 23:10:48,384 [7463:MainThread] mopidy.ext
  Validating extension: spotify
DEBUG    2021-06-23 23:10:48,407 [7463:MainThread] mopidy.ext
  Validating extension: mpd
INFO     2021-06-23 23:10:48,425 [7463:MainThread] mopidy.__main__
  Enabled extensions: mpd, mobile, m3u, file, softwaremixer, http, stream, iris
INFO     2021-06-23 23:10:48,425 [7463:MainThread] mopidy.__main__
  Disabled extensions: spotify
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
  Found spotify configuration errors. The extension has been automatically disabled:
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
    spotify/username must be set.
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
    spotify/password must be set.
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
    spotify/client_id must be set.
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
    spotify/client_secret must be set.
WARNING  2021-06-23 23:10:48,426 [7463:MainThread] mopidy.__main__
  Please fix the extension configuration errors or disable the extensions to silence these messages.
DEBUG    2021-06-23 23:10:48,593 [7463:MainThread] mopidy.commands
  Available Mopidy mixers: SoftwareMixer
INFO     2021-06-23 23:10:48,594 [7463:MainThread] mopidy.commands
  Starting Mopidy mixer: SoftwareMixer
DEBUG    2021-06-23 23:10:48,594 [7463:MainThread] pykka
  Registered SoftwareMixer (urn:uuid:81ebe0ce-f6b4-443d-91d4-32f6e91fc50f)
DEBUG    2021-06-23 23:10:48,594 [7463:MainThread] pykka
  Starting SoftwareMixer (urn:uuid:81ebe0ce-f6b4-443d-91d4-32f6e91fc50f)
DEBUG    2021-06-23 23:10:48,596 [7463:MainThread] mopidy.commands
  Mixer volume left unchanged
INFO     2021-06-23 23:10:48,597 [7463:MainThread] mopidy.commands
  Starting Mopidy audio
DEBUG    2021-06-23 23:10:48,597 [7463:MainThread] pykka
  Registered Audio (urn:uuid:e023c0a4-b3a4-4c84-9189-4ab02f408062)
DEBUG    2021-06-23 23:10:48,597 [7463:MainThread] pykka
  Starting Audio (urn:uuid:e023c0a4-b3a4-4c84-9189-4ab02f408062)
INFO     2021-06-23 23:10:48,600 [7463:MainThread] mopidy.commands
  Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend
DEBUG    2021-06-23 23:10:48,601 [7463:MainThread] mopidy.file.library
  Failed expanding path ($XDG_MUSIC_DIR) from file/media_dirs config value.
DEBUG    2021-06-23 23:10:48,604 [7463:MainThread] pykka
  Registered FileBackend (urn:uuid:95de4357-b6ea-47fa-bef6-64f33317cbee)
DEBUG    2021-06-23 23:10:48,605 [7463:MainThread] pykka
  Starting FileBackend (urn:uuid:95de4357-b6ea-47fa-bef6-64f33317cbee)
TRACE    2021-06-23 23:10:48,611 [7463:MainThread] mopidy.internal.timer
  FileBackend took 10ms
DEBUG    2021-06-23 23:10:48,613 [7463:MainThread] pykka
  Registered M3UBackend (urn:uuid:b942ad73-68ab-4c2c-a381-0b72b3cc46bb)
DEBUG    2021-06-23 23:10:48,613 [7463:MainThread] pykka
  Starting M3UBackend (urn:uuid:b942ad73-68ab-4c2c-a381-0b72b3cc46bb)
TRACE    2021-06-23 23:10:48,616 [7463:MainThread] mopidy.internal.timer
  M3UBackend took 3ms
INFO     2021-06-23 23:10:48,620 [7463:Audio-2] mopidy.audio.actor
  Audio output set to "autoaudiosink"
DEBUG    2021-06-23 23:10:48,622 [7463:MainThread] pykka
  Registered StreamBackend (urn:uuid:4e98acb8-92d1-439f-82ca-306ca1d457a1)
DEBUG    2021-06-23 23:10:48,622 [7463:MainThread] pykka
  Starting StreamBackend (urn:uuid:4e98acb8-92d1-439f-82ca-306ca1d457a1)
TRACE    2021-06-23 23:10:48,630 [7463:MainThread] mopidy.internal.timer
  StreamBackend took 13ms
INFO     2021-06-23 23:10:48,635 [7463:MainThread] mopidy.commands
  Starting Mopidy core
DEBUG    2021-06-23 23:10:48,638 [7463:MainThread] pykka
  Registered Core (urn:uuid:f3d12ede-6c18-4da5-975b-0dba7e9f80c8)
DEBUG    2021-06-23 23:10:48,639 [7463:MainThread] pykka
  Starting Core (urn:uuid:f3d12ede-6c18-4da5-975b-0dba7e9f80c8)
INFO     2021-06-23 23:10:48,650 [7463:MainThread] mopidy.commands
  Starting Mopidy frontends: IrisFrontend, HttpFrontend, MpdFrontend
DEBUG    2021-06-23 23:10:48,650 [7463:MainThread] pykka
  Registered IrisFrontend (urn:uuid:c59a5741-a9d5-4705-a0a2-79458c83bf90)
DEBUG    2021-06-23 23:10:48,650 [7463:MainThread] pykka
  Starting IrisFrontend (urn:uuid:c59a5741-a9d5-4705-a0a2-79458c83bf90)
INFO     2021-06-23 23:10:48,651 [7463:IrisFrontend-7] mopidy_iris.core
  Starting Iris 3.58.0
TRACE    2021-06-23 23:10:48,651 [7463:MainThread] mopidy.internal.timer
  IrisFrontend took 1ms
DEBUG    2021-06-23 23:10:48,653 [7463:MainThread] mopidy.http.actor
  Starting HTTP server
DEBUG    2021-06-23 23:10:48,654 [7463:MainThread] pykka
  Registered HttpFrontend (urn:uuid:1d20d6e6-09dd-467c-8e14-789387680162)
DEBUG    2021-06-23 23:10:48,654 [7463:MainThread] pykka
  Starting HttpFrontend (urn:uuid:1d20d6e6-09dd-467c-8e14-789387680162)
INFO     2021-06-23 23:10:48,655 [7463:HttpFrontend-9] mopidy.http.actor
  HTTP server running at [::ffff:127.0.0.1]:6680
TRACE    2021-06-23 23:10:48,656 [7463:MainThread] mopidy.internal.timer
  HttpFrontend took 3ms
DEBUG    2021-06-23 23:10:48,656 [7463:HttpServer] asyncio
  Using selector: EpollSelector
INFO     2021-06-23 23:10:48,658 [7463:MainThread] mopidy_mpd.actor
  MPD server running at [::ffff:127.0.0.1]:6600
DEBUG    2021-06-23 23:10:48,658 [7463:MainThread] pykka
  Registered MpdFrontend (urn:uuid:7556a649-2165-4938-aca2-a752c07f7ad0)
DEBUG    2021-06-23 23:10:48,658 [7463:MainThread] pykka
  Starting MpdFrontend (urn:uuid:7556a649-2165-4938-aca2-a752c07f7ad0)
TRACE    2021-06-23 23:10:48,659 [7463:MainThread] mopidy.internal.timer
  MpdFrontend took 3ms
INFO     2021-06-23 23:10:48,660 [7463:MainThread] mopidy.commands
  Starting GLib mainloop
DEBUG    2021-06-23 23:10:48,665 [7463:HttpServer] mopidy.http.actor
  Loaded HTTP extension: mobile
DEBUG    2021-06-23 23:10:48,667 [7463:HttpServer] mopidy.http.actor
  Loaded HTTP extension: iris
DEBUG    2021-06-23 23:10:48,668 [7463:HttpServer] mopidy.http.actor
  Loaded HTTP extension: mopidy
DEBUG    2021-06-23 23:10:48,672 [7463:HttpServer] mopidy.http.actor
  Default webclient is mopidy
DEBUG    2021-06-23 23:10:48,673 [7463:HttpServer] mopidy.http.actor
  HTTP routes from extensions: 
    '/mobile': <class 'mopidy.http.handlers.AddSlashHandler'>
    '/mobile/': <class 'tornado.web.RedirectHandler'>
    '/mobile/(.*\\.html)': <class 'mopidy_mobile.web.IndexHandler'>
    '/mobile/(.*\\.json)': <class 'mopidy_mobile.web.IndexHandler'>
    '/mobile/(.*)': <class 'mopidy_mobile.web.StaticHandler'>
    '/iris': <class 'mopidy.http.handlers.AddSlashHandler'>
    '/iris/http/([^/]*)': <class 'mopidy_iris.handlers.HttpHandler'>
    '/iris/ws/?': <class 'mopidy_iris.handlers.WebsocketHandler'>
    '/iris/assets/(.*)': <class 'tornado.web.StaticFileHandler'>
    '/iris/((.*)(?:css|js|json|map)$)': <class 'tornado.web.StaticFileHandler'>
    '/iris/(.*)': <class 'mopidy_iris.handlers.ReactRouterHandler'>
    '/mopidy': <class 'mopidy.http.handlers.AddSlashHandler'>
    '/mopidy/ws/?': <class 'mopidy.http.handlers.WebSocketHandler'>
    '/mopidy/rpc': <class 'mopidy.http.handlers.JsonRpcHandler'>
    '/mopidy/(.+)': <class 'mopidy.http.handlers.StaticFileHandler'>
    '/mopidy/': <class 'mopidy.http.handlers.ClientListHandler'>
    '/': <class 'tornado.web.RedirectHandler'>
DEBUG    2021-06-23 23:10:48,684 [7463:HttpFrontend-9] mopidy.zeroconf
  Zeroconf service 'Mopidy HTTP server on brazzers' (_http._tcp at []:6680): Published
DEBUG    2021-06-23 23:10:48,685 [7463:MpdFrontend-10] mopidy.zeroconf
  Zeroconf service 'Mopidy MPD server on brazzers' (_mpd._tcp at []:6600): Published
DEBUG    2021-06-23 23:10:48,689 [7463:HttpFrontend-9] mopidy.zeroconf
  Zeroconf service 'Mopidy HTTP server on brazzers' (_mopidy-http._tcp at []:6680): Published

As you can see, it says it needs a username, but they are in my config file:

Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
verbosity = 0
format = %(levelname)-8s [%(threadName)s] %(name)s %(message)s
color = false
config_file =

[audio]
mixer = software
mixer_volume = 
output = autoaudiosink
buffer_time = 

[proxy]
scheme = 
hostname = 
port = 
username = 
password = 

[mobile]
enabled = true
title = Mopidy Mobile on $hostname
ws_url = 

[iris]
enabled = true
country = de
locale = de_DE
spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php
lastfm_authorization_url = https://jamesbarnsley.co.nz/iris/auth_lastfm.php
genius_authorization_url = https://jamesbarnsley.co.nz/iris/auth_genius.php
data_dir = $XDG_DATA_DIR/iris

[file]
enabled = true
media_dirs = 
  $XDG_MUSIC_DIR|Music
  ~/|Home
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .pdf
  .png
  .txt
  .zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[http]
enabled = true
hostname = ::
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins = 
csrf_protection = true
default_app = mopidy

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[stream]
enabled = true
protocols = 
  http
  https
  mms
  rtmp
  rtmps
  rtsp
metadata_blacklist = 
timeout = 5000

[spotify]
enabled = true
username = myUsername
password = ********
client_id = 1ff19012-edd0-4626-929f-1e96658babe3
client_secret = ********
bitrate = 160
volume_normalization = true
private_session = false
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries = 

[mpd]
enabled = true
hostname = ::
port = 6600
password = 
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist = 
  listall
  listallinfo
default_playlist_scheme = m3u

I triple checked it, username, password, client id & secret are correct. Even on a new setup the spotify-plugin doesn't work.

Any help would be great!

Tech-Geek97 commented 3 years ago

Same thing happened to me today. I think libspotify is down and it isn't anything with your config.

Waldehead commented 3 years ago

Thanks, that is quite reassuring.

Tech-Geek97 commented 3 years ago

Unfortunately it looks like Spotify may not be willing to fix this issue. as per this post

Waldehead commented 3 years ago

Thanks! I guess i will close this issue, since it's a problem with libspotify