Sudo mopidyctl local scan Permission denied 13 error

Hi, sudo mopidyctl local scan returns following:

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.3.0
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: alsamixer, local, podcast, http, softwaremixer, stream, youtube, ytmusic, m3u, tunein, musicbox_webclient, file
INFO [MainThread] mopidy.main Disabled extensions: none
INFO [MainThread] mopidy_local.commands Finding files in file:///mnt/hdd/MVShared/Audio/iTunes/iTunesMedia …
INFO [MainThread] mopidy_local.commands Found 0 files in file:///mnt/hdd/MVShared/Audio/iTunes/iTunesMedia
WARNING [MainThread] mopidy_local.commands Encountered 1 errors while finding files in file:///mnt/hdd/MVShared/Audio/iTunes/iTunesMedia
WARNING [MainThread] mopidy_local.commands Error for file:///mnt/hdd/MVShared/Audio/iTunes/iTunesMedia: (‘Permission denied’, 13)
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 0 tracks which need to be updated
INFO [MainThread] mopidy_local.commands Scanning…
INFO [MainThread] mopidy_local.commands Scanned 0 of 0 files in 0.000s.
INFO [MainThread] mopidy_local.commands Done scanning
INFO [MainThread] mopidy_local.storage Cleaning up image directory

There is one mp3 file in the /iTunesMedia directory. I have following permissions set:

-rwxrwxrwx+ 1 mopidy audio 16501555 Sep 17 2017 ‘01 New World Symphony _ Adagio-Alleg.mp3’
drwxrwxrwx+ 3 mopidy audio 4096 Mar 24 2021 ‘7 navyku vysoce efektivnich lidi’
drwxrwxrwx+ 4 mopidy audio 4096 Mar 24 2021 ‘Abram Wilson’
drwxrwxrwx+ 3 mopidy audio 4096 Mar 24 2021 Aftertee

my config

[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 server=127.0.0.1
buffer_time =

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

[ytmusic]
enabled = true
auth_json =
auto_playlist_refresh = 60
youtube_player_refresh = 15
playlist_item_limit = 100
subscribed_artist_limit = 100
enable_history = true
enable_liked_songs = true
enable_mood_genre = true
enable_scrobbling = true
stream_preference =
141
251
140
250
249
verify_track_url = true

[youtube]
enabled = true
allow_cache =
youtube_api_key = XXXXXXXXXXXXXXXXXXXXXXXXXX
search_results = 30
playlist_max_videos = 20
api_enabled = false
channel_id =
musicapi_enabled = false
musicapi_cookie =
autoplay_enabled = true
strict_autoplay = true
max_autoplay_length = 600
max_degrees_of_separation = 3
youtube_dl_package = youtube_dl

[tunein]
enabled = true
timeout = 5000
filter =

[podcast]
enabled = true
browse_root = Podcasts.opml
browse_order = desc
lookup_order = asc
cache_size = 64
cache_ttl = 86400
timeout = 30

[musicbox_webclient]
enabled = true
musicbox = false
websocket_host =
websocket_port =
on_track_click = PLAY_ALL

[local]
enabled = true
max_search_results = 100
media_dir = /mnt/hdd/MVShared/Audio/iTunes/iTunesMedia
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
included_file_extensions =
excluded_file_extensions =
.cue
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
directories =
Albums local:directory?type=album
Artists local:directory?type=artist
Composers local:directory?type=artist&role=composer
Genres local:directory?type=genre
Performers local:directory?type=artist&role=performer
Release Years local:directory?type=date&format=%25Y
Tracks local:directory?type=track
Last Week’s Updates local:directory?max-age=604800
Last Month’s Updates local:directory?max-age=2592000
timeout = 10
use_artist_sortname = false
album_art_files =
*.jpg
*.jpeg
*.png

[alsamixer]
enabled = true
card = 0
control = Software
min_volume = 0
max_volume = 20
volume_scale = cubic

[file]
enabled = true
media_dirs =
/mnt/hdd/MVShared/Audio/iTunes/iTunesMedia
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 = 0.0.0.0
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

Can anyone help me please?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.