Page 1 of 1

Upload option doesnt appear to work is this a bug?

Posted: Thu Oct 25, 2018 1:39 pm
by asantaga
Hey guys,

Im trying to setup the "upload" functionality but when I try to run the filter it comes back with an error.Running the filter on the commandline I see the following error..

Zoneminder 1.32.2 (running within a docker container)
Linux Ubuntu 18.04

The filter is a basic, select all events with score of > 10 with the upload button set. I use the same filter for emailing the events and this works fine.

Code: Select all

root@e447d94d6d07:/usr/bin# ./zmfilter.pl 3
10/25/18 14:28:05.680172 zmfilter[2858].INF [main:181] [Scanning for events using all filters]
10/25/18 14:28:10.736147 zmfilter[2858].INF [main:286] [Checking filter emailAlarms upload, email returned 100 events ]
10/25/18 14:28:10.782737 zmfilter[2858].INF [main:504] [Creating upload file '/tmp/zonemindertmp/KitchenCam-1806.zip', 3 files]
10/25/18 14:28:10.880396 zmfilter[2858].INF [main:577] [Uploading to xxxx.com:22 using SFTP]
Can't use string ("gadgetan") as a subroutine ref while "strict refs" in use at ./zmfilter.pl line 582.
before log it as a bug,is it a bug?

Re: Upload option doesnt appear to work is this a bug?

Posted: Thu Oct 25, 2018 3:25 pm
by bbunge
Linux distro and version?

What are your filter entries?

Re: Upload option doesnt appear to work is this a bug?

Posted: Thu Oct 25, 2018 3:25 pm
by iconnor
I think so. Line 579 should have a comma at the end.

Re: Upload option doesnt appear to work is this a bug?

Posted: Thu Oct 25, 2018 3:32 pm
by asantaga
Updated the original post but its Ubuntu 18.04 (in a docker container) and the filter is a bog standard, all events with alarm score .
(not able to access my server atm but will take a screenshot of the filter)

Re: Upload option doesnt appear to work is this a bug?

Posted: Thu Oct 25, 2018 7:38 pm
by asantaga
yup @iconnor !

Adding the comma sorted it out now testing the upload using a shell.
Edit : yes works perfectly now

Do u want me to add a bug?
edit : I logged it as issue 2275 (https://github.com/ZoneMinder/zoneminder/issues/2275) so others can see the easy fix.