Package: mopidy
Version: 2.0.0-1
Severity: serious

If /var/cache/mopidy is lost (e.g. because /var/cache is a tmpfs),
mopidy fails to start. However, the FHS specifies that files in
/var/cache must not be relied upon.

The problem here is that mopidy tries to create the directory but
fails due to permissions. Either the directory needs to be created
by systemd, or another location used as a fallback (e.g. /run).

● mopidy.service - Mopidy music server
   Loaded: loaded (/lib/systemd/system/mopidy.service; enabled; vendor preset: 
enabled)
   Active: failed (Result: exit-code) since Thu 2016-03-24 14:49:15 CET; 8s ago
  Process: 21065 ExecStart=/usr/bin/mopidy --config 
/usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf (code=exited
 Main PID: 21065 (code=exited, status=1/FAILURE)

Mar 24 14:49:15 albatross mopidy[21065]:   File 
"/usr/lib/python2.7/dist-packages/mopidy/__main__.py", line 147, 
Mar 24 14:49:15 albatross mopidy[21065]:     
path.get_or_create_dir(config['core']['cache_dir'])
Mar 24 14:49:15 albatross mopidy[21065]:   File 
"/usr/lib/python2.7/dist-packages/mopidy/internal/path.py", line 
Mar 24 14:49:15 albatross mopidy[21065]:     os.makedirs(dir_path, 0o755)
Mar 24 14:49:15 albatross mopidy[21065]:   File "/usr/lib/python2.7/os.py", 
line 157, in makedirs
Mar 24 14:49:15 albatross mopidy[21065]:     mkdir(name, mode)
Mar 24 14:49:15 albatross mopidy[21065]: OSError: [Errno 13] Permission denied: 
'/var/cache/mopidy'
Mar 24 14:49:15 albatross systemd[1]: mopidy.service: Main process exited, 
code=exited, status=1/FAILURE
Mar 24 14:49:15 albatross systemd[1]: mopidy.service: Unit entered failed state.
Mar 24 14:49:15 albatross systemd[1]: mopidy.service: Failed with result 
'exit-code'.

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.4.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_NZ, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages mopidy depends on:
ii  adduser                      3.114
ii  debconf [debconf-2.0]        1.5.59
ii  gir1.2-gst-plugins-base-1.0  1.6.3-1
ii  gir1.2-gstreamer-1.0         1.6.3-1
ii  gstreamer1.0-plugins-good    1.6.3-1
ii  gstreamer1.0-plugins-ugly    1.6.3-1
ii  init-system-helpers          1.29
ii  lsb-base                     9.20160110
ii  python-gst-1.0               1.6.2-1+b1
ii  python-pkg-resources         20.3.1-1
ii  python-pykka                 1.2.1-2
ii  python-requests              2.9.1-3
ii  python-tornado               4.2.1-1+b2
pn  python:any                   <none>

Versions of packages mopidy recommends:
pn  gstreamer1.0-alsa        <none>
ii  gstreamer1.0-pulseaudio  1.6.3-1
ii  gstreamer1.0-tools       1.6.3-1

Versions of packages mopidy suggests:
pn  mopidy-doc  <none>

-- Configuration Files:
/etc/mopidy/mopidy.conf [Errno 13] Permission denied: u'/etc/mopidy/mopidy.conf'

-- debconf-show failed


-- 
 .''`.   martin f. krafft <madduck@d.o> @martinkrafft
: :'  :  proud Debian developer
`. `'`   http://people.debian.org/~madduck
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/sig-policy/999bbcc4/current)

Reply via email to