Hi all,
I'm getting email workflow failures at the moment - the workflows that report via this SMTP server have worked daily for months. Only once I noticed a report that ran at midnight tended to be failing - with a too many connections error - I figured maybe the server was really busy at midnight at one end or the other or something so I moved the process to 10pm. No problems until yesterday and today.
Suddenly, although I can use the email connection configuration dialogue to successfully send a test email when the workflows that have always relied on this (unchanged at either end) connection they fail when sending.
The errors I have are these:
<Message>Service not available, closing transmission channel. The server response was: Too many concurrent SMTP connections; please try again later.</Message>
My mail host says the problem is local and not something I can configure with the WHM/cPanel account that I'm using as an smtp service for testing workflow with outbound email.
Again, it's worked for months with only a few instances of this until now.
---------------------------------------- Timestamp: 2016-03-08 10:00:08.045 Local Time: 8/03/2016 8:00:08 PM Category: Activity Machine: XXXXXX Severity: Error Application Domain: Laserfiche.Workflow.Service.exe Process Id: 10320 Process Name: D:\Program Files\Laserfiche\Laserfiche Workflow 9\Laserfiche.Workflow.Service.exe Win32 Thread Id: 20732 - Thread Name: Message: <Exception handlingInstanceId="c3ace5c5-4245-4067-9249-8383d48ce3f6"> <Description>An exception of type 'System.Exception' occurred and was caught.</Description> <DateTime>2016-03-08 20:00:08Z</DateTime> <ExceptionType>System.Exception, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType> <Message>Service not available, closing transmission channel. The server response was: Too many concurrent SMTP connections; please try again later.</Message> <Source>Laserfiche.Workflow.Activity.Base</Source> <HelpLink /> <Property name="ActivityName">Email_Email</Property> <Property name="ActivityType">Laserfiche.Workflow.Activities.Email.EmailActivity</Property> <Property name="InstanceId">1dafe637-cec2-4239-83c7-54b2612aac41</Property> <Property name="TargetSite">Void ProcessTaskQueueEvent(System.Workflow.ComponentModel.ActivityExecutionContext)</Property> <Property name="HResult">-2146233088</Property> <StackTrace> at Laserfiche.Workflow.Activities.TaskActivityBase.ProcessTaskQueueEvent(ActivityExecutionContext context) at Laserfiche.Workflow.Activities.TaskActivityBase.OnEvent(Object sender, QueueEventArgs e) at System.Workflow.ComponentModel.ActivityExecutorDelegateInfo`1.ActivityExecutorDelegateOperation.Run(IWorkflowCoreRuntime workflowCoreRuntime) at System.Workflow.Runtime.Scheduler.Run()</StackTrace> <additionalInfo> <info name="MachineName" value="XXXXXX" /> <info name="TimeStamp" value="8/03/2016 10:00:08 AM" /> <info name="FullName" value="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" /> <info name="AppDomainName" value="Laserfiche.Workflow.Service.exe" /> <info name="ThreadIdentity" value="" /> <info name="WindowsIdentity" value="XXX\svc_lf_app" /> </additionalInfo> <InnerException> <ExceptionType>System.Net.Mail.SmtpException, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType> <Message>Service not available, closing transmission channel. The server response was: Too many concurrent SMTP connections; please try again later.</Message> <Source>System</Source> <HelpLink /> <Property name="StatusCode">ServiceNotAvailable</Property> <Property name="EmailSyncLevel">1</Property> <Property name="StartTime">8/03/2016 10:00:07 AM</Property> <Property name="EndTime">8/03/2016 10:00:08 AM</Property> <Property name="Duration">00:00:00.0469590</Property> <Property name="InstanceId">1dafe637-cec2-4239-83c7-54b2612aac41</Property> <Property name="ActivityName">Email_Email</Property> <Property name="Workflow">OCRExceptionHandler</Property> <Property name="ContextGuid">1dafe637-cec2-4239-83c7-54b2612aac41</Property> <Property name="TargetSite">Void GetConnection(System.Net.ServicePoint)</Property> <Property name="HResult">-2146233088</Property> <StackTrace> at System.Net.Mail.SmtpConnection.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpTransport.GetConnection(ServicePoint servicePoint) at System.Net.Mail.SmtpClient.GetConnection() at System.Net.Mail.SmtpClient.Send(MailMessage message) at Laserfiche.Workflow.Activities.Email.Runtime.EmailTaskExecutor.Execute(EmailTaskOptions options, TaskExecutorContext status)</StackTrace> </InnerException> </Exception> ----------------------------------------
I can't seem to google anything and don't know where to start.
Is it possible that the service is reattempting to send lots of failed emails on a cycle and this is causing a flood exception sometimes (most times) but not when I do a test email send?
The mail header from the test email looks normal:
Return-path: <will.parker@xxxxxxx.com.au> Envelope-to: will.parker@xxxxxxx.com.au Delivery-date: Tue, 08 Mar 2016 21:01:45 +1100 Received: from 125.63.14.154.iipc.com.au ([125.63.14.154]:60929 helo=XXXXXX) by XXXXXX.hosting-service.net.au with esmtpsa (TLSv1:ECDHE-RSA-AES256-SHA:256) (Exim 4.86_1) (envelope-from <will.parker@XXXXXX.com.au>) id 1adESX-004AOK-OT for will.parker@XXXXXX.com.au; Tue, 08 Mar 2016 21:01:45 +1100 MIME-Version: 1.0 From: will.parker@XXXXXX.com.au To: will.parker@XXXXXX.com.au Date: 8 Mar 2016 20:01:47 +1000 Subject: A test email has been requested by XXX\lfadmin Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable The following e-mail server settings were tested.=0D=0ASMTP Serve= r: XXXXXX.hosting-service.net.au=0D=0ASMTP Port: 587=0D=0AWindo= ws Authentication: False=0D=0AUser Name: will.parker@XXXXXX.= com.au=0D=0ASubject: test=0D=0ASSL (Secure Socket Layer): True=0D=0A
[XXX redactions are mine - not misconfiguration]
What do you suggest all?
Will