diagnosing missing event files. or not saving files?
Posted: Tue Oct 10, 2006 1:25 am
I've got a machine running zoneminder 1.22.2 on ubuntu dapper.
It's got 3 cameras connected to a 4 chip bt card. It had been working without problems for about 5 (?) months, but a month back, I noticed some really old events with wierd timestamps, and so I deleted them. This caused all events to stop recording, and so basically I deleted all events off the filesystem, and re built the mysql database using the original db script as found in db/zm_create.sql
I re-added all the cameras, and have them on modetect. and it appeared things were back to normal. streaming and event viewing worked, as far as I could tell.
Now:
streaming works on all three cameras.
The event viewing feature works on monitor 1 only. it doesn't work on the two other cameras i'm concerned with.
kiosk-video:/var/www/events$ ls -l
total 1188
drwxrwxrwx 11248 www-data www-data 180224 2006-10-09 18:03 1
drwxrwxrwx 32000 www-data www-data 499712 2006-10-08 11:19 2
drwxrwxrwx 32000 www-data www-data 491520 2006-10-02 17:43 3
drwxrwxrwx 2 www-data www-data 4096 2006-09-25 16:01 4
drwxrwxrwx 2 www-data www-data 4096 2006-09-25 16:02 5
drwxrwxrwx 1523 www-data www-data 24576 2006-10-02 13:44 6
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 15:56 back -> 3
lrwxrwxrwx 1 www-data www-data 1 2006-06-19 01:24 front -> 1
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:03 pos -> 6
lrwxrwxrwx 1 www-data www-data 1 2006-10-09 17:01 register -> 2
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:01 storage1 -> 4
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:02 storage2 -> 5
the first three cameras are monitors 1, 2 and 3.
There are plenty of event subdirs in 2 and 3, but I don't know if they are current up to today. From the event viewer, I did notice the last viewable event was from 2006-10-08 (yesterday mid-morning) but there was nothing I did to the system at the time.
In the event viewer, if I click on an event, the viewing window shows a broken link. e.g. I try to click on event 108730 for monitor 2. It doesn't work because that event doesn't exist in the file system. I also checked all the other subdirs, and those don't have it either (ls */108730 returns no matches).
I don't see anything in the syslog that would clue me in. No WAR, just INF lines. I have 299Gigs free. system load is generally low, except when msyqld gets hit by some processing.
Any ideas on where to start looking for the cause of this problem? how do i reset the daemons/db to a good state without wiping out everything?
To reiterate, events do work for monitor 1 only. real-time streaming works for all monitors.
TIA,
Ed
It's got 3 cameras connected to a 4 chip bt card. It had been working without problems for about 5 (?) months, but a month back, I noticed some really old events with wierd timestamps, and so I deleted them. This caused all events to stop recording, and so basically I deleted all events off the filesystem, and re built the mysql database using the original db script as found in db/zm_create.sql
I re-added all the cameras, and have them on modetect. and it appeared things were back to normal. streaming and event viewing worked, as far as I could tell.
Now:
streaming works on all three cameras.
The event viewing feature works on monitor 1 only. it doesn't work on the two other cameras i'm concerned with.
kiosk-video:/var/www/events$ ls -l
total 1188
drwxrwxrwx 11248 www-data www-data 180224 2006-10-09 18:03 1
drwxrwxrwx 32000 www-data www-data 499712 2006-10-08 11:19 2
drwxrwxrwx 32000 www-data www-data 491520 2006-10-02 17:43 3
drwxrwxrwx 2 www-data www-data 4096 2006-09-25 16:01 4
drwxrwxrwx 2 www-data www-data 4096 2006-09-25 16:02 5
drwxrwxrwx 1523 www-data www-data 24576 2006-10-02 13:44 6
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 15:56 back -> 3
lrwxrwxrwx 1 www-data www-data 1 2006-06-19 01:24 front -> 1
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:03 pos -> 6
lrwxrwxrwx 1 www-data www-data 1 2006-10-09 17:01 register -> 2
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:01 storage1 -> 4
lrwxrwxrwx 1 www-data www-data 1 2006-09-25 16:02 storage2 -> 5
the first three cameras are monitors 1, 2 and 3.
There are plenty of event subdirs in 2 and 3, but I don't know if they are current up to today. From the event viewer, I did notice the last viewable event was from 2006-10-08 (yesterday mid-morning) but there was nothing I did to the system at the time.
In the event viewer, if I click on an event, the viewing window shows a broken link. e.g. I try to click on event 108730 for monitor 2. It doesn't work because that event doesn't exist in the file system. I also checked all the other subdirs, and those don't have it either (ls */108730 returns no matches).
I don't see anything in the syslog that would clue me in. No WAR, just INF lines. I have 299Gigs free. system load is generally low, except when msyqld gets hit by some processing.
Any ideas on where to start looking for the cause of this problem? how do i reset the daemons/db to a good state without wiping out everything?
To reiterate, events do work for monitor 1 only. real-time streaming works for all monitors.
TIA,
Ed