I've got a weird problem on an older ZM box. It's running 1.19.5 and is set to purge unarchived events when the disk free space is greater than 97%, limited to the first 100 matches and sorted by date/time in ascending order. All monitors record continually in 5 minute chunks. It's been running fine with this configuration since I installed it over a year ago. I noticed that today, two cameras (monitors 1 and 5) have 0 events for the hour, day, and week, but have 1700-1800 events for the month vs 12, 280, 2000, and 4200 events respectively.
I discovered the following in zmaudit.log:
Code: Select all
DBD::mysql::st execute failed: Got error 134 from table handler at /usr/local/bin/zmaudit.pl line 278.
Can't execute: Got error 134 from table handler at /usr/local/bin/zmaudit.pl line 278.
Found orphaned frame records for event 1792654, deleting.
This is repeating many, many, many times.
I looked in zmaudit.pl and line 278 is:
Code: Select all
$res = $sth5->execute( $frame->{EventId} ) or die( "Can't execute: ".$sth6->errstr() );
I'm guessing that an event won't delete and is blocking the process from continuing, but this is just a preliminary hypothesis. Has anybody encountered something like this in the before?
This message is made up of not less than 90% recycled electrons.