Email stopped working??? 1.26.4

Forum for questions and support relating to the 1.26.x releases only.
Locked
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Email stopped working??? 1.26.4

Post 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!
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Email stopped working??? 1.26.4

Post by McFuzz »

I also noticed that zmfiter exists a lot with exit status 9 right around when it should be emailing...
fastolfe
Posts: 9
Joined: Sun Oct 27, 2013 4:39 pm

Re: Email stopped working??? 1.26.4

Post by fastolfe »

Is the OPT_EMAIL option enabled (under "Email" in the options)?
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Email stopped working??? 1.26.4

Post 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 :(
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Email stopped working??? 1.26.4

Post 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]
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Email stopped working??? 1.26.4

Post 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...
McFuzz
Posts: 181
Joined: Tue Aug 28, 2012 7:03 am

Re: Email stopped working??? 1.26.4

Post by McFuzz »

Final edit:

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