Can't see any local music files in web extension (Running as Service)


#1

Hi guys, I’m fairly new to Mopidy and Raspberry Pi, and am having an issue when attempting to run Mopidy as a service to play some local mp3 files. I only have four mp3s stored in /home/pi/Music, which I can access and play via web extensions when running as a normal user, however when I run as a service they don’t appear.

My /etc/mopidy/mopidy.conf file is as follows:

[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]
enabled = true
library = json
media_dir = /home/pi/Music
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions = 
  .directory
  .html
  .jpeg
  .jpg
  .log
  .nfo
  .png
  .txt

[m3u]
playlists_dir = /var/lib/mopidy/playlists

[http]
enabled = true
hostname = ::
port = 6680
static_dir = 
zeroconf = Mopidy HTTP server on $hostname

Running a local scan does find the four mp3s:

pi@raspberrypi:~ $ sudo mopidyctl local scan
Running "/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan" as user mopidy
INFO     Starting Mopidy 2.1.0
INFO     Loading config from builtin defaults
INFO     Loading config from /etc/mopidy/mopidy.conf
INFO     Loading config from command line options
INFO     Enabled extensions: mopify, iris, mpd, local-images, file, stream, mobile, m3u, jukepi, http, simple-webclient, material-webclient, softwaremixer, moped, musicbox_webclient, party, api_explorer, local
INFO     Disabled extensions: none
INFO     Found 4 files in media_dir.
INFO     Checking 4 tracks from library.
INFO     Removing 0 missing tracks.
INFO     Found 0 tracks which need to be updated.
INFO     Scanning...
INFO     Scanned 0 of 0 files in 0s.
INFO     Done scanning.

And when controlling the server via a web client like Moped, there is nothing in the ‘Local Media’ folder, and within the ‘Files’ folder there are the four subfolders ‘local’, ‘local-images’, ‘media’, and ‘playlists’, corresponding to those found in /var/lib/mopidy, so nothing from the /home/pi/Music folder.

Does anyone know how I could access those local mp3 files from a web client? Apologies if I’m missing something obvious!

Cheers


#2

I’m struggling with the exact same issue running mopidy-mopifi on Linux mint cinnamon 18.3
I can’t see my local files, although they are certainly present.
I do see spotify play list but cant make them play…

Any ideas?

Thanks