Double check Spotify currently not working

Hi There,

actually I was curios to get Mopediy with Snapcast and Spotify running.

After spending some time now with installation … still failing … and reading here … I understand that Spotify is currently not running in Mopidy … ?

The issue that i currently face is, that Mopidy seems to be connected to Spotify, but doen’t play a song (if I doubleclick on it).

I can see covers in Iris-Web Interface but if I click on a song I get the information that Mopidy can’t add the Url …

So, Do I understand it correctly … Spotify integration is currenttly not working … ?

Would love to get it run.

Thank’s in advance for providing some feedback :slight_smile:

It’s just playlists that are broken. I suggest you revert to a normal (non-snapcast) setup and get that working first. The Fifo that snapcast requires is a brittle system, the problem probably lies there.

Are you using a premium spotify account?

Can you see any of your existing personal playlists in the Iris UI?

Have you authorized Mopidy-Spotify using the instructions on this page https://github.com/mopidy/mopidy-spotify#configuration as the ‘failed to add tracks’ message occurs if you are not properly authorized.

On the Iris web ui have you also checked you have correct country settings, eg Country GB and locale en_GB, this can also lead to a problem with not loading.

You also need to authorise Iris with Spotify using the login button on the Iris settings page.

Hi there, thanks for questioning.

Here is what I can say

@kingosticks: I am currently not at the stage of configuration of snapcast … it is still at the level of basic configuration …

@Steve_Lambert: “I think” I did the authorization according to what is demanded within the github link:

a) based on the fact that I use a Raspberry Pi Setup / Raspbian (currentversion) I follwed the Debian installation instructtion
b) yes, I can see my personal playlists ( … is that equal to … authetification correct?)
c) I did localization in /etc/mopidy/mopidy.conf (because I use the service).
d) I see localization in Iris web Interface (in my case country: DE; locale de_DE)
e) Iris interface says: Spotify

What else can I try?

Is this authorization URL correct: spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php

I am wondering if authorization in new zealand makes sense for german account …

Thanks for helping …

does it say ‘authorised’ underneath it?

I don’t have any problem with the authorization from NZ

Yes. It does (green)

I’m afraid I don’t know what the problem could be then.

This is my spotify section from when I run sudo mopidyctl config, is yours the similar?

[spotify]
enabled = true
username = stevie**
password = ********
client_id = e80e01df-2ada-4a7d-8d6a-e0f713b4538e
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 =

yes, I have got the same …

[spotify]
enabled = true
username = frablalal**
password = ********
client_id = 37be0ee5-45db-4ba9-******
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 =

Can you please try searching for a song and trying to play that. i.e do not select a song from your playlist. And then look in the log file at /var/log/mopidy/mopidy.log for any errors.

Added Soundcloud and Soundcloud is working :roll_eyes:

