Sorry, I’m posting from my phone, maybe that’s the problem.
Mopidy runs as root because this is how DietPi works, basically.
Here are the permissions of the folder:
root@OPiHome:~# l /mnt/dietpi_userdata/mopidy/data/
total 12
drwxrwxr-x 3 root root 4096 Mar 15 20:03 deezer
drwxrwxr-x 2 root root 4096 Aug 7 19:06 local
drwxrwxr-x 2 root root 4096 Mar 15 18:33 local-images
Here is a reposting of the error, let’s see if it works:
ERROR [Errno 13] Permission denied: '/mnt/dietpi_userdata/mopidy/data/local/library.json.gz.fSFK1W'
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 134, in main
return args.command.run(args, proxied_config)
File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 167, in run
library.close()
File "/usr/lib/python2.7/dist-packages/mopidy/local/json.py", line 17, in close
'tracks': self._tracks.values()
File "/usr/lib/python2.7/dist-packages/mopidy/internal/storage.py", line 51, in dump
prefix=basename + '.', dir=directory, delete=False)
File "/usr/lib/python2.7/tempfile.py", line 462, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/mnt/dietpi_userdata/mopidy/data/local/library.json.gz.fSFK1W'
Traceback (most recent call last):
File "/usr/bin/mopidy", line 9, in <module>
load_entry_point('Mopidy==2.1.0', 'console_scripts', 'mopidy')()
File "/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 134, in main
return args.command.run(args, proxied_config)
File "/usr/lib/python2.7/dist-packages/mopidy/local/commands.py", line 167, in run
library.close()
File "/usr/lib/python2.7/dist-packages/mopidy/local/json.py", line 17, in close
'tracks': self._tracks.values()
File "/usr/lib/python2.7/dist-packages/mopidy/internal/storage.py", line 51, in dump
prefix=basename + '.', dir=directory, delete=False)
File "/usr/lib/python2.7/tempfile.py", line 462, in NamedTemporaryFile (fd, name) = _mkstemp_inner(dir, prefix, suffix, flags)
File "/usr/lib/python2.7/tempfile.py", line 239, in _mkstemp_inner
fd = _os.open(file, flags, 0600)
OSError: [Errno 13] Permission denied: '/mnt/dietpi_userdata/mopidy/data/local/library.json.gz.fSFK1W'
Thanks