Page 1 of 1

amahi-dlna parser crash

Posted: Sat Mar 24, 2012 4:07 pm
by smystaki
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.

Re: amahi-dlna parser crash

Posted: Sun Mar 25, 2012 4:51 pm
by bigfoot65
Good stuff. Would you mind adding this to the wiki? There is an Amahi DLNA page already. We would greatly appreciate it.