Minidlna doesn't share files after restart

For some reason, after the router is restarted, the minidlna service won’t serve its content. This started to occur months ago.

The service is started:

root@turris:~# ps | grep minidlna
 2662 root     20876 S    /usr/bin/minidlna -f /tmp/minidlna.conf

However, no content is served:

If I restart the minidlna service, the content is re-indexed and served:

How do I fix this?

Hi, I have a similar problem (or maybe the same) -> after some time (I am not sure if it is after restart, or ocurrs randomly, since I am not using DLNA on daily basis), it stops showing files… I need to force rescan, after that, everything works Ok again for few days…

Hello,

Would you please look at /var/log/messages, if there’s something related, why it doesn’t show you any files?

root@turris:/tmp/log# ls -al
drwx------    4 root     root            80 Jun 28 18:43 cores/
drwxr-xr-x    2 root     root            40 Jun 28 18:46 ddns/
-rw-r--r--    1 root     root             0 Jun 28 18:43 lastlog
drwxr-xr-x    2 root     root            60 Jun 28 18:43 lighttpd/
-rw-r--r--    1 root     root             0 Jun 28 18:43 log.nmbd
-rw-r--r--    1 root     root             0 Jun 28 18:43 log.smbd
-rw-------    1 root     root        807199 Jul 10 11:45 messages
-rw-------    1 root     root       1056511 Jul  7 18:12 messages.1
-rw-------    1 root     root         78596 Jul  3 21:12 messages.2.gz
-rw-------    1 root     root         84183 Jul  1 03:12 messages.3.gz
-rw-r--r--    1 root     root           982 Jun 30 22:29 minidlna.log

‘minidlna’ text not found in messages or messages.1:

# cat /var/log/messages | grep -i minidlna

Contents of minidlna.log:

root@turris:/tmp/log# cat minidlna.log 
[2018/06/28 18:43:31] minidlna.c:1030: warn: Starting MiniDLNA version 1.1.5.
[2018/06/28 18:43:31] minidlna.c:355: warn: Creating new database at /tmp/run/minidlna/files.db
[2018/06/28 18:43:31] minidlna.c:1070: warn: HTTP listening on port 8200
[2018/06/28 18:43:31] playlist.c:125: warn: Parsing playlists...
[2018/06/28 18:43:31] playlist.c:259: warn: Finished parsing playlists.
[2018/06/29 08:47:29] minidlna.c:154: warn: received signal 15, good-bye
[2018/06/29 08:47:39] minidlna.c:1030: warn: Starting MiniDLNA version 1.1.5.
[2018/06/29 08:47:39] minidlna.c:357: warn: New media_dir detected; rescanning...
[2018/06/29 08:47:39] minidlna.c:1070: warn: HTTP listening on port 8200
[2018/06/29 08:48:19] playlist.c:125: warn: Parsing playlists...
[2018/06/29 08:48:19] playlist.c:259: warn: Finished parsing playlists.
[2018/06/30 21:32:02] upnphttp.c:1052: warn: HTTP Connection closed unexpectedly
[2018/06/30 22:29:02] upnphttp.c:1948: warn: Specified range was invalid!

Contents of minidlna config:

# cat /etc/config/minidlna

config minidlna 'config'
	option port '8200'
	option interface 'br-lan'
	option db_dir '/var/run/minidlna'
	option log_dir '/var/log'
	option inotify '1'
	option notify_interval '900'
	option serial '12345678'
	option model_number '1'
	option root_container '.'
	option album_art_names 'Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg'
	option friendly_name 'Turris'
	list media_dir 'V,/mnt/raid/Media/Movies'
	list media_dir 'P,/mnt/raid/Media/Pictures'
	list media_dir 'V,/mnt/raid/Media/Series'
	list media_dir 'V,/mnt/raid/Media/Videos'
	list media_dir 'A,/mnt/raid/Media/Music'
	option enabled '1'