Mopidy running on 127.0.0.1 when starting from crontab or rc.local

Hello everyone!

I faced this strange issue on my Raspberry Pi 3 B+.

When i run mopidy manually from the terminal, i have no problem at all and everything is working fine (listening ports 6680 and 6600 are on 0:0:0:0, giving me access from outside the LAN after configuring port forwarding).

When mopidy is started by a cronjob or from rc.local, ports are opened on 127.0.0.1, making it impossible to access my Iris client from internet.

I just tried to edit all the config files found from running sudo mopidyctl config (/etc/mopidy/mopidy.conf and ~/.config/mopidy/mopidy.conf) but nothing changed.

There is more: when specifically running from crontab, ports are opened on 0:0:0:0 but running mpc commands (especially the mpc play command) gets Iris stuck (the same for other clients).

Mopidy version is the latest.

Do you have any advise?

Thank you!

We provide a setup for running Mopidy as a service which loads a config file from /etc/mopidy/mopidy.conf.

If you have instead decided to roll your own solution using cron/rc.local etc then you need to understand what config file is being read as it will not be /etc/mopidy/mopidy.conf, unless you have explicitly configured that path somewhere in your custom setup. mopidyctl is a helper designed for use with our service setup and thus reads config from /etc/mopidy/mopidy.conf. If you are not using our normal service setup (reading config from /etc/mopidy/mopidy.conf) then it’s pretty meanginless to use mopidyctl.

However you run Mopidy, one of the first log lines printed as part of startup will show which config files are being read.

The interface that Mopidy-MPD’s server listens on is defined by the Mopidy-MPD hostname config. Web clients should have nothing to do with that. If you think that issue is still occuring, then feel free to provide full debug information once you have got your config sorted out.

Thank you Kingosticks,

but I just read the manual and edited all of the mopidy conf files. In this cast, whith mopidyctl config, it says that mopidy is using this config: /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf.

I edited both the share/mopidy/conf.d/mopidy.con and /etc/mopidy/mopidy.conf but mopidyctl config shows me another configuration, with lines not written on the files i mentioned (is also different from the home/.conf/mopidy/mopidy.con file). I think there is some other config that it uses but i can’t find it, and i think is a very strange behaviour.

That’s two paths separated by a ‘:’ character. You would be interested in /etc/mopidy/mopidy.conf. That’s the file I mentioned multiple times in my post and the one mentioned multiple times in our documentation. The files within /usr/share/mopidy/conf.d/ are nothing to do with you, do not edit them.

Our documentation specifies

If you want to keep the default value for a config value, you should not add it to the config file

That’s because many Mopidy config settings have a default value. When you run sudo mopidyctl config (or the non-service version of the command) you are shown the effective config. That is the default config, with your specific changes overlayed. Hence, even if you don’t specifiy anything in your config file, when you run sudo mopidyctl config you’ll see still all the default values shown. Is that what has confused you?

Our manual does not advocate changing multiple config files anywhere. if you have done that you have done something wrong. There is only ever one config file you should change. Which single file that is depends on how you run Mopidy. Further more, you might find you don’t actually need to change anything at all.

But it sounds like you do need a couple of changs so let’s take it from the start with the goal of running Mopidy as a service. Edit /etc/mopidy/mopidy.conf so it contains the following:

[mpd]
hostname = ::

[http]
hostname = ::

Run sudo mopidyctl config and you’ll see all the default config, except for those two specific settings we just changed - they should now contain their new values. Then start the service. If you check the log (sudo journalctl -u mopidy) you’ll see Mopidy listening on the specified interfaces.

Thank you for detailed instructions,

This is exactly what i tried to do (edit the /etc/mopidy/mopidy.conf) and the configuration is ok.)
But when starting mopidy as a service the command “mpc play” does not work (on the terminal, when i run mpc play, i have to hit ctrl+c because nothing happens both on the terminale and in mopidy, and the terminal itself gets stuck).

This issue is not present when starting mopidy from terminal with command mopidy.

Provide the full output of sudo mopidyctl deps, sudo mopidyctl config and the mopidy log from startup to the point where you hit ctrl+c.

Here i am!
Some notes: after starting mopidy as a service, in order to provide more infos on the log file, i executed locally:

  • mpc add [track URI] - success;
  • mpc play - not working;
  • mpc next - success;
  • mpc volume 70 - success.

This is the output of mopidyctl deps:

Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps" as user mopidy
ERROR    [MainThread] mopidy.ext Failed to load extension mopify: No module named 'mem'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
    extension_class = entry_point.resolve()
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/mopidy_mopify/__init__.py", line 7, in <module>
    import mem
