events stopped being recorded!

Support and queries relating to all previous versions of ZoneMinder
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

events stopped being recorded!

Post by alexl »

I didn't change any settings, but suddenly events stopped being
recognized and recorded!
On both cameras!
Please help.
Alex
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post 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...
Rick Hewett
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post by alexl »

Can it be the memory issue?
Currently I have 128 Meg running Fedora core3.
Alex
User avatar
lazyleopard
Posts: 403
Joined: Tue Mar 02, 2004 6:12 pm
Location: Gloucestershire, UK

Post 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.
Rick Hewett
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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.
ekiboy69
Posts: 101
Joined: Tue Jun 22, 2004 9:26 pm
Location: Kaarina-Finland

Buy more RAM

Post 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.
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post by alexl »

I tried rebooting - but problem syill remains.
Will get more memory today.
Regards, Alex
alexl
Posts: 57
Joined: Fri Jan 28, 2005 11:21 pm

Post 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
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
Locked