Another PurgeWhenFull problem.

Support and queries relating to all previous versions of ZoneMinder
Locked
seabro
Posts: 24
Joined: Fri Jan 28, 2005 11:00 pm
Location: Cardiff, Wales. UK

Another PurgeWhenFull problem.

Post by seabro »

Hi,

I am running 1.22.3

I have a PWF filter setup to run in background, when disk percent greater than 50, sort by ID ASC, limit to first 1000 records, delete all matches.

It doesn't work automatically.

If I 'execute' the filter manually, it brings up 1000 records, but I then have to select all and delete'.

I tried creating 'PurgeWhenFull2' and thats doesn't appear to work.

Obviously, the system works, so I must be doing something wrong but I can't work it out for the life of me.

Whilst I am here, whats the difference between submit and execute on the filter window?

Thanks for your help.
seabro
Posts: 24
Joined: Fri Jan 28, 2005 11:00 pm
Location: Cardiff, Wales. UK

Post by seabro »

62 views and no comments...

What does that mean? Should it work?
vejeta
Posts: 10
Joined: Tue Feb 05, 2008 2:16 pm

Post by vejeta »

If it doesn't work automatically, check zmfilter.log for any error that may be happening.

I had a case that filters weren't being executed till I deleted a faulty filter (xPurgeWhenFull), after that, all my filters worked.
User avatar
Lee Sharp
Posts: 1069
Joined: Sat Mar 31, 2007 9:18 pm
Location: Houston, TX

Post by Lee Sharp »

To your have "delete" as the action set in the filter? A silly mistake that I still do from time to time.
seabro
Posts: 24
Joined: Fri Jan 28, 2005 11:00 pm
Location: Cardiff, Wales. UK

Post by seabro »

Thanks for the replies guys.

Thanks to you we are a little closer!

My zmfilter.log remains empty but zmdc.log states:

[root@localhost zm]# tail zmdc.log
04/18/08 19:22:03.861544 zmdc[17563].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
04/18/08 19:22:23.068290 zmdc[17563].INF [Starting pending process, zmfilter.pl]
04/18/08 19:22:23.073455 zmdc[17563].INF ['zmfilter.pl' starting at 08/04/18 19:22:23, pid = 17649]
04/18/08 19:22:23.892201 zmdc[17563].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
04/18/08 19:23:03.000751 zmdc[17563].INF [Starting pending process, zmfilter.pl]
04/18/08 19:23:03.003099 zmdc[17563].INF ['zmfilter.pl' starting at 08/04/18 19:23:03, pid = 17678]
04/18/08 19:23:03.998612 zmdc[17563].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
04/18/08 19:24:23.003667 zmdc[17563].INF [Starting pending process, zmfilter.pl]
04/18/08 19:24:23.012996 zmdc[17563].INF ['zmfilter.pl' starting at 08/04/18 19:24:23, pid = 17713]
04/18/08 19:24:23.826423 zmdc[17563].ERR ['zmfilter.pl ' exited abnormally, exit status 9]
[root@localhost zm]#


Anyone have any ideas what the cause might be?

Thanks a bunch!
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Sounds like you might have upgraded from a previous version.
1.23.x now uses serialization, search this topic for "PurgeWhenFull serialization" for more info.
You could also delete and recreate the purge filter and should fix your problem.
seabro
Posts: 24
Joined: Fri Jan 28, 2005 11:00 pm
Location: Cardiff, Wales. UK

Post by seabro »

Hi Cordel,

I am running v1.22.3

I have not previously upgraded.

I have deleted PWF filter and recreated.

I then stopped ZM, deleted all log files and started it again only to find same messages in zmdc.log and an empty zmfilter.log

I will have a read about serialization now but if you have any more suggestions I would be grateful.
Locked