ModuleNotFoundError: No module named 'mem'
ERROR    [MainThread] mopidy.ext Failed to load extension material-webclient: invalid syntax (__init__.py, line 82)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
    extension_class = entry_point.resolve()
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/mopidy_material_webclient/__init__.py", line 82
    except (ConfigObjError, IOError), e:
                                    ^
SyntaxError: invalid syntax
Executable: /usr/bin/mopidy
Platform: Linux-4.19.97-v7+-armv7l-with-debian-10.3
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.0.0 from /usr/local/lib/python3.7/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.2 from /usr/lib/python3/dist-packages
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
Mopidy-Mopify: 1.6.1 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
  ConfigObj: 5.0.6 from /usr/local/lib/python3.7/dist-packages
    six: 1.12.0 from /usr/lib/python3/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
Mopidy-Spotify: 4.0.1 from /usr/lib/python3/dist-packages
Mopidy-MusicBox-Webclient: 3.0.1 from /usr/local/lib/python3.7/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.2 from /usr/lib/python3/dist-packages
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
Mopidy-Local-Images: 1.0.0 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
  Pykka: 2.0.2 from /usr/lib/python3/dist-packages
  uritools: 3.0.0 from /usr/local/lib/python3.7/dist-packages
Mopidy-Iris: 3.0.0 from /usr/local/lib/python3.7/dist-packages/Mopidy_Iris-3.0.0-py3.7.egg
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
  Pykka: 2.0.2 from /usr/lib/python3/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
Mopidy-Material-Webclient: 0.2.1 from /usr/local/lib/python3.7/dist-packages
  setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
  Mopidy: 3.0.1 from /usr/lib/python3/dist-packages
  wifi: 0.3.8 from /usr/local/lib/python3.7/dist-packages
    setuptools: 45.2.0 from /usr/local/lib/python3.7/dist-packages
    pbkdf2: 1.3 from /usr/local/lib/python3.7/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
  Detailed information:
    Python wrapper: python-gi 3.30.4
    Relevant elements:
      Found:
        uridecodebin
        souphttpsrc
        appsrc
        alsasink
        osssink
        oss4sink
        pulsesink
        id3demux
        id3v2mux
        lamemp3enc
        mpegaudioparse
        mpg123audiodec
        vorbisdec
        vorbisenc
        vorbisparse
        oggdemux
        oggmux
        oggparse
        flacdec
        flacparse
        shout2send
      Not found:
        flump3dec
        mad

This the output of mopidyctl config:

Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf config" as user mopidy
ERROR    [MainThread] mopidy.ext Failed to load extension mopify: No module named 'mem'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
    extension_class = entry_point.resolve()
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/mopidy_mopify/__init__.py", line 7, in <module>
    import mem
ModuleNotFoundError: No module named 'mem'
ERROR    [MainThread] mopidy.ext Failed to load extension material-webclient: invalid syntax (__init__.py, line 82)
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
    extension_class = entry_point.resolve()
  File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/local/lib/python3.7/dist-packages/mopidy_material_webclient/__init__.py", line 82
    except (ConfigObjError, IOError), e:
                                    ^
