I have Ubuntu 18.04 and I installed minidlna via snap because of the several dependencies that I don't otherwise need, and to avoid dependency hell.
I edited /var/snap/minidlna-escoand/19/minidlna.conf and I checked in the log file that everything goes well:
[2019/05/01 18:42:06] minidlna.c:1048: warn: Starting MiniDLNA version 1.2.1.
[2019/05/01 18:42:06] minidlna.c:1089: warn: HTTP listening on port 8200
However, I checked with VLC and no media is available.
The config file shows:
media_dir=/tank/media/Videos
media_dir=/tank/media/Music
media_dir=/tank/media/Photos
media_dir=/tank/home/olaf/Anime e manga
and the permissions are:
root@ml110g7:~# ps aux | grep minidlna
root ... minidlnad -f /var/snap/minidlna-escoand/19/minidlna.conf -P /var/snap/minidlna-escoand/common/minidlna.pid
root@ml110g7:~# ls -l /tank/media/
total 27
drwxrws--- 13 root music 14 Feb 27 23:22 Music
drwxrws--- 4 root photos 7 Feb 27 23:22 Photos
drwxrws--- 9 root videos 10 Feb 27 23:22 Videos
minidlnad runs as root, so why isn't it able to access the folders? one of the folders contains spaces (something that should pose no problem), but the other ones are simpler and no error is logged.
How can I debug the issue?
As explained in the
Ubuntu MiniDLNA
instructionsYou need to make sure that the problem is with
MediaDLNA
and notVLC
. The following guide explains how to access the files withVLC
.MiniDLNA uses
tcp
port8200
so you should be able to access the page athttp://localhost:8200
with your browser as explained in this installation guide. If you can access the files, then you misconfiguredvlc
.Opening
miniDLNA
content with your browser will help you understand if the issue is connected to VLC or MiniDLNA.Apparently the minidlna snap has known issues with media folders:
https://forum.snapcraft.io/t/minidlna/6318/9
The author hasn't solved the issue yet, therefore I cannot continue using that snap.