2018-11-04 19:02:55,695 INFO [318:MainThread] mopidy.local.library: Loaded 0 local tracks using json
2018-11-04 19:02:57,076 ERROR [318:SpotifyEventLoop] spotify.session: Spotify login error: <ErrorType.BAD_USERNAME_OR_PASSWORD: 6>
2018-11-04 19:02:57,112 INFO [318:SpotifyEventLoop] spotify.session: Spotify logged out
2018-11-04 19:02:57,839 INFO [318:MainThread] mopidy.commands: Starting Mopidy core
2018-11-04 19:02:58,384 INFO [318:MainThread] mopidy.commands: Starting Mopidy frontends: IrisFrontend, MpdFrontend, HttpFrontend
2018-11-04 19:02:58,437 INFO [318:IrisFrontend-12] mopidy_iris.frontend: Starting Iris 3.29.2
2018-11-04 19:02:58,451 INFO [318:MainThread] mopidy.mpd.actor: MPD server running at [::]:6600
2018-11-04 19:02:58,530 INFO [318:HttpFrontend-15] mopidy.http.actor: HTTP server running at [::]:6680
2018-11-04 19:02:58,567 INFO [318:MainThread] mopidy.commands: Starting GLib mainloop
2018-11-04 19:03:18,844 INFO [318:HttpServer] tornado.access: 301 GET /iris (192.168.2.54) 21.37ms
2018-11-04 19:03:19,006 INFO [318:HttpServer] tornado.access: 200 GET /iris/ (192.168.2.54) 135.40ms
2018-11-04 19:03:19,510 INFO [318:HttpServer] tornado.access: 200 GET /iris/assets/app-icon_64.png (192.168.2.54) 18.64ms
2018-11-04 19:03:19,523 INFO [318:HttpServer] tornado.access: 200 GET /iris/app.min.css?v=1541031873 (192.168.2.54) 476.12ms
2018-11-04 19:03:19,548 INFO [318:HttpServer] tornado.access: 200 GET /iris/app.min.js?v=1541031873 (192.168.2.54) 396.25ms
2018-11-04 19:03:19,590 WARNING [318:HttpServer] tornado.access: 404 GET /iris/assets/logo-app_512.png (192.168.2.54) 31.99ms
2018-11-04 19:04:46,107 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:5pggPB7aXLFDnqaRBscoFL”: Session must be logged in and online to load object$
2018-11-04 19:06:50,065 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:3GZOAbFmTKxgWmsIdo9zYS”: Session must be logged in and online to load object$
2018-11-04 19:07:02,465 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:33IOhptvC2Qoy2UhjiHXLV”: Session must be logged in and online to load object$
2018-11-04 19:07:05,719 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:4VfZfAGV8Zh0qsoiKLOk7w”: Session must be logged in and online to load object$
2018-11-04 19:08:58,859 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:1m1nkTDqTntuG9HaOo4Jn7”: Session must be logged in and online to load object$
2018-11-04 19:09:01,313 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:0K8tVfNLsVbYrYdNYmWqAa”: Session must be logged in and online to load object$
2018-11-04 19:09:03,105 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:0tgbSxoFjZ20MjfoKwWevV”: Session must be logged in and online to load object$
2018-11-04 19:09:04,782 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:33IOhptvC2Qoy2UhjiHXLV”: Session must be logged in and online to load object$
2018-11-04 19:09:06,553 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:2Buieq5kZfpkXViGbaPtzm”: Session must be logged in and online to load object$

2018-11-04 18:03:27,600 ERROR [311:Core-11] mopidy.core.library: SpotifyBackend backend caused an exception.
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/mopidy/core/library.py”, line 19, in _backend_error_handling
yield
File “/usr/lib/python2.7/dist-packages/mopidy/core/library.py”, line 142, in get_distinct
values = future.get()
File “/usr/lib/python2.7/dist-packages/pykka/threading.py”, line 52, in get
compat.reraise(*self._data[‘exc_info’])
File “/usr/lib/python2.7/dist-packages/pykka/compat.py”, line 12, in reraise
exec(‘raise tp, value, tb’)
File “/usr/lib/python2.7/dist-packages/pykka/actor.py”, line 201, in _actor_loop
response = self._handle_receive(message)
File “/usr/lib/python2.7/dist-packages/pykka/actor.py”, line 295, in _handle_receive
return callee(*message[‘args’], **message[‘kwargs’])
File “/usr/lib/python2.7/dist-packages/mopidy_spotify/library.py”, line 26, in get_distinct
field, query)
File “/usr/lib/python2.7/dist-packages/mopidy_spotify/distinct.py”, line 23, in get_distinct
config, session, web_client, query)
File “/usr/lib/python2.7/dist-packages/mopidy_spotify/distinct.py”, line 63, in _get_distinct_albumartists
for track in _get_playlist_tracks(config, session)
File “/usr/lib/python2.7/dist-packages/mopidy_spotify/distinct.py”, line 62, in
track.album.artist.name
File “/usr/lib/python2.7/dist-packages/mopidy_spotify/distinct.py”, line 116, in _get_playlist_tracks
for playlist in session.playlist_container:
TypeError: ‘NoneType’ object is not iterable
2018-11-04 18:03:27,734 ERROR [311:Core-11] mopidy.core.library: SpotifyBackend backend caused an exception.
Traceback (most recent call last):
File “/usr/lib/python2.7/dist-packages/mopidy/core/library.py”, line 19, in _backend_error_handling
yield
File “/usr/lib/python2.7/dist-packages/mopidy/core/library.py”, line 142, in get_distinct
values = future.get()

