Spotify only plays first track of album or playlist

Hi - spotify extension is running ok but it will not automatically play the next track on a playlist or album when loaded up and always stops after the first selected track. Any thoughts?

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 = alsasink device=hw:Headphones
buffer_time =

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

[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

[ytmusic]
enabled = false ; Extension disabled by user config.

[youtube]
enabled = false ; Extension disabled by user config.

[tunein]
enabled = true
timeout = 5000
filter =

[somafm]
enabled = false ; Extension disabled by user config.

[podcast]
enabled = true
browse_root = Podcasts.opml
browse_order = desc
lookup_order = asc
cache_size = 64
cache_ttl = 86400
timeout = 10

[podcast-itunes]
enabled = true
base_url = http://itunes.apple.com/
country = US
explicit =
charts = audioPodcasts
charts_limit = 20
search_limit = 20
timeout = 10
retries = 3

[musicbox_webclient]
enabled = true
musicbox = false
websocket_host =
websocket_port =
on_track_click = PLAY_ALL

[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

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

[mixcloud]
enabled = true
users =
tags =
search_max = 20
refresh_period = 600
ignore_exclusive = true

[local]
enabled = false ; Extension disabled due to config errors.
max_search_results = 100
media_dir = ; Must be set.
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions =
excluded_file_extensions =
.cue
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
directories =
Albums local:directory?type=album
Artists local:directory?type=artist
Composers local:directory?type=artist&role=composer
Genres local:directory?type=genre
Performers local:directory?type=artist&role=performer
Release Years local:directory?type=date&format=%25Y
Tracks local:directory?type=track
Last Week’s Updates local:directory?max-age=604800
Last Month’s Updates local:directory?max-age=2592000
timeout = 10
use_artist_sortname = false
album_art_files =
*.jpg
*.jpeg
*.png

[iris]
enabled = true
country = NZ
locale = en_NZ
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

[internetarchive]
enabled = false ; Extension disabled by user config.

[funkwhale]
enabled = false ; Extension disabled by self check.

[spotify]
enabled = true
username = ***
password = ********
client_id = ***
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 =

Sounds like you have “single” mode enabled. mpc single off to disable it. If this is not the issue then post your log.

Hey - the problem has come back so posting error log. This happens when loading a new playlist from spotify or moving from a radio stream to a playlist in spotify, it will only play the first track and not move to the next on the list.

Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [SpotifyBackend-10] mopidy_spotify.playlists Refreshed 43 Spotify playlists
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [MainThread] mopidy.commands Starting Mopidy core
Apr 15 08:27:42 raspberrypi mopidy[26246]: ERROR [PodcastBackend-7] mopidy_podcast.library Cannot retrieve Podcast root directory
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: HttpFrontend, MpdFrontend, IrisFrontend
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [HttpFrontend-16] mopidy.http.actor HTTP server running at [::]:6680
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [MainThread] mopidy_mpd.actor MPD server running at [::]:6600
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [IrisFrontend-18] mopidy_iris.core Starting Iris 3.55.4
Apr 15 08:27:42 raspberrypi mopidy[26246]: INFO [MainThread] mopidy.commands Starting GLib mainloop
Apr 15 08:29:01 raspberrypi mopidy[26246]: WARNING [FileBackend-3] mopidy.file.library Failed looking up file:///var/lib/mopidy/m3u/%5BRadio%20Streams%5D.m3u8: gst-stream-error-quark: This appe
Apr 15 08:29:02 raspberrypi mopidy[26246]: WARNING [FileBackend-3] mopidy.file.library Failed looking up file:///var/lib/mopidy/m3u/%5BRadio%20Streams%5D.m3u8: gst-stream-error-quark: This appe
Apr 15 08:29:02 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:05 raspberrypi mopidy[26246]: WARNING [FileBackend-3] mopidy.file.library Failed looking up file:///var/lib/mopidy/m3u/%5BRadio%20Streams%5D.m3u8: gst-stream-error-quark: This appe
Apr 15 08:29:05 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:06 raspberrypi mopidy[26246]: WARNING [FileBackend-3] mopidy.file.library Failed looking up file:///var/lib/mopidy/m3u/%5BRadio%20Streams%5D.m3u8: gst-stream-error-quark: This appe
Apr 15 08:29:06 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:15 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:20 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:22 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:25 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:29:30 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file
Apr 15 08:30:12 raspberrypi mopidy[26246]: ERROR [MainThread] mopidy.audio.gst GStreamer error: This appears to be a text file

Are you trying to open a playlist file using Mopidy-File’s browsing capability? That is not a music file, that is not supported.

No trying to open a normal playlist section not the browse section. It loads all the urls of the playlist but only plays the first song automatically and doesn’t progress down the track list loaded. if i restart mopidy service then it works again.

Can you provide a debug log showing just the steps to reproduce (and list those steps as well).

Steps:

  1. play a radio stream (m3u8) saved url
  2. navigate to playlists section (spotify)
  3. play all
  4. only first track plays

I have also tried the mpc single off - with no success.

Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [SpotifyBackend-10] mopidy_spotify.playlists Refreshed 43 Spotify playlists
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [MainThread] mopidy.commands Starting Mopidy core
Apr 15 15:12:42 raspberrypi mopidy[14477]: ERROR [PodcastBackend-7] mopidy_podcast.library Cannot retrieve Podcast root directory
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: HttpFrontend, MpdFrontend, IrisFrontend
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [HttpFrontend-15] mopidy.http.actor HTTP server running at [::]:6680
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [MainThread] mopidy_mpd.actor MPD server running at [::]:6600
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [IrisFrontend-17] mopidy_iris.core Starting Iris 3.55.4
Apr 15 15:12:42 raspberrypi mopidy[14477]: INFO [MainThread] mopidy.commands Starting GLib mainloop

That log shows Mopidy startup and nothing else. It needs to be a debug log showing the problem.

With respect to your reproducing steps. What client? Are you playing all the Spotify playlists? How does the radio stream and playlists section relate. I cannot follow this to reproduce.

Client is any of Mobile, Iris or MusicBox. The problem is same with all the clients i have installed.
Steps (using music box as an example)

  1. select saved radio stream from “Streams”
  2. play radio stream
  3. load a playlist from spotify from “playlists” section
  4. play all… only first track plays

debug log for this below:

DEBUG 2021-04-15 16:56:24,903 [886:Thread-8] mopidy_ytmusic
YTMusic Player URL refreshed in 1.03s
DEBUG 2021-04-15 16:56:25,027 [886:SomaFMBackend-11] mopidy_somafm.somafm
Get <![CDATA[Seven Inch Soul]]> : 200
INFO 2021-04-15 16:56:25,036 [886:SomaFMBackend-11] mopidy_somafm.somafm
Loaded 38 SomaFM channels
INFO 2021-04-15 16:56:25,038 [886:MainThread] mopidy.commands
Starting Mopidy core
INFO 2021-04-15 16:56:25,078 [886:MainThread] mopidy.commands
Starting Mopidy frontends: HttpFrontend, YTMusicScrobbleFE, YouTubeAutoplayer, MpdFrontend, IrisFrontend
DEBUG 2021-04-15 16:56:25,080 [886:MainThread] mopidy.http.actor
Starting HTTP server
ERROR 2021-04-15 16:56:25,082 [886:MainThread] mopidy.commands
Frontend (HttpFrontend) initialization error: HTTP server startup failed: [Errno 98] Address already in use
ERROR 2021-04-15 16:56:25,087 [886:MainThread] mopidy.commands
Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 98] Address already in use
INFO 2021-04-15 16:56:25,089 [886:IrisFrontend-20] mopidy_iris.core
Starting Iris 3.55.4
INFO 2021-04-15 16:56:25,090 [886:MainThread] mopidy.commands
Starting GLib mainloop
INFO 2021-04-15 16:56:26,423 [886:Thread-7] mopidy_ytmusic
YTMusic loaded 9 auto playlists sections
INFO 2021-04-15 16:56:26,425 [886:Thread-7] mopidy_ytmusic
YTMusic Auto Playlists refreshed in 2.55s

That’s for the clear reproduction steps.

But I don’t think this is the correct log. A debug log should show each action as you chnage the tracklist, it should show the playback state changes. This one shows some errors that the requested ports are in use, normally because you already have another instance of Mopidy already running.

I restarted everything and reran the log: does this help?
This is right from the moment where the track will not progress after the first track

INFO 2021-04-15 21:49:51,329 [10928:SomaFMBackend-11] mopidy_somafm.somafm
Loaded 38 SomaFM channels
INFO 2021-04-15 21:49:51,330 [10928:MainThread] mopidy.commands
Starting Mopidy core
INFO 2021-04-15 21:49:51,353 [10928:MainThread] mopidy.commands
Starting Mopidy frontends: HttpFrontend, YTMusicScrobbleFE, YouTubeAutoplayer, MpdFrontend, IrisFrontend
DEBUG 2021-04-15 21:49:51,354 [10928:MainThread] mopidy.http.actor
Starting HTTP server
ERROR 2021-04-15 21:49:51,354 [10928:MainThread] mopidy.commands
Frontend (HttpFrontend) initialization error: HTTP server startup failed: [Errno 98] Address already in use
ERROR 2021-04-15 21:49:51,357 [10928:MainThread] mopidy.commands
Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 98] Address already in use
INFO 2021-04-15 21:49:51,358 [10928:IrisFrontend-20] mopidy_iris.core
Starting Iris 3.55.4
INFO 2021-04-15 21:49:51,359 [10928:MainThread] mopidy.commands
Starting GLib mainloop
INFO 2021-04-15 21:49:52,084 [10928:Thread-7] mopidy_ytmusic
YTMusic loaded 9 auto playlists sections
INFO 2021-04-15 21:49:52,086 [10928:Thread-7] mopidy_ytmusic
YTMusic Auto Playlists refreshed in 1.74s

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