Page 1 of 1

Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 3:09 am
by McFuzz
Gents,

I have a peculiar situation - I have a filter that does upload, creates a video and emails me all at the same time. I had to disable the upload functionality due to the FTP server going down for a bit but then I noticed it will no longer email me!

Instead - I see this message appear in the log everytime I try and tweak filters.

Uncaught TypeError: Cannot read property 'checked' of undefined file: skins/classic/views/js/filter.js line: 16

SQL table indicates it created fine BUT emails are not being sent.

I tried recreating the filter but to no avail... mind you this was working just fine until this morning.


Any ideas?

Thanks!

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 3:38 am
by McFuzz
I also noticed that zmfiter exists a lot with exit status 9 right around when it should be emailing...

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 3:53 am
by fastolfe
Is the OPT_EMAIL option enabled (under "Email" in the options)?

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 4:23 am
by McFuzz
fastolfe wrote:Is the OPT_EMAIL option enabled (under "Email" in the options)?
I use OPT_MESSAGE instead of OPT_EMAIL (always have). I managed to trigger emails by executing the filter manually... But when alarms come in, while it creates a video and uploads them to the FTP site per the filter, it fails to message me :(

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 5:08 am
by McFuzz
It looks like it's skipping the email sending entirely!

Code: Select all

Nov 26 21:06:54 sec zmdc[3242]: INF [Starting pending process, zmfilter.pl]
Nov 26 21:06:54 sec zmdc[3242]: INF ['zmfilter.pl' starting at 13/11/26 21:06:54, pid = 3952]
Nov 26 21:06:54 sec zmdc[3952]: INF ['zmfilter.pl' started at 13/11/26 21:06:54]
Nov 26 21:06:54 sec zmfilter[3952]: INF [Scanning for events]
Nov 26 21:07:00 sec zmfilter[3952]: INF [Creating upload file '/tmp/zm/porchcam-356.zip', 412 files]
Nov 26 21:07:03 sec zmfilter[3952]: INF [Uploading to xxxx.com using FTP]

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 5:39 am
by McFuzz
Annnnd I solved it!

Due to an unrelated issue, I had to redo my FTP server which now uses active connection as opposed to passive. ZoneMinder was still configured to use passive and as a result, uploads failed which apparently caused sending messages to fail!

Also it appears that SFTP is broken. If I enable it and use default port (21), zmfilter craps out half a second after starting up.

Interesting...

Re: Email stopped working??? 1.26.4

Posted: Wed Nov 27, 2013 6:40 am
by McFuzz
Final edit:

Got SFTP to work. Gotta install libnet-sftp-foreign-perl package :)