amahi-dlna parser crash

User avatar
smystaki
Posts: 7
Joined: Mon May 10, 2010 6:37 am

amahi-dlna parser crash

Postby smystaki » Sat Mar 24, 2012 4:07 pm

Last month I had to deal with a strange issue. After a system restart only part of my dlna shared files was available to the clients.
Amahi-dlna log file in /tmp/minidlna didn't help that much.
I modified a bit amahi-dlna in /etc/rc.d/init.d adding an option to start dlna server in debug mode.

Code: Select all

startdeb() { # Check that networking is configured. [ ${NETWORKING} = "no" ] && exit 1 if [ -f $LOCKFILE ]; then return 0 fi echo -n $"Starting Amahi DLNA Server in debug mode ... " $DLNA_BIN -d -R -f $DLNA_CONF RETVAL=$? if [ $RETVAL = 0 ]; then touch $LOCKFILE pidof $DAEMON > $PIDFILE success $"$base startup" else failure $"$base startup" fi echo return $RETVAL }
Restarting amahi-dlna in debug mode it was possible to find out the last folder that scanned without problems.
I supposed next one is creating the problems.
So I added one line in /var/hda/apps/dlna/amahi.conf

Code: Select all

media_dir=A,/var/hda/files/testdlna

just before all other.
testdlna is just an empty folder.
By moving the folder suspected outside the dlna folders set the problem disapeared.

By moving one by one the files in /var/hda/files/testdlna end restarting amahi-dlna it was possible to locate the file that created the problem.

Last think to do is to understand the reason but... maybe some other time.

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: amahi-dlna parser crash

Postby bigfoot65 » Sun Mar 25, 2012 4:51 pm

Good stuff. Would you mind adding this to the wiki? There is an Amahi DLNA page already. We would greatly appreciate it.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 28 guests