amahi-dlna parser crash
Posted: 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.
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
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.
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
}
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.