# Sudo mopidyctl local scan Permission denied 13 error

**URL:** <https://discourse.mopidy.com/t/sudo-mopidyctl-local-scan-permission-denied-13-error/5571>\
**Category:** Misc\
**Created:** [October 2, 2022, 11:48am UTC](https://discourse.mopidy.com/t/sudo-mopidyctl-local-scan-permission-denied-13-error/5571 "2022-10-02T11:48:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikka123T](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/mikka123t/32/1742_2.png) [@Mikka123T](https://discourse.mopidy.com/u/Mikka123T)\
**Post date:** [October 2, 2022, 11:48am UTC](https://discourse.mopidy.com/t/sudo-mopidyctl-local-scan-permission-denied-13-error/5571/1 "2022-10-02T11:48:52Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/system/32/1_2.png) [@system](https://discourse.mopidy.com/u/system)\
**Post date:** [April 2, 2023, 11:49pm UTC](https://discourse.mopidy.com/t/sudo-mopidyctl-local-scan-permission-denied-13-error/5571/2 "2023-04-02T23:49:36Z")

</div>

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