GStreamer error: Could not connect to server

Hey!

So I finally manage to setup my Mopidy Server. But now when I try to play a Track from Spotify or TuneIn and I am getting an Error.

ERROR [MainThread] mopidy.audio.gst GStreamer error: Could not connect to server

This is the whole log:

Jan 01 13:28:07 raspberrypi systemd[1]: Starting Mopidy music server…
Jan 01 13:28:07 raspberrypi systemd[1]: Started Mopidy music server.
Jan 01 13:28:08 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.main Starting Mopidy 3.0.1
Jan 01 13:28:08 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.config Loading config from builtin defaults
Jan 01 13:28:08 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
Jan 01 13:28:08 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
Jan 01 13:28:08 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.config Loading config from command line options
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.main Enabled extensions: tunein, softwaremixer, http, musicbox_webclient, file, stream, spotify, m3u
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.main Disabled extensions: none
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting Mopidy mixer: SoftwareMixer
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting Mopidy audio
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting Mopidy backends: TuneInBackend, FileBackend, M3UBackend, StreamBackend, SpotifyBackend
Jan 01 13:28:09 raspberrypi mopidy[2856]: INFO [Audio-2] mopidy.audio.actor Audio output set to “lamemp3enc ! shout2send mount=mopidy.mp3 ip=*** port=6680 password=***”
Jan 01 13:28:10 raspberrypi mopidy[2856]: INFO [SpotifyEventLoop] mopidy_spotify.backend Logged in to Spotify in online mode
Jan 01 13:28:10 raspberrypi mopidy[2856]: INFO [SpotifyBackend-7] mopidy_spotify.web Logged into Spotify Web API as ***
Jan 01 13:28:24 raspberrypi mopidy[2856]: INFO [SpotifyBackend-7] mopidy_spotify.playlists Refreshed 26 Spotify playlists
Jan 01 13:28:24 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting Mopidy core
Jan 01 13:28:24 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting Mopidy frontends: HttpFrontend
Jan 01 13:28:24 raspberrypi mopidy[2856]: INFO [HttpFrontend-12] mopidy.http.actor HTTP server running at [::ffff:192.168.178.62]:6680
Jan 01 13:28:24 raspberrypi mopidy[2856]: INFO [MainThread] mopidy.commands Starting GLib mainloop
Jan 01 13:28:32 raspberrypi mopidy[2856]: ERROR [MainThread] mopidy.audio.gst GStreamer error: Could not connect to server

And this is my config, of course censored.

[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 = lamemp3enc ! shout2send mount=mopidy.mp3 ip=192.168.178.62 port=6680 password=***
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 = 192.168.178.62
port = 6680
zeroconf = Mopidy HTTP server on $hostname
allowed_origins =
csrf_protection = true
default_app = musicbox_webclient

[mpd]
hostname = 192.168.178.62

[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]
username = ***
password = ***
client_id = ***
client_secret = ***

[local]
library = sqlite
scan_flush_threshold = 100
media_dir = $XDG_MUSIC_DIR
data_dir = $XDG_DATA_DIR/mopidy/local
playlists_dir = $XDG_DATA_DIR/mopidy/local/playlists

I am not really sure what I am doing wrong here.

I think this is caused by Mopidy/GStreamer not being able to connect to your Icecast server.

output = lamemp3enc ! shout2send mount=mopidy.mp3 ip=192.168.178.62 port=6680 password=***

According to your configuration, the Icasecast server is expected to be found at 192.168.178.62:6680. The port number looks suspicious, as this is typically the port of Mopidy’s HTTP server. Icecast is typically using 8000 or 8001. Check your Icecast configuration to confirm this.

Yep that was it. No clue how I overlooked it. Thanks a bunch!