# Spotify only plays first track of album or playlist

**URL:** <https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797>\
**Category:** Help and support\
**Created:** [March 7, 2021, 6:03pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797 "2021-03-07T18:03:37Z")\
**Posts on this page:** 12\
**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:** [March 7, 2021, 6:03pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/1 "2021-03-07T18:03:37Z")

</div>

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/](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](https://jamesbarnsley.co.nz/iris/auth_spotify.php)  
lastfm\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_lastfm.php](https://jamesbarnsley.co.nz/iris/auth_lastfm.php)  
genius\_authorization\_url = [https://jamesbarnsley.co.nz/iris/auth\_genius.php](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 =

---

<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:** [March 7, 2021, 6:39pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/2 "2021-03-07T18:39:24Z")

</div>

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

---

<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:** [April 15, 2021, 7:40am UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/3 "2021-04-15T07:40:05Z")

</div>

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

---

<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:** [April 15, 2021, 9:39am UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/4 "2021-04-15T09:39:47Z")

</div>

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

---

<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:** [April 15, 2021, 12:05pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/5 "2021-04-15T12:05:57Z")

</div>

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.

---

<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:** [April 15, 2021, 1:55pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/6 "2021-04-15T13:55:57Z")

</div>

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

---

<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:** [April 15, 2021, 2:42pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/7 "2021-04-15T14:42:29Z")

</div>

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

---

<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:** [April 15, 2021, 3:31pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/8 "2021-04-15T15:31:31Z")

</div>

That log shows Mopidy startup and nothing else. It needs to be a [debug](https://docs.mopidy.com/en/latest/config/#confval-logging-verbosity) 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.

---

<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:** [April 15, 2021, 3:58pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/9 "2021-04-15T15:58:01Z")

</div>

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]]\>](https://api.somafm.com/channels.xml) : 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

---

<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:** [April 15, 2021, 7:33pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/10 "2021-04-15T19:33:43Z")

</div>

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.

---

<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:** [April 15, 2021, 8:52pm UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/11 "2021-04-15T20:52:44Z")

</div>

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

---

<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:** [October 15, 2021, 8:53am UTC](https://discourse.mopidy.com/t/spotify-only-plays-first-track-of-album-or-playlist/4797/12 "2021-10-15T08:53:29Z")

</div>

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