Local Scan Error

Just setup a Pi Zero W with the Pirate Audio headphone HAT. I managed to install Mopidy and the Iris and Local plugins, but when I go to scan my local media, I get the following output:

pi@raspberrypi:/home $ sudo mopidyctl local scan
Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf local scan” as user mopidy
INFO [MainThread] mopidy.main Starting Mopidy 3.0.1
INFO [MainThread] mopidy.config Loading config from builtin defaults
INFO [MainThread] mopidy.config Loading config from file:///usr/share/mopidy/conf.d/mopidy.conf
INFO [MainThread] mopidy.config Loading config from file:///etc/mopidy/mopidy.conf
INFO [MainThread] mopidy.config Loading config from command line options
INFO [MainThread] mopidy.main Enabled extensions: file, local, stream, raspberry-gpio, softwaremixer, iris, pidi, http, m3u
INFO [MainThread] mopidy.main Disabled extensions: spotify
INFO [MainThread] mopidy_local.commands Finding files in file:///home/pi/Music …
INFO [MainThread] mopidy_local.commands Found 8 files in file:///home/pi/Music
INFO [MainThread] mopidy_local.commands Checking 0 tracks from library
INFO [MainThread] mopidy_local.commands Removing 0 missing tracks
INFO [MainThread] mopidy_local.commands Found 7 tracks which need to be updated
INFO [MainThread] mopidy_local.commands Scanning…
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/If_You_Look_Up_At_The_Sky_At_Night___-Transoceanic.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/If_You_Look_Up_At_The_Sky_At_Night___-Transoceanic.mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/Millennial%20Sunset.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/Millennial Sunset.mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/celtic_stream.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/celtic_stream.mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/in_the_ocean%20%28Full%20Length%20Version%29.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/in_the_ocean (Full Length Version).mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/memories_of_snow.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/memories_of_snow.mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/music_for_the_child_inside.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/music_for_the_child_inside.mp3” for reading. (5)
WARNING [MainThread] mopidy_local.commands Failed scanning file:///home/pi/Music/transoceanic/the_whisper_of_the_trees.mp3: gst-resource-error-quark: Could not open file “/home/pi/Music/transoceanic/the_whisper_of_the_trees.mp3” for reading. (5)
INFO [MainThread] mopidy_local.commands Scanned 7 of 7 files in 0.218s.
INFO [MainThread] mopidy_local.commands Done scanning
INFO [MainThread] mopidy_local.storage Cleaning up image directory

I did make sure the pi user has ownership of the folder and the files, so I’m not sure how to interpret that error. Any help would be appreciated.

Mopidy running as a service runs under the user mopidy, not the user pi. Ensure the user mopidy has permission to read your music files.

What’s the recommended best practice here, give the mopidy user access to the /home/pi/Music, or create a new media share in /home/mopidy/music? I would lean to the latter, but I want make sure I’m not breaking something else first.

The default Mopidy-Local config looks for your music in /var/lib/mopidy/media, so you could put it there. or you can put it anywhere and adjust the config accordingly. Creating a /home/mopidy directory is definitely not necessary, I personally wouldn’t do that.