Page 1 of 1

Events show 0.00 duration but images are being recorded.

Posted: Tue Oct 30, 2012 12:30 pm
by theforce
I upgraded my Ubuntu 10.04 yesterday and now my events are showing a 0.00 duration and no frames. I did a regular dist-upgrade. My cameras are setup as Modect. If I force an alarm I get a duration and can view the recording. On the 0.00 duration and no frame events I can look at the hard drive and view the images individually.

Does anyone know what is going on and how to fix it?

I'm in the process of testing out Kubuntu 12.04 and the new 1.25 zoneminder on another box. Would I be better off just upgrading instead of fixing this issue?

Re: Events show 0.00 duration but images are being recorded.

Posted: Wed Oct 31, 2012 8:51 am
by PacoLM
I will check the logs (usually /var/log/syslog), or the log that ZM provides.

Re: Events show 0.00 duration but images are being recorded.

Posted: Thu Nov 01, 2012 1:07 pm
by theforce
Lots of errors like this are in the log.

Nov 1 08:09:45 cameras zmc_m12[4566]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]

Re: Events show 0.00 duration but images are being recorded.

Posted: Thu Nov 01, 2012 5:27 pm
by PacoLM
If you are using a Foscam IP Cam or a clone, it's a know bug. Try to upgrade the FW of the camera.

Re: Events show 0.00 duration but images are being recorded.

Posted: Thu Nov 01, 2012 5:41 pm
by theforce
Its a clone and there are no updated firmware for them. I don't think this has anything to do with the issue I'm having sine from what I've read that error is just an error but things still work.

Why would it be working perfectly fine for over a year and a few days ago when I did a distribution update it stopped working? The images are being written to disk but inside zoneminder it shows a 0.00 duration and 0 frames for recorded events.

Re: Events show 0.00 duration but images are being recorded.

Posted: Fri Nov 02, 2012 9:07 pm
by theforce
Going through the log I found some different things.


Nov 2 16:59:46 cameras zma_m16[10249]: INF [Right-Door: 722 - Gone into prealarm state]
Nov 2 16:59:46 cameras zmc_m14[1687]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd9]
Nov 2 16:59:46 cameras zmc_m25[3589]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd9]
Nov 2 16:59:46 cameras zmc_m23[17046]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Nov 2 16:59:46 cameras zmc_m14[1687]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Nov 2 16:59:46 cameras zmc_m23[17046]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Nov 2 16:59:46 cameras zma_m16[10249]: INF [Right-Door: 724 - Gone into alarm state]
Nov 2 16:59:46 cameras zma_m16[10249]: INF [Right-Door: 724 - Opening new event 1434904, alarm start]
Nov 2 16:59:47 cameras zmc_m13[1674]: WAR [Corrupt JPEG data: 2 extraneous bytes before marker 0xd9]
Nov 2 16:59:47 cameras zmc_m12[31984]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Nov 2 16:59:47 cameras zmc_m9[32564]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]
Nov 2 16:59:47 cameras zma_m16[10249]: ERR [Can't insert event stats: Table './zm/Stats' is marked as crashed and last (automatic?) repair failed]
Nov 2 16:59:47 cameras zmdc[1649]: ERR ['zma -m 16' exited abnormally, exit status 144]
Nov 2 16:59:47 cameras zmc_m13[1674]: WAR [Corrupt JPEG data: 1 extraneous bytes before marker 0xd9]


So database corruption? How would I go about fixing that? Currently searching for a solution. If anyone can help please post. If I find a solution I'll post.

Re: Events show 0.00 duration but images are being recorded.

Posted: Fri Nov 02, 2012 9:28 pm
by theforce
FIXED!!!! :D

I'm not going to be an ass like some that post about they fixed their issue and not say what they did so here is my solution.


sudo /etc/init.d/zoneminder stop

sudo mysqlcheck --all-databases --auto-repair -pzmpass -u zmuser

sudo /etc/init.d/zonminder restart


Everyting is now showing up now. Thanks for the help and pointing me in the right direction with the logs.