Page 1 of 1

Email notification failures

Posted: Mon Jun 05, 2017 6:32 am
by chris
I've been running AutomatiCloud for some time with email notifications coming through for success and failure of jobs. However in the past week for the first time the notification emails have intermittently been failing to come through. I'm trying to diagnose the problem but can't find any logging in relation to emails. Does this exist and if not could it be added?

Re: Email notification failures

Posted: Wed Jun 07, 2017 8:43 pm
by admin
Please change the log level for the background service from INFO to DEBUG in ACSvc.exe.config:

Code: Select all

  <log4net>
    <appender name="FileAppender" type="log4net.Appender.FileAppender">
      <param name="File" value="ACSvcLog.txt" />
      <layout type="log4net.Layout.PatternLayout">
        <conversionPattern value="%date [%thread] %level %logger - %message%newline" />
      </layout>
    </appender>
    <root>
      <level value="DEBUG" />
      <appender-ref ref="FileAppender" />
    </root>
  </log4net>
Next time you have problems with the notifications you should find an exception in ACSVCLOG.TXT

Stephan

Re: Email notification failures

Posted: Fri Jun 09, 2017 2:57 am
by chris
Thanks for your response Stephan. I did that and can see for example the following in the log file:

Code: Select all

...
2017-06-09 01:01:01,337 [QuartzScheduler_Worker-8] DEBUG MailLib - MailLib.SendMail.Send()
...
2017-06-09 01:01:11,361 [QuartzScheduler_Worker-8] DEBUG MailLib - MailLib.SendMail.Send() Exception:The operation has timed out.
...
A couple of questions therefore:

(1) Should the logging level of the log messages reporting such exceptions be increased?

(2) It seems there is a 10 second timeout in place for sending emails. Is this configurable and if not could it be made so?

Cheers,
Chris

Re: Email notification failures

Posted: Tue Jun 13, 2017 2:49 am
by chris
FYI I'm also seeing email failure log messages like this:

Code: Select all

2017-06-13 04:38:12,742 [QuartzScheduler_Worker-8] DEBUG MailLib - MailLib.SendMail.Send()
2017-06-13 04:38:22,742 [QuartzScheduler_Worker-8] DEBUG MailLib - MailLib.SendMail.Send() Exception:Failure sending mail.
It would be good if more exception details were logged.

Re: Email notification failures

Posted: Fri Jun 16, 2017 10:41 pm
by admin
I will increase the timeout and log more details in the next version.

Stephan