Fixed: events deleted shortly after created

Support and queries relating to all previous versions of ZoneMinder
Locked
vahan1
Posts: 15
Joined: Sat Apr 01, 2006 4:33 am

Fixed: events deleted shortly after created

Post by vahan1 »

First of all, sorry if this has been discussed before or if I've missed something in the docs. I quickly looked through the forums, but couldn't find much about this.

I've upgraded from version 1.22.1 to 1.22.3. And now it looks like there are no events in the database, as they are showing as 0's on the main page. I'm also seeing a ton of

Code: Select all

Jan 16 13:50:53 localhost zmaudit[13705]: INF [Filesystem event '6/226026' does not exist in database]
Jan 16 13:50:53 localhost zmaudit[13705]: INF [deleting]
in the syslog. The database upgrade script ran smoothly.

I'm just wondering if this is an expected behavior or something went wrong during the upgrade.

Thanks in advance
Vahan
Last edited by vahan1 on Wed Jan 17, 2007 12:13 am, edited 2 times in total.
vahan1
Posts: 15
Joined: Sat Apr 01, 2006 4:33 am

Post by vahan1 »

after running for a couple of hours, it seem like all new events disappeared again.

I've bounced the box, will keep watching.

thanks
v

Update: Seems like events are being deleted by zmfilter shortly after being created.
vahan1
Posts: 15
Joined: Sat Apr 01, 2006 4:33 am

Post by vahan1 »

Found the issue:

Seems like the PurgeAllWhenFull filter was set to purge "less than or equal" date 11/06.

Changed it to Disk Percentage, equal to, 100, seems to be working now.


Two questions

1. Why would this start "working" after an upgrade, was there a bugfix?

2. How should the filter be configured "out of the box" ?

Thanks!
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

There were several bugfixes though I can't say for sure whether any would have affected that.

PurgeWhenFull is configured 'out of the box' for a disk percentage, but not configured to actually run, you have to resave it for that. I would not recommend adding a date term to PWF unless it is 'or'd with the %ge as if it is 'and'd then the expression may be false leading to your disk filling up.
Phil
vahan1
Posts: 15
Joined: Sat Apr 01, 2006 4:33 am

Post by vahan1 »

Thanks Phil 8)
Locked