Constant GStreamer error for Spotify - Could not find protocol

I’m attempting to use Mopidy on Ubuntu 22.04.

I’ve installed, uninstalled and reinstalled trying to work out the problem with Spotify constantly giving Gstreamer errors when trying to play any tracks.

Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: WARNING 2024-04-16 09:06:50,456 [8842:Audio-2 (_actor_loop)] mopidy.audio.>
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: Setting GStreamer state to GST_STATE_PLAYING failed
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: WARNING 2024-04-16 09:06:50,456 [8842:Core-9 (_actor_loop)] mopidy.core.tr>
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: Track is not playable: spotify:track:4IadxL6BUymXlh8RCJJu7T
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: WARNING 2024-04-16 09:06:50,457 [8842:MainThread] mopidy.audio.actor
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: Could not find a SPOTIFY protocol source to handle media.
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: INFO 2024-04-16 09:06:50,457 [8842:MainThread] mopidy.audio.actor
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: You might be able to fix this by running: gst-installer "gstreamer|1.0|mo>
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: ERROR 2024-04-16 09:06:50,457 [8842:MainThread] mopidy.audio.gst
Apr 16 09:06:50 Ubuntu22-VM01 mopidy[8842]: GStreamer error: No URI handler implemented for “spotify”.

I have all my Spotify credentials and keys set up in my mopidy.config and have (I think) followed the installation instructions and guides so I’m really not sure what I have done wrong.

My config
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[local]
media_dir = /home/joel/Music

[spotify]
username = xxxxxxxxx
password = xxxxxxxx
client_id = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
client_secret = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[http]
hostname = 0.0.0.0
port = 6680

[audio]
output = audioresample ! audio/x-raw,rate=48000,channels=2,format=S16LE ! audioconvert ! wavenc ! filesink location=/tmp/snapfi>
[logging]
verbosity = 0
format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
color = true
config_file =

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

[softwaremixer]
enabled = true

[mpd]
enabled = true
hostname = 0.0.0.0
port = 6600

[iris]
enabled = true
country = US
locale = en_US
snapcast_enabled = true
snapcast_host = localhost
snapcast_port = 1780
snapcast_ssl = false
snapcast_stream = Default
spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php
lastfm_authorization_url = https://jamesbarnsley.co.nz/iris/auth_lastfm.php
data_dir = $XDG_DATA_DIR/iris

Did you install the gst-plugins-spotify dependency as per GitHub - mopidy/mopidy-spotify: Mopidy extension for playing music from Spotify ?

1 Like

Finally I did yes, I’d missed the step. Now I have the streams working but no volume for some reason, no doubt I’ve borked something up .