I had minidlna working just fine - but today after updating to minidlna 1.1.5-1 I can't access my media files now where they were fine before.
There is a note in the pacman log to:
$this->bbcode_second_pass_code('', '
[2015-09-21 20:14] [ALPM-SCRIPTLET] -- minidlna uses minidlna/minidlna user/group now,
[2015-09-21 20:14] [ALPM-SCRIPTLET] -- needs manual intervention in /var/cache/minidlna and /run/minidlna!
')
$this->bbcode_second_pass_code('', '
# ls -l /var/cache/minidlna/
total 76
-rw-r--r-- 1 minidlna minidlna 77824 Sep 21 21:21 files.db
')
and
$this->bbcode_second_pass_code('', '
# ls -l /run/minidlna
total 4
-rw-r--r-- 1 minidlna minidlna 4 Sep 21 21:21 minidlna.pid
')
The media files are in my user home area - and I was running as user mike, but switched back to user minidlna - and the systemd unit fails to start giving:
$this->bbcode_second_pass_code('', '
Sep 21 21:21:14 cubox1 systemd[1]: Started minidlna server.
Sep 21 21:21:14 cubox1 minidlnad[800]: [2015/09/21 21:21:14] minidlna.c:614: error: Media directory "A,/home/mike/Music/" not accessible [Permission denied]
Sep 21 21:21:14 cubox1 minidlnad[800]: [2015/09/21 21:21:14] minidlna.c:614: error: Media directory "P,/home/mike/Pictures/" not accessible [Permission denied]
Sep 21 21:21:14 cubox1 minidlnad[800]: [2015/09/21 21:21:14] minidlna.c:614: error: Media directory "V,/home/mike/Videos/" not accessible [Permission denied]
Sep 21 21:21:14 cubox1 minidlnad[800]: minidlna.c:1030: warn: Starting MiniDLNA version 1.1.5.
Sep 21 21:21:14 cubox1 minidlnad[800]: minidlna.c:1070: warn: HTTP listening on port 8200
')
I also changed the systemd unit file as per:
$this->bbcode_second_pass_code('', '
# cat /etc/systemd/system/minidlna.service
[Unit]
Description=minidlna server
After=network.target
[Service]
Type=simple
User=minidlna
Group=minidlna
ExecStart=/usr/bin/minidlnad -S
ProtectSystem=full
ProtectHome=read-only
PrivateDevices=on
NoNewPrivileges=on
[Install]
WantedBy=multi-user.target
')
so that ProtectHome is set to read-only
Can anyone suggest what I am doing wrong now after this newest update?