Events show 0.00 duration but images are being recorded.

Forum for questions and support relating to the 1.24.x releases only.
Locked
theforce
Posts: 129
Joined: Tue May 11, 2010 5:22 am

Events show 0.00 duration but images are being recorded.

Post 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?
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

Post by PacoLM »

I will check the logs (usually /var/log/syslog), or the log that ZM provides.

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
theforce
Posts: 129
Joined: Tue May 11, 2010 5:22 am

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

Post 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]
PacoLM
Posts: 971
Joined: Wed Dec 02, 2009 9:55 pm
Location: Spain

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

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

After more than 15 years, no longer using ZM as surveillance system.
Now in the dark side, using a commercial system...
theforce
Posts: 129
Joined: Tue May 11, 2010 5:22 am

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

Post 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.
theforce
Posts: 129
Joined: Tue May 11, 2010 5:22 am

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

Post 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.
theforce
Posts: 129
Joined: Tue May 11, 2010 5:22 am

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

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