Posts: 1,538
Threads: 106
Joined: Mar 2018
Reputation:
73
Using a MoOde RPi as a DLNA server but have to rebuild the miniDLNA database every boot otherwise the clients (upplay>gmediarender) fail to find it.
Expected behaviour would be the database would be stored between boots or, if the DLNA renderer is set on then at the least the database should be rebuilt automatically at boot.
Having to manually set the rebuild each time is not useful.
----------
bob
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
I don't use it but I recall that miniDLNA sometimes would automatically rebuild after reboot. It may have to do with the fact that it's started before NAS source is mounted during moOde startup. Maybe it needs to have the source mounted before it starts??
One test would be to turn it off in UI before rebooting then turn on afterwords and see if it does an automatic rebuild.
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
Actually what I proposed won't work because when miniDLNA is stopped in UI its cache is also cleared which includes its database.
/var/cache/minidlna/
Posts: 13,450
Threads: 305
Joined: Mar 2018
Reputation:
545
My earlier post may have been a bit confusing but miniDLNA cache is only cleared by moOde as follows:
1. Turning it off in the UI
2. Clicking "REBUILD" miniDLNA database in UI
Otherwise moOde doesn't touch the DLNA cache and so if miniDLNA is left On the cache should be left alone after reboot. If it's not then it must be some code in monoDLNA itself thats automatically rebuilding the database when it starts after a reboot. Why I don't know.
Posts: 6,030
Threads: 177
Joined: Apr 2018
Reputation:
235
i note that /etc/init.d/minidlna includes '-r' (for rescan) as a flag in the startup of minidlnad.
In the comment header of the same file it makes the point that network, local filesystem and remote filesystem are all required for start.
Just sayin'
Regards,
Kent