zmfilter.pl behavior - cli vs web

Forum for questions and support relating to the 1.34.x releases only.
Post Reply
meridien
Posts: 2
Joined: Sat Nov 07, 2020 8:40 pm

zmfilter.pl behavior - cli vs web

Post by meridien »

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.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmfilter.pl behavior - cli vs web

Post by Magic919 »

I expect ZM runs the filter as your apache user. You are not running a representative test on the commandline.
-
meridien
Posts: 2
Joined: Sat Nov 07, 2020 8:40 pm

Re: zmfilter.pl behavior - cli vs web

Post by meridien »

OK, I can rerun the test setting the user to www-data and see what results I get.

Thanks for the reply.
Post Reply