When I run zmfilter.pl from the command line (using "sudo zmfilter.pl --filter=UploadToBDH1") it runs and uploads event files to the remote server.
It is configured to use sftp and authentication is via keys, not passwords. The filter is limited to 2 matching events (at least for now).
When I go to the filter page and select the UploadToBDH1 filter, and click execute, it shows 2 events. When I then go to the log page the most recent entry says "Unable to create SFTP connection. Connection to remote server is broken".
It doesn't seem to be broken from the cli, but it is from the web page. A little help please?
Environment is Zoneminder 1.34.22 running on ubuntu 20.04.1.
zmfilter.pl behavior - cli vs web
Re: zmfilter.pl behavior - cli vs web
I expect ZM runs the filter as your apache user. You are not running a representative test on the commandline.
-
Re: zmfilter.pl behavior - cli vs web
OK, I can rerun the test setting the user to www-data and see what results I get.
Thanks for the reply.
Thanks for the reply.