Page 1 of 1

amahi-dlna dead but pid file exists

Posted: Tue Jul 05, 2011 10:45 am
by peaeater
Spot of bother. Amahi DLNA installed and running most of the time, but service stops every couple of days for reasons unknown and can only be restarted from the command line (not the HDA dashboard). The minidlna.log does not show anything that might explain it. I have not tried rebooting.

I've read all threads on the forum that have anything to do with DLNA but none seem to speak to this particular issue.

Here's what things look like right now after the amahi-dlna service died again.

version:

Code: Select all

rpm -q amahi-dlna amahi-dlna-0.92.2.-1.x86_64
service state:

Code: Select all

service --status-all ... amahi-dlna dead but pid file exists ...
/tmp/minidlna/minidlna.log (current date 2011/07/05):

Code: Select all

[2011/07/03 20:55:56] minidlna.c:739: warn: Starting MiniDLNA version 1.0.18.2 [SQLite 3.6.23.1]. [2011/07/03 20:55:56] minidlna.c:762: warn: Creating new database... [2011/07/03 20:55:56] scanner.c:724: warn: Scanning /var/hda/files/music [2011/07/03 20:55:56] minidlna.c:827: warn: HTTP listening on port 8200 [2011/07/03 20:56:09] tagutils/tagutils-mp3.c:678: error: Could not read frame header: /var/hda/files/music/Audio Books/Divine Secrets Of The Ya-Ya Sisterhood/Divine Secrets Of The Ya-Ya Sisterhood (/Sidda And Connor.mp3 [2011/07/03 21:06:46] tagutils/tagutils-wav.c:148: warn: Invalid wav header in /var/hda/files/music/Unknown Artist/Unknown Album/P-51FlyBy.wav [2011/07/03 21:08:07] scanner.c:792: warn: Scanning /var/hda/files/music finished (12784 files)! [2011/07/03 21:08:07] scanner.c:724: warn: Scanning /var/hda/files/movies [2011/07/03 21:13:43] scanner.c:792: warn: Scanning /var/hda/files/movies finished (13957 files)! [2011/07/03 21:13:44] scanner.c:724: warn: Scanning /var/hda/files/pictures [2011/07/03 21:20:43] scanner.c:792: warn: Scanning /var/hda/files/pictures finished (25527 files)! [2011/07/03 21:23:36] inotify.c:89: error: inotify_add_watch(/var/hda/files/movies/School/Macbeth (2010)) [No such file or directory] [ptyrrell@Seaglass ~]$
Any suggestions on where to find error details, debug info, or steps to fix? Thanks for any help.

Re: amahi-dlna dead but pid file exists

Posted: Tue Jul 05, 2011 2:35 pm
by radioz
Well, in general log files are found in /var/log so you could look there.
Take a look at /var/log/messages. It might have something.

Sorry, I haven't used minidlna.

Re: amahi-dlna dead but pid file exists

Posted: Thu Jul 07, 2011 8:42 am
by peaeater
Thanks for the /var/log/messages direction. Here is the relevant bit from that log, which (I now note) occurs exactly the same way each time amahi-dlna goes down:

Code: Select all

Jul 3 19:34:34 Seaglass kernel: [1304241.414594] amahi-dlna[2832]: segfault at 0 ip 000000315792aa5c sp 00007ffff32e9e58 error 4 in libc-2.13.so[3157800000+191000] Jul 3 19:34:35 Seaglass abrt[3921]: saved core dump of pid 2832 (/usr/bin/amahi-dlna) to /var/spool/abrt/ccpp-1309746874-2832.new/coredump (69865472 bytes) Jul 3 19:34:35 Seaglass abrtd: Directory 'ccpp-1309746874-2832' creation detected Jul 3 19:34:35 Seaglass abrtd: Package 'amahi-dlna' isn't signed with proper key Jul 3 19:34:35 Seaglass abrtd: Corrupted or bad crash /var/spool/abrt/ccpp-1309746874-2832 (res:5), deleting ... Jul 5 10:19:12 Seaglass kernel: [1443720.174057] amahi-dlna[12259]: segfault at 0 ip 000000315792aa5c sp 00007fff54e0d298 error 4 in libc-2.13.so[3157800000+191000] Jul 5 10:19:13 Seaglass abrt[4959]: saved core dump of pid 12259 (/usr/bin/amahi-dlna) to /var/spool/abrt/ccpp-1309886353-12259.new/coredump (56942592 bytes) Jul 5 10:19:13 Seaglass abrtd: Directory 'ccpp-1309886353-12259' creation detected Jul 5 10:19:14 Seaglass abrtd: Package 'amahi-dlna' isn't signed with proper key Jul 5 10:19:14 Seaglass abrtd: Corrupted or bad crash /var/spool/abrt/ccpp-1309886353-12259 (res:5), deleting
That seems kinda... serious. I rebooted between the Jul 3 and Jul 5 incidents, so that's not part of the equation. Would a DLNA reinstall help?

Re: amahi-dlna dead but pid file exists

Posted: Thu Jul 07, 2011 2:28 pm
by radioz
Well, obviously miniDlna crashed. Question is why?

Your first log file suggests that maybe there is a problem with a couple of files:
/var/hda/files/music/Audio Books/Divine Secrets Of The Ya-Ya Sisterhood/Divine Secrets Of The Ya-Ya Sisterhood (/Sidda And Connor.mp3
/var/hda/files/music/Unknown Artist/Unknown Album/P-51FlyBy.wav

Could you try accessing these files to see if they are ok?

Try playing them in a music player perhaps.

Its not clear if it crashed because of corrupt files or for some other problem.

Re: amahi-dlna dead but pid file exists

Posted: Mon Jul 11, 2011 10:16 am
by peaeater
Just to report: I deleted the two problem files listed in /tmp/minidlna/minidlna.log a few days ago. No problems with DLNA service since.

Re: amahi-dlna dead but pid file exists

Posted: Mon Jul 11, 2011 11:54 am
by radioz
I'm glad you figured it out!