New install in Raspberry PI: WARNING local/media_dir must be set

Hello,
I try to configure Mopidy on a new, fresh installed Raspberry Pi 3.
What’s done:

Service is running, can Access web Interface.
But unable to Access local files:

Config (Default, no changes after install)
root@rpi-mp-wz:~# cat /etc/mopidy/mopidy.conf
[core]
cache_dir = /var/cache/mopidy
config_dir = /etc/mopidy
data_dir = /var/lib/mopidy

[logging]
config_file = /etc/mopidy/logging.conf
debug_file = /var/log/mopidy/mopidy-debug.log

[local]
data_dir = /var/lib/mopidy/local
media_dir = /var/lib/mopidy/media

[m3u]
playlists_dir = /var/lib/mopidy/playlists
root@rpi-mp-wz:~#

Message:
pi@rpi-mp-wz:~ $ mopidy
INFO Starting Mopidy 2.0.1
INFO Loading config from builtin defaults
INFO Loading config from command line options
INFO Creating dir /home/pi/.cache/mopidy
INFO Creating dir /home/pi/.config/mopidy
INFO Creating dir /home/pi/.local/share/mopidy
INFO Loading config from builtin defaults
INFO Loading config from command line options
INFO Creating file /home/pi/.config/mopidy/mopidy.conf
INFO Initialized /home/pi/.config/mopidy/mopidy.conf with default config
INFO Enabled extensions: mpd, http, stream, m3u, softwaremixer, file
INFO Disabled extensions: local
WARNING Found local configuration errors, the extension has been automatically disabled:
WARNING local/media_dir must be set.
WARNING Please fix the extension configuration errors or disable the extensions to silence these messages.
INFO Starting Mopidy mixer: SoftwareMixer

What’s wrong? I hope someone can help me with this…

Running mopidy as user pi, as you are doing in your trace above, will not run Mopidy as a service with config from /etc/mopidy/mopidy.conf. Instead it will run Mopidy as user pi with config from /home/pi/.config/mopidy/mopidy.conf, This is consistent with the INFO messages in your trace and with the documentation.

So either set the correct config in /home/pi/.config/mopidy/mopidy.conf or run Mopidy as a service.

1 Like