troubleshooting miniDLNA

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Feb 03, 2023 11:57    Post subject: troubleshooting miniDLNA Reply with quote
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
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sat Feb 04, 2023 14:47    Post subject: Re: troubleshooting miniDLNA Reply with quote
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? Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Wed Feb 08, 2023 19:19    Post subject: Reply with quote
@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.

Thanks
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12837
Location: Netherlands

PostPosted: Thu Feb 09, 2023 12:07    Post subject: Reply with quote
The exfat could be the problem, try with ext4
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
MaxiHP
DD-WRT Novice


Joined: 19 Apr 2019
Posts: 20

PostPosted: Thu Feb 09, 2023 15:20    Post subject: Reply with quote
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.
silveria
DD-WRT Novice


Joined: 13 Jan 2023
Posts: 32

PostPosted: Fri Feb 10, 2023 14:03    Post subject: Reply with quote
egc wrote:
The exfat could be the problem, try with ext4

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?
TCB13
DD-WRT User


Joined: 06 Jun 2010
Posts: 260
Location: Portugal

PostPosted: Wed Feb 22, 2023 13:19    Post subject: Reply with quote
Or... maybe MiniDLNA is broken in recent builds.

- https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1280417#1280417
- https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1280709#1280709
- https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1280585#1280585
- https://forum.dd-wrt.com/phpBB2/viewtopic.php?p=1279413#1279413

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.

Thank you.

_________________
1x Netgear R7800 (latest); 3x Netgear R7000 (latest); 2x Asus RT-N16 (v3.0-r47656); 2x Fonera 2100 (v3.0-r45454).
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum