Page 1 of 2

events stopped being recorded!

Posted: Thu Jun 30, 2005 5:19 pm
by alexl
I didn't change any settings, but suddenly events stopped being
recognized and recorded!
On both cameras!
Please help.
Alex

Posted: Thu Jun 30, 2005 5:36 pm
by cordel
Hi Alex,
Sorry but we're going to need alot more information. Please check your logs and snip anything that looks related. Also an idea of your setup ( Please see Sticky: PLEASE READ BEFORE POSTING!!!)
Cheers,
Cordel

Posted: Thu Jun 30, 2005 7:32 pm
by alexl
I looked at /var/log/zm but couldn't find anything related to the problem.
Its a setup with 4 - channel dvr card.
I have a perfect video on at least 2 channels, but its not generating events any more.
Which logs should I look at?
Alex

Posted: Thu Jun 30, 2005 10:19 pm
by lazyleopard
Check your filesystem still has space.
Check /var/log/messages (or syslog, daemon.log, kern.log, or wherever).
Check wherever you've put the zm log files.
Check the zm web-console...

Posted: Thu Jun 30, 2005 10:48 pm
by alexl
Checked /var/log/messages!
Says
Jun 28 13:44:`3 zoneminder zmc_d0[5196:
:WAR [Buffer overrun at index 17]
This can be the problem..?
Alex

Posted: Fri Jul 01, 2005 4:50 pm
by alexl
Can it be the memory issue?
Currently I have 128 Meg running Fedora core3.
Alex

Posted: Fri Jul 01, 2005 5:10 pm
by lazyleopard
They're both possibilities, but it's hard to guess from the information you've given. I suspect the overrun suggests that your (shared-memory) buffers aren't quite large enough.

Presumably you've tried stopping and re-starting the zoneminder daemons?

Which zoneminder processes are running? (Try "ps auxw | grep zm" as a quick check. Also, using the "top" command might tell you something.) What's your memory usage like? ("top" will tell you). You have checked that there's space in your file systems (use "df -k" or similar).

I think there should be one zmc process for each video device, one zma process for each monitor, and one each of zmfilter.pl, zmaudit.pl, zmwatch.pl, zmtrigger.pl, and a perl process running zmdc.pl.

Posted: Fri Jul 01, 2005 5:25 pm
by cordel
Alex, You might try a full reboot if you haven't already just in case something has the memory tied up. But try what lazy said and post the results first.

Buy more RAM

Posted: Sat Jul 02, 2005 8:47 am
by ekiboy69
alexl wrote:Can it be the memory issue?
Currently I have 128 Meg running Fedora core3.
Alex
Buy more memory! I am doing B/W 358x288 pixels at 20 fps and I can barely manage with a 1 GHz Athlon and 512 Mb of RAM.

Posted: Mon Jul 04, 2005 3:00 pm
by alexl
I dhecked processes for Zm.
This is what comes up:
apache 4733 0.0 1.0 9500 1304? s 10:36 0:00 /usr/bin/perl -wT
/usr/lib/zm/bin/zmdc.pl status
apache 4755 6.9 44.4 132728 56128? s 10:36 0:24 /usr/lib/zm/bin/z
mc -d 0
apache 4760 0.7 5.3 99996 6792? s 10:36 0:02 /usr/lib/zm/bin/z
ma -m 1
apache 4768 3.2 9.6 105526 12180? s 10:36 0:10 /usr/lib/zm/bin/z
ma m 2
apache 4776 3.1 9.3 104636 11868? s 10:36 0:10 /usr/lib/zm/bin/z
ma -m 3
apache 4784 3.1 9.3 104568 11868? s 10:36 0:10 /usr/lib/zm/bin/z
ma -m 4
apache 4789 0.5 1.7 17080 2224? s 10:36 0:01 /usr/bin/perl -wT
apache 4794 0.1 0.8 9204 1096? s 10:36 0:00 /usr/bin/perl -wT
apache 4811 0.1 1.4 9540 1780? s 10:37 0:00 /usr/bin/perl -wT

Posted: Mon Jul 04, 2005 3:06 pm
by alexl
Used "top" command.
This is what's comes up:
Tasks: 94 total, 1 running, 93 sleeping, 0 stopped 0 zombie
Cpu: 19.9% us, 1.08% sy, 0.0% ni, 78.8% id, 1 % wa 0.0 % hi, 0.0% si
Mem: 126288k total, 123004k used, 3284 free, 2056 buffers
Swap: 262136k total, 78808k used, 183328k free, 55576 cached

Alex

Posted: Mon Jul 04, 2005 3:11 pm
by alexl
Used "df -k"
./dev/mapper/VolGroup00-LogVo100
5773248 3011896 2468080 55% /

/dev/hda1 101086 9024 86843 10% /boot
none 63144 0 63144 0% /dev/shm




Alex

Posted: Mon Jul 04, 2005 3:13 pm
by alexl
I tried rebooting - but problem syill remains.
Will get more memory today.
Regards, Alex

Posted: Mon Jul 04, 2005 5:23 pm
by alexl
Another misfortune:
When tried to delete events, got an error:
Incorrect key file for table:'Events". Try to repair it.
May be this is the part of the problem?
Alex

Posted: Mon Jul 04, 2005 5:39 pm
by cordel
Hi Alex,
Sounds like you may need to repair your database. The database might get corrupted if the machine loses power or anything that would not allow services to properly shutdown or disconnect from the database.
try running this.
mysqlcheck --all-databases --auto-repair -u root -p
Regards,
Cordel