2018-11-04 19:02:28,724 INFO [318:MainThread] mopidy.main: Starting Mopidy 2.1.0
2018-11-04 19:02:49,798 INFO [318:MainThread] mopidy.config: Loading config from builtin defaults
2018-11-04 19:02:49,996 INFO [318:MainThread] mopidy.config: Loading config from /etc/mopidy/mopidy.conf
2018-11-04 19:02:50,108 INFO [318:MainThread] mopidy.config: Loading config from command line options
2018-11-04 19:02:52,074 INFO [318:MainThread] mopidy.main: Enabled extensions: iris, mpd, http, stream, spotify, m3u, softwaremixer, file, local-images, local, soundcloud
2018-11-04 19:02:52,099 INFO [318:MainThread] mopidy.main: Disabled extensions: none
2018-11-04 19:02:54,821 INFO [318:MainThread] mopidy.commands: Starting Mopidy mixer: SoftwareMixer
2018-11-04 19:02:54,888 INFO [318:MainThread] mopidy.commands: Mixer volume set to 50
2018-11-04 19:02:54,897 INFO [318:MainThread] mopidy.commands: Starting Mopidy audio
2018-11-04 19:02:54,952 INFO [318:MainThread] mopidy.commands: Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend, LocalBackend, SpotifyBackend, SoundCloudBackend
2018-11-04 19:02:55,461 INFO [318:Audio-2] mopidy.audio.actor: Audio output set to “alsasink”
2018-11-04 19:02:55,686 INFO [318:MainThread] mopidy.local.json: No local library metadata cache found at /var/lib/mopidy/local/library.json.gz. Please run mopidy local scan to inde$
2018-11-04 19:02:55,695 INFO [318:MainThread] mopidy.local.library: Loaded 0 local tracks using json
2018-11-04 19:02:57,076 ERROR [318:SpotifyEventLoop] spotify.session: Spotify login error: <ErrorType.BAD_USERNAME_OR_PASSWORD: 6>
2018-11-04 19:02:57,112 INFO [318:SpotifyEventLoop] spotify.session: Spotify logged out
2018-11-04 19:02:57,839 INFO [318:MainThread] mopidy.commands: Starting Mopidy core
2018-11-04 19:02:58,384 INFO [318:MainThread] mopidy.commands: Starting Mopidy frontends: IrisFrontend, MpdFrontend, HttpFrontend
2018-11-04 19:02:58,437 INFO [318:IrisFrontend-12] mopidy_iris.frontend: Starting Iris 3.29.2
2018-11-04 19:02:58,451 INFO [318:MainThread] mopidy.mpd.actor: MPD server running at [::]:6600
2018-11-04 19:02:58,530 INFO [318:HttpFrontend-15] mopidy.http.actor: HTTP server running at [::]:6680
2018-11-04 19:02:58,567 INFO [318:MainThread] mopidy.commands: Starting GLib mainloop
2018-11-04 19:03:18,844 INFO [318:HttpServer] tornado.access: 301 GET /iris (192.168.2.54) 21.37ms
2018-11-04 19:03:19,006 INFO [318:HttpServer] tornado.access: 200 GET /iris/ (192.168.2.54) 135.40ms
2018-11-04 19:03:19,510 INFO [318:HttpServer] tornado.access: 200 GET /iris/assets/app-icon_64.png (192.168.2.54) 18.64ms
2018-11-04 19:03:19,523 INFO [318:HttpServer] tornado.access: 200 GET /iris/app.min.css?v=1541031873 (192.168.2.54) 476.12ms
2018-11-04 19:03:19,548 INFO [318:HttpServer] tornado.access: 200 GET /iris/app.min.js?v=1541031873 (192.168.2.54) 396.25ms
2018-11-04 19:03:19,590 WARNING [318:HttpServer] tornado.access: 404 GET /iris/assets/logo-app_512.png (192.168.2.54) 31.99ms
2018-11-04 19:04:46,107 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup “spotify:track:5pggPB7aXLFDnqaRBscoFL”: Session must be logged in and online to load object$
2018-11-04 19:06:50,065 INFO [318:SpotifyBackend-7] mopidy_spotify.lookup: Failed to lookup "spotify:track:3GZOAbFmTKxgWmsI

It looks as though the details for Spotify are incorrect in the mopidy config, however @kingosticks can probably read this far better than me.

@kingosticks: can you please have a look?

Do you think that special characters like _ or - could be an issue in password?

Thank’s for support!

Those charers should be allowed ok. But it is definitely a login problem as the log clearly shows. Is this a regular Spotify premium account? A Facebook login?

ok … found it

ALL SHAME ON ME!!!

I used the wrong password …

Sorry Gentlemen … Thank’s for your support till here …

I am feeling bad :frowning:

1 Like