# It seems like /root/.config/mopidy/mopidy.conf doesn't exist. But it does

**URL:** https://discourse.mopidy.com/t/it-seems-like-root-config-mopidy-mopidy-conf-doesnt-exist-but-it-does/1943
**Category:** Misc
**Created:** [October 7, 2017, 8:45pm UTC](https://discourse.mopidy.com/t/it-seems-like-root-config-mopidy-mopidy-conf-doesnt-exist-but-it-does/1943 "2017-10-07T20:45:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GabrielM120](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@GabrielM120](https://discourse.mopidy.com/u/GabrielM120)
#### Post date: [October 7, 2017, 8:45pm UTC](https://discourse.mopidy.com/t/it-seems-like-root-config-mopidy-mopidy-conf-doesnt-exist-but-it-does/1943/1 "2017-10-07T20:45:24Z")

</div>

When I do: “mopidy config” or “mopidy” or “mopidy local scan” it says:

WARNING Unable to initialize /root/.config/mopidy/mopidy.conf with default config: [Errno 5] Input/output error: ‘/root/.config/mopidy/mopidy.conf’  
[core]  
cache\_dir = $XDG\_CACHE\_DIR/mopidy  
config\_dir = $XDG\_CONFIG\_DIR/mopidy  
data\_dir = $XDG\_DATA\_DIR/mopidy  
max\_tracklist\_length = 10000  
restore\_state = false

[logging]  
color = true  
console\_format = %(levelname)-8s %(message)s  
debug\_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s  
debug\_file = mopidy.log  
config\_file =

[audio]  
mixer = software  
mixer\_volume =  
output = autoaudiosink  
buffer\_time =

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

[mpd]  
enabled = true  
hostname = 127.0.0.1  
port = 6600  
password =  
max\_connections = 20  
connection\_timeout = 60  
zeroconf = Mopidy MPD server on $hostname  
command\_blacklist =  
listall  
listallinfo  
default\_playlist\_scheme = m3u

[http]  
enabled = true  
hostname = 127.0.0.1  
port = 6680  
static\_dir =  
zeroconf = Mopidy HTTP server on $hostname

[stream]  
enabled = true  
protocols =  
http  
https  
mms  
rtmp  
rtmps  
rtsp  
metadata\_blacklist =  
timeout = 5000

[m3u]  
enabled = false ; Extension disabled due to config errors.  
base\_dir = ; ‘ascii’ codec can’t encode character u’\xfa’ in position 7: ordinal not in range(128)  
default\_encoding = latin-1  
default\_extension = .m3u8  
playlists\_dir =

[softwaremixer]  
enabled = true

[file]  
enabled = true  
media\_dirs =  
$XDG\_MUSIC\_DIR|Music  
~/|Home  
excluded\_file\_extensions =  
.jpg  
.jpeg  
show\_dotfiles = false  
follow\_symlinks = false  
metadata\_timeout = 1000

[local]  
enabled = false ; Extension disabled due to config errors.  
library = json  
media\_dir = ; ‘ascii’ codec can’t encode character u’\xfa’ in position 7: ordinal not in range(128)  
scan\_timeout = 1000  
scan\_flush\_threshold = 100  
scan\_follow\_symlinks = false  
excluded\_file\_extensions =  
.directory  
.html  
.jpeg  
.jpg  
.log  
.nfo  
.png  
.txt

[local-sqlite]  
enabled = true  
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\_album\_mbid\_uri = true  
use\_artist\_mbid\_uri = false  
use\_artist\_sortname = false

[local-images]  
enabled = true  
library = json  
base\_uri = /images/  
image\_dir =  
album\_art\_files =  
\*.jpg  
\*.jpeg  
\*.png

[iris]  
enabled = true  
country = NZ  
locale = en\_NZ  
authorization\_url = [https://jamesbarnsley.co.nz/auth\_v2.php](https://jamesbarnsley.co.nz/auth_v2.php)

[spotify]  
enabled = false ; Extension disabled due to config errors.  
username = ; Must be set.  
password = ; Must be set.  
client\_id = ; Must be set.  
client\_secret = ; Must be set.  
bitrate = 160  
volume\_normalization = true  
private\_session = false  
timeout = 10  
allow\_cache = true  
allow\_network = true  
allow\_playlists = true  
search\_album\_count = 20  
search\_artist\_count = 10  
search\_track\_count = 50  
toplist\_countries =

But I have “mopidy.conf” with all the configurations.

And when I try to do the:

ls -l ~/.config/mopidy/mopidy.conf  
ls: no se puede acceder a /root/.config/mopidy/mopidy.conf: No existe el archivo o el directorio

It seems like it doesn’t exist.

I don’t know what to do. Please, help me. Sorry for my bad english

---

<div class="post-metadata">

### Author: ![GabrielM120](https://avatars.discourse-cdn.com/v4/letter/g/9dc877/32.png) [@GabrielM120](https://discourse.mopidy.com/u/GabrielM120)
#### Post date: [October 12, 2017, 8:59am UTC](https://discourse.mopidy.com/t/it-seems-like-root-config-mopidy-mopidy-conf-doesnt-exist-but-it-does/1943/2 "2017-10-12T08:59:06Z")

</div>

I am trying to use it in the bash console on windows 10. It used to work well, but I don’t know what I did. And I am using the root user because is the only one in the bash.

---

<div class="post-metadata">

### Author: ![kingosticks](https://avatars.discourse-cdn.com/v4/letter/k/858c86/32.png) [@kingosticks](https://discourse.mopidy.com/u/kingosticks)
#### Post date: [October 12, 2017, 9:01am UTC](https://discourse.mopidy.com/t/it-seems-like-root-config-mopidy-mopidy-conf-doesnt-exist-but-it-does/1943/3 "2017-10-12T09:01:58Z")

</div>

What system is mopidy installed on here? Obviously it’s not Ubuntu or something else modern as that would have the root user disabled by default.

Why do you say mopidy.conf exists if your filesystem is telling you it doesn’t?
