Page 1 of 2
Event Filters Not Running
Posted: Mon Aug 03, 2015 3:25 pm
by AlexB
Hi, I'm trying to create a filter that purges unarchived events every 14 days, but the filter is not running after selecting it. It just goes back to the default "choose filter" option in the drop down. I've tried saving, executing, and submitting and none of them keep the filter, but maybe I'm just missing something simple. Any suggestions?
Thanks!
Re: Event Filters Not Running
Posted: Mon Aug 03, 2015 5:48 pm
by mikb
Did you "Save" after any changes you made, and did you tick/select "Run Filter In Background" which will keep it going?
"Execute", "Submit" only run the filter once (Submit: shows you what WOULD happen/what WOULD match, for fine tuning and experimenting, vs Execute: actual do it, but only ONCE, NOW).
Re: Event Filters Not Running
Posted: Mon Aug 03, 2015 6:04 pm
by AlexB
Yeah, I did. The changes still revert back to default.
Re: Event Filters Not Running
Posted: Tue Aug 04, 2015 7:03 pm
by mikb
On the filters page, when you pick the filter, the display refreshes (hopefully) with the details, and should show what the filter's current settings are.
It should also have a little "*" at the enf of the filter name, and the word [background] after it. Just next to the selection box.
Code: Select all
Use Filter "NameOfFilter*" [background]
Are you getting any of that appearing?
Re: Event Filters Not Running
Posted: Tue Aug 04, 2015 7:55 pm
by AlexB
Yep, then I hit save and then check "run filter in background" and click save and close.
Re: Event Filters Not Running
Posted: Tue Aug 04, 2015 11:08 pm
by asker
Would you mind posting a screenshot of the filter as it is configured which is not working?
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 4:11 pm
by AlexB
Sorry, I tried attaching the configuration, but I didn't see it so I kept trying and it said "Sorry, the board attachment quota has been reached."
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 4:22 pm
by AlexB
My configuration settings are this though: Archive Status = to Unarchived only. And Date Less than -14 days. Sort by Date/Time Asc Limit to first 100 results only. Then I checked delete all matches and saved with run filter in background checked too.
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 5:52 pm
by mikb
AlexB wrote:Sorry, I tried attaching the configuration, but I didn't see it so I kept trying and it said "Sorry, the board attachment quota has been reached."
Is there something a moderator can do to un-break this? I've seen quite a few comments from people trying to attach images to solve problems, but getting that error.
Is the forum full

?
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 8:08 pm
by asker
How about you post it to
http://imgur.com and paste a link?
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 8:54 pm
by AlexB
Can't, it says "Your post looks too spamy for a new user, please remove off-site URLs".

Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 9:08 pm
by AlexB
Actually, I guess you could just add this to the end of Imgur's url
/AkITh8S
Re: Event Filters Not Running
Posted: Wed Aug 05, 2015 10:21 pm
by asker
Nothing wrong that I can see with how you've configured it -- to delete after 14 days.
Some thoughts:
a) Is there any other filter that is marking your events as archived before this kicks in? If you are not sure, how about trying just to keep in -14 days and remove the archive unset condition?
b) Try and launch from command line
Code: Select all
zmfilter.pl -f <yourfiltername>
zmaudit.pl
Then see if the events are deleted (easy visual way is to go to timeline and make sure there are no events before 14 days)
Re: Event Filters Not Running
Posted: Thu Aug 06, 2015 1:26 pm
by AlexB
I ran the first command and it says, "Name "Net::SFTP::Foreign::debug" used only once: possible typo at /usr/bin/zmfilter.pl line 817."
This is line 817.
Code: Select all
$Net::SFTP::Foreign::debug = -1 if $Config{ZM_UPLOAD_DEBUG};
my $sftp = Net::SFTP::Foreign->new( $Config{ZM_UPLOAD_HOST}, %sftpOptions );
if ( $sftp->error )
{
Error( "Can't create SFTP connection: ".$sftp->error );
return( 0 );
Re: Event Filters Not Running
Posted: Thu Aug 06, 2015 3:04 pm
by AlexB
The filter apparently worked anyway, but I'm still not sure if the filter will run every two weeks like it's supposed to because it's still showing up as "Choose Filter."
