zmfilter not running in background

Forum for questions and support relating to the 1.30.x releases only.
Locked
jake1164
Posts: 4
Joined: Tue Aug 01, 2017 1:13 pm

zmfilter not running in background

Post by jake1164 »

I have ZM v1.30.4 running on Debian 9.3 stretch with no desktop installed.

Everything seems to be working, however, I Have a Filter created with the following parameters:
Name: DeleteOldEvents
Date <= -45 day
Limit = 100
Delete all matches = true
Background = true

When I submit and Execute via the web interface this works and I see 100 records deleted in the log w/o any errors. When I execute this from the terminal this works as expected, deletes 100 records and no errors are logged, no errors in terminal.

However, I have events left from October still and the only way this seems to run is if I manually run it myself.

OPT_FAST_DELETE = false
FILTER_RELOAD_DELAY = 300
FILTER_EXECUTE_INTERVAL = 30 (have also tried 60 and 20)
RUN_AUDIT = true
AUDIT_CHECK_INTERVAL = 900

These settings are also set but I dont think they matter:
OPT_USE_API = true
OPT_TRIGGERS = true (have tried with false)

The only error that I think might be related, but even that I am not sure about is:
Unable to run "su www-data --shell=/bin/sh --command='/usr/bin/zmdc.pl start zmeventnotification.pl'"

The other errors in logs, however, I think they are unrelated (I deleted some duplicates):
<

Code: Select all

2018-01-24 12:55:01.272430	zmdc		692	ERR	'zma -m 7' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:01.075197	zma_m7		817	ERR	Shared data not initialised by capture daemon for monitor Driveway	zm_monitor.cpp	442
2018-01-24 12:55:00.455710	zmdc		692	ERR	'zma -m 5' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.398190	zma_m5		807	ERR	Shared data not initialised by capture daemon for monitor Back Yard	zm_monitor.cpp	442
2018-01-24 12:55:00.160120	zmdc		692	ERR	'zmc -m 7' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.135270	zmdc		692	ERR	'zma -m 6' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.110440	zmdc		692	ERR	'zmc -m 6' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.085610	zmdc		692	ERR	'zma -m 5' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.060780	zmdc		692	ERR	'zmc -m 5' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.037220	zmdc		692	ERR	'zma -m 4' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:55:00.012400	zmdc		692	ERR	'zmc -m 4' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:54:59.984950	zmdc		692	ERR	'zma -m 2' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:54:59.959240	zmdc		692	ERR	'zmc -m 2' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:54:59.928710	zmdc		692	ERR	'zma -m 7' exited abnormally, exit status 255	zmdc.pl	
2018-01-24 12:54:59.258628	zma_m4		741	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	zm_monitor.cpp	533
2018-01-24 12:54:59.258470	zma_m2		727	ERR	Got empty memory map file size 0, is the zmc process for this monitor running?	
2018-01-24 12:54:58.286400	zmpkg		597	ERR	Unable to run "su www-data --shell=/bin/sh --command='/usr/bin/zmdc.pl start zmeventnotification.pl'", output is "Usage: zmdc.pl {command} [daemon [options]] Options: {command} - One of 'startup|shutdown|status|check|logrot' or 'start|stop|restart|reload|version'. [daemon [options]] - Daemon name and options, required for second group of commands "	zmpkg.pl	
2018-01-24 12:54:49.482200	web_php		556	ERR	Invalid skin 'flat' setting to classic	/usr/share/zoneminder/www/index.php	88
I apologize if I missed something stupid (simple), I just have not been able to figure this one out myself.
jake1164
Posts: 4
Joined: Tue Aug 01, 2017 1:13 pm

Re: zmfilter not running in background

Post by jake1164 »

So it appears that zm filter is not being started because of bad parameters?

Here is the output of the zmpkg log:

Code: Select all

2018-02-12 10:24:59.584360	zmpkg		631	ERR	Unable to run "su www-data --shell=/bin/sh --command='/usr/bin/zmdc.pl start zmeventnotification.pl'", output is "Usage: zmdc.pl {command} [daemon [options]] Options: {command} - One of 'startup|shutdown|status|check|logrot' or 'start|stop|restart|reload|version'. [daemon [options]] - Daemon name and options, required for second group of commands "	zmpkg.pl	
This is the output of the same command executed from terminal:

Code: Select all

root@computer:/home/user# su www-data --shell=/bin/sh --command='/usr/bin/zmdc.pl start zmeventnotification.pl'
Invalid daemon 'zmeventnotification.pl' specifiedUsage:
     zmdc.pl {command} [daemon [options]]

Options:
     {command}           - One of 'startup|shutdown|status|check|logrot' or
                           'start|stop|restart|reload|version'.
     [daemon [options]]  - Daemon name and options, required for second group of commands
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: zmfilter not running in background

Post by bbunge »

Zoneminder_Purge.jpg
Zoneminder_Purge.jpg (46.79 KiB) Viewed 2685 times
Locked