Posted: Fri Feb 03, 2023 11:57 Post subject: troubleshooting miniDLNA
I've got DIR-868L with Firmware: DD-WRT v3.0-r51288 std (01/12/23) Have an external 1 TB HDD plugged into the USB port with 4 partitions (/opt, /jffs/, /swap and data), the data partition is formatted as exFAT. It has 724 video files on that drive which were scanned properly by miniDLNA and accessible through my TVs. Then I decided to enable the torrent client Transmission and use it to download video files directly on the data drive. This part worked great, the file is downloaded successfully and is available via Samba share. However I cannot for the life of me get miniDLNA to scan these new files. When I clean the database, it re-scans but it only re-scans the old videos, never the newly downloaded files. How can I troubleshoot this?
1) Cleaned the DB multiple times, didn't help. Tried both from the UI and from telnet by manually deleting it.
2) I have attached the HDD directly to a Windows PC and it does not detect any issues with the drive or partition.
3) I've enabled logging on miniDLNA via custom .conf file and it does not create a log file
4) I've checked the file permissions of these new files via telnet and they are the same as the other ones.
5) The status page for miniDLNA at http://192.168.1.1:8200/ shows neverending* Media scan in progress and besides the 724 video files, it shows a single image file, but there are no image files on that drive!
Any help greatly appreciated!
Last edited by silveria on Wed Feb 08, 2023 19:21; edited 1 time in total
Joined: 26 Mar 2013 Posts: 1858 Location: Hung Hom, Hong Kong
Posted: Sat Feb 04, 2023 14:47 Post subject: Re: troubleshooting miniDLNA
silveria wrote:
I've got DIR-868L with Firmware: DD-WRT v3.0-r51288 std (01/12/23) ....
1) I have attached the HDD directly to a Windows PC and it does not detect any issues with the drive or partition.
2) I've enabled logging on miniDLNA via custom .conf file and it does not create a log file
3) I've checked the file permissions of these new files via telnet and they are the same as the other ones.
4) The status page for miniDLNA at http://192.168.1.1:8200/ shows neverending* Media scan in progress and besides the 724 video files, it shows a single image file, but there are no image files on that drive!
Possibly related to the NTFS file system support in DD-WRT? You might have less problem(s) using ext3 file system.
Also, router processors are slow to do heavy read-writes (like scanning media files by MiniDLNA). It's USB.
You might wanna try clearing MiniDLNA's cache files manually by first disabling MiniDLNA, then enable MiniDLNA and do the scan again? _________________ Router: Asus RT-N18U (rev. A1)
Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!
@mwchang Clearing the DB multiple times and did not help, forgot to include it in my original post. I would update it after this reply. I am using exFat, I do not want to run ext on the external hdd due to need to read/write the data partition from Windows machines.
just a comment on the Windows - ext4 issue I use DiskGenius on my Windows machine can do most anything using this software for all my "non windows" drives. I would think Putty could also be software that could be used.
I've switched to exfat from advice from you when I hit issue with NTFS file system being with picky driver and marking it as "dirty". So to sum up, this linux firmware can work without problems only with linux file system.
@MaxiHP - which of the many products they have is similar to explorer and can be used to access those drives through network share?
All those are recent posts on different architectures complaining about similar problems with MiniDLNA. I'm not using it in my devices but I've also got a friend complaining about issues on a R7800. It never detects a file, cleans and rebuilds don't seem to help, ext4 drive that worked previously, probably with some build from November 2022.
He tried to install MiniDLNA from entware/opkg just to test it out and it seems to work better than the built in one - still unable to detect new files but when he deletes the DB manually and restarts the service it seems to be able to detect all the files.
Since two different versions seem to be affected by this maybe there's some issue with inotify in DD-WRT? I'm assuming it uses inotify to detect new files.