SyntaxError: invalid syntax
[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 = pulsesink
buffer_time =

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

[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

[local-images]
enabled = true
library = json
base_uri = /images/
image_dir =
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

[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

[spotify]
enabled = true
username = ciao@radioraheem.it
password = ********
client_id = 521d7418-2bc9-457b-a332-e9ef159f03a7
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 =

This is the log (in bold i’m adding the mpc commands i ran):

feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,273 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   GLib mainloop got SIGTERM. Exiting...
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,275 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Mopidy frontends
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,288 [28150:IrisFrontend-11] mopidy_iris.core
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Iris
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,304 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Mopidy core
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,310 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Mopidy backends
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,357 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Mopidy audio
feb 14 15:38:09 raheembox mopidy[28150]: INFO     2020-02-14 15:38:09,360 [28150:MainThread] mopidy.commands
feb 14 15:38:09 raheembox mopidy[28150]:   Stopping Mopidy mixer
feb 14 15:38:09 raheembox systemd[1]: mopidy.service: Succeeded.
feb 14 15:38:43 raheembox systemd[1]: Starting Mopidy music server...
feb 14 15:38:43 raheembox systemd[1]: Started Mopidy music server.
feb 14 15:38:45 raheembox mopidy[29488]: INFO     2020-02-14 15:38:45,223 [29488:MainThread] mopidy.__main__
feb 14 15:38:45 raheembox mopidy[29488]:   Starting Mopidy 3.0.1
feb 14 15:38:45 raheembox mopidy[29488]: ERROR    2020-02-14 15:38:45,477 [29488:MainThread] mopidy.ext
feb 14 15:38:45 raheembox mopidy[29488]:   Failed to load extension mopify: No module named 'mem'
feb 14 15:38:45 raheembox mopidy[29488]: Traceback (most recent call last):
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
feb 14 15:38:45 raheembox mopidy[29488]:     extension_class = entry_point.resolve()
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
feb 14 15:38:45 raheembox mopidy[29488]:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_mopify/__init__.py", line 7, in <module>
feb 14 15:38:45 raheembox mopidy[29488]:     import mem
feb 14 15:38:45 raheembox mopidy[29488]: ModuleNotFoundError: No module named 'mem'
feb 14 15:38:45 raheembox mopidy[29488]: ERROR    2020-02-14 15:38:45,487 [29488:MainThread] mopidy.ext
feb 14 15:38:45 raheembox mopidy[29488]:   Failed to load extension material-webclient: invalid syntax (__init__.py, line 82)
feb 14 15:38:45 raheembox mopidy[29488]: Traceback (most recent call last):
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/lib/python3/dist-packages/mopidy/ext.py", line 209, in load_extensions
feb 14 15:38:45 raheembox mopidy[29488]:     extension_class = entry_point.resolve()
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/pkg_resources/__init__.py", line 2451, in resolve
feb 14 15:38:45 raheembox mopidy[29488]:     module = __import__(self.module_name, fromlist=['__name__'], level=0)
feb 14 15:38:45 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_material_webclient/__init__.py", line 82
feb 14 15:38:45 raheembox mopidy[29488]:     except (ConfigObjError, IOError), e:
feb 14 15:38:45 raheembox mopidy[29488]:                                     ^
feb 14 15:38:45 raheembox mopidy[29488]: SyntaxError: invalid syntax
feb 14 15:38:45 raheembox mopidy[29488]: INFO     2020-02-14 15:38:45,543 [29488:MainThread] mopidy.config
feb 14 15:38:45 raheembox mopidy[29488]:   Loading config from builtin defaults
feb 14 15:38:45 raheembox mopidy[29488]: INFO     2020-02-14 15:38:45,549 [29488:MainThread] mopidy.config
feb 14 15:38:45 raheembox mopidy[29488]:   Loading config from file:///etc/mopidy/mopidy.conf
feb 14 15:38:45 raheembox mopidy[29488]: INFO     2020-02-14 15:38:45,555 [29488:MainThread] mopidy.config
feb 14 15:38:45 raheembox mopidy[29488]:   Loading config from command line options
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,084 [29488:MainThread] mopidy.__main__
feb 14 15:38:46 raheembox mopidy[29488]:   Enabled extensions: file, local-images, http, iris, softwaremixer, stream, mpd, m3u, spotify, musicbox_webclient
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,084 [29488:MainThread] mopidy.__main__
feb 14 15:38:46 raheembox mopidy[29488]:   Disabled extensions: none
feb 14 15:38:46 raheembox mopidy[29488]: ERROR    2020-02-14 15:38:46,138 [29488:MainThread] mopidy.__main__
feb 14 15:38:46 raheembox mopidy[29488]:   Extension local-images failed during setup. This might have left the registry in a bad state.
feb 14 15:38:46 raheembox mopidy[29488]: Traceback (most recent call last):
feb 14 15:38:46 raheembox mopidy[29488]:   File "/usr/lib/python3/dist-packages/mopidy/__main__.py", line 129, in main
feb 14 15:38:46 raheembox mopidy[29488]:     extension.setup(registry)
feb 14 15:38:46 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_local_images/__init__.py", line 31, in setup
feb 14 15:38:46 raheembox mopidy[29488]:     from .library import ImageLibrary
feb 14 15:38:46 raheembox mopidy[29488]:   File "/usr/local/lib/python3.7/dist-packages/mopidy_local_images/library.py", line 12, in <module>
feb 14 15:38:46 raheembox mopidy[29488]:     from mopidy import local
feb 14 15:38:46 raheembox mopidy[29488]: ImportError: cannot import name 'local' from 'mopidy' (/usr/lib/python3/dist-packages/mopidy/__init__.py)
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,729 [29488:MainThread] mopidy.commands
feb 14 15:38:46 raheembox mopidy[29488]:   Starting Mopidy mixer: SoftwareMixer
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,734 [29488:MainThread] mopidy.commands
feb 14 15:38:46 raheembox mopidy[29488]:   Starting Mopidy audio
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,740 [29488:MainThread] mopidy.commands
feb 14 15:38:46 raheembox mopidy[29488]:   Starting Mopidy backends: FileBackend, M3UBackend, StreamBackend, SpotifyBackend
feb 14 15:38:46 raheembox mopidy[29488]: INFO     2020-02-14 15:38:46,788 [29488:Audio-2] mopidy.audio.actor
feb 14 15:38:46 raheembox mopidy[29488]:   Audio output set to "pulsesink"
feb 14 15:38:47 raheembox mopidy[29488]: INFO     2020-02-14 15:38:47,547 [29488:SpotifyEventLoop] mopidy_spotify.backend
feb 14 15:38:47 raheembox mopidy[29488]:   Logged in to Spotify in online mode
feb 14 15:38:47 raheembox mopidy[29488]: INFO     2020-02-14 15:38:47,993 [29488:SpotifyBackend-6] mopidy_spotify.web
feb 14 15:38:47 raheembox mopidy[29488]:   Logged into Spotify Web API as 33376sutmm0o2sn1af0oj4isb
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,879 [29488:SpotifyBackend-6] mopidy_spotify.playlists
feb 14 15:38:52 raheembox mopidy[29488]:   Refreshed 5 Spotify playlists
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,880 [29488:MainThread] mopidy.commands
feb 14 15:38:52 raheembox mopidy[29488]:   Starting Mopidy core
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,910 [29488:MainThread] mopidy.commands
feb 14 15:38:52 raheembox mopidy[29488]:   Starting Mopidy frontends: MpdFrontend, IrisFrontend, HttpFrontend
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,915 [29488:MainThread] mopidy_mpd.actor
feb 14 15:38:52 raheembox mopidy[29488]:   MPD server running at [::]:6600
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,920 [29488:IrisFrontend-11] mopidy_iris.core
feb 14 15:38:52 raheembox mopidy[29488]:   Starting Iris 3.0.0
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,931 [29488:HttpFrontend-13] mopidy.http.actor
feb 14 15:38:52 raheembox mopidy[29488]:   HTTP server running at [::]:6680
feb 14 15:38:52 raheembox mopidy[29488]: INFO     2020-02-14 15:38:52,931 [29488:MainThread] mopidy.commands
feb 14 15:38:52 raheembox mopidy[29488]:   Starting GLib mainloop
feb 14 15:39:10 raheembox mopidy[29488]: INFO     2020-02-14 15:39:10,727 [29488:MpdSession-14] mopidy_mpd.session

***[MPC ADD COMMAND]***
feb 14 15:39:10 raheembox mopidy[29488]: New MPD connection from [::1]:46058
feb 14 15:39:15 raheembox mopidy[29488]: INFO 2020-02-14 15:39:15,348 [29488:MpdSession-15] mopidy_mpd.session
feb 14 15:39:15 raheembox mopidy[29488]: New MPD connection from [::1]:46060
feb 14 15:39:25 raheembox mopidy[29488]: INFO 2020-02-14 15:39:25,232 [29488:MpdSession-16] mopidy_mpd.session

***[MPC PLAY COMMAND]***
feb 14 15:39:25 raheembox mopidy[29488]: New MPD connection from [::1]:46062
feb 14 15:39:25 raheembox mopidy[29488]: WARNING 2020-02-14 15:39:25,292 [29488:Audio-2] mopidy.audio.actor
feb 14 15:39:25 raheembox mopidy[29488]: Setting GStreamer state to GST_STATE_PLAYING failed
feb 14 15:39:25 raheembox mopidy[29488]: ERROR 2020-02-14 15:39:25,295 [29488:MainThread] mopidy.audio.gst
feb 14 15:39:25 raheembox mopidy[29488]: GStreamer error: Failed to connect: Connection refused
feb 14 15:39:25 raheembox mopidy[29488]: WARNING 2020-02-14 15:39:25,298 [29488:Core-9] mopidy.core.tracklist
feb 14 15:39:25 raheembox mopidy[29488]: Track is not playable: spotify:track:0BBMVMzgOD5NKhjPgf1rVO

***[MPC NEXT COMMAND]***
feb 14 15:39:29 raheembox mopidy[29488]: INFO 2020-02-14 15:39:29,090 [29488:MpdSession-17] mopidy_mpd.session
feb 14 15:39:29 raheembox mopidy[29488]: New MPD connection from [::1]:46064

***[MPC VOLUME COMMAND]***
feb 14 15:39:34 raheembox mopidy[29488]: INFO 2020-02-14 15:39:34,410 [29488:MpdSession-18] mopidy_mpd.session
feb 14 15:39:34 raheembox mopidy[29488]: New MPD connection from [::1]:46066

Your log is full of errors, some of them even warn the registry might be left in a bad state. Did you not think they might be relevent? Perhaps worth fixing first?

In case you don’t know why you have those errors, it’s because you have installed a load of Python 2.x extensions. Only Python 3 extensions can be used with Mopidy 3. There’s a really obvious list of what extensions are Python 3 compatible at https://mopidy.com/ext/. Remove all your incompatible extensions so you get to a point where the startup log isn’t full of errors.

Once you’ve done that, take a look again at the page I asked you to read. Specifically the section about Pulseaudio so you can help me understand to why you don’t need to set the audio output config setting as per the recommendation on that page.