I'm running a RPi as a DLNA server. MiniDLNA is set to run from boot with the command minidlnad -r
inside of /etc/rc.local, and when I want to add new files to it, I shutdown this Pi gracefully using a poweroff command, take the drive out, add new files through a PC, plug it back in, and then expect the server to pick those new files up (since it's running with -r
as its flag).
My problem is that whenever I add a folder with new files inside of the media_dir that I've set (for example /mediadir/newfolder/newfile) MiniDLNA will pick up the new folder and show it up, but not the files inside. the log only says:
[2017/11/18 09:13:23] minidlna.c:1060: warn: Starting MiniDLNA version 1.2.1. [2017/11/18 09:13:23] minidlna.c:1101: warn: HTTP listening on port 8200 [2017/11/18 09:14:49] playlist.c:135: warn: Parsing playlists... [2017/11/18 09:14:49] playlist.c:269: warn: Finished parsing playlists.
And nothing particularly apparent.
And no, I cannot use -R because the USB speed is heavily bottlenecked on this machine and it will take from 1 to 2 hours to finish! I've already spent countless hours between rescans because of this.
Can I get this to somehow pick up new files inside new folders after booting?
Thanks in advance.
One thing I've noticed is that if I make a folder and then send a file to it through FTP (miniDLNA running with -r through the whole process), then it will pick up both the file and the folder, it only fails when I run a shutdown in between the adding up of the new files.
Most problems are related to file permissions and/or system init problems.
Run in debug mode. Use minidlna without any startup/init scripts. Perform the poweroff file copy, verify usb device is online and file permissions are correct, and then run in debug mode with -d -r options.