Upload option doesnt appear to work is this a bug?

Forum for questions and support relating to the 1.32.x releases only.
Post Reply
asantaga
Posts: 22
Joined: Sat Apr 13, 2013 12:47 am

Upload option doesnt appear to work is this a bug?

Post 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?
Last edited by asantaga on Thu Oct 25, 2018 3:31 pm, edited 1 time in total.
bbunge
Posts: 2934
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

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

Post by bbunge »

Linux distro and version?

What are your filter entries?
User avatar
iconnor
Posts: 2904
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

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

Post by iconnor »

I think so. Line 579 should have a comma at the end.
asantaga
Posts: 22
Joined: Sat Apr 13, 2013 12:47 am

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

Post 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)
asantaga
Posts: 22
Joined: Sat Apr 13, 2013 12:47 am

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

Post 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.
Post Reply