Emails Stuck In Task Queue

Description

We are experiencing a problem with semi regularity on high traffic instances where cfmail stops working. We check in the tasks queue and they seem to be stuck there, however I can verify that the mail instance is working as we send some mail through Java and it works without incident even as lucee is in a "stuck" state.

Strangely we can reexecute the failed tasks through the admin and that will typically clear it. We are having a hard time reproducing as it only seems to happen on high volume but it is unfortunately fairly regularly (after a server has been up for a few days).

I've seen a few other reports of this such as https://groups.google.com/forum/#!topic/lucee/KXIwL0rFxl4 that sound very similiar

But no clear resolution. Any ideas for troubleshooting? We are currently attempting to build a page to recreate the issue but I wanted to go ahead and submit this to see if you were aware and had any ideas. Thanks as always!

Attachments

2
  • 12 Apr 2018, 04:43 pm
  • 09 Mar 2018, 02:02 pm

relates to

Activity

Show:

Zac Spitzer 5 May 2018 at 00:58

there was a fix just committed for https://luceeserver.atlassian.net/browse/LDEV-1578#icft=LDEV-1578 which might help?

Casey Yancey 12 April 2018 at 16:47

I agree Zac...It's difficult to troubleshoot without seeing the underlying error emanating from java.mail.Session. I wonder if, under heavy load, SessionAndTransport somehow loses necessary configuration data that causes the 3rd party library to barf. tis a mystery...

In the meantime, we have implemented a workaround to "re-execute" any failed mail tasks (closed or open) every 5 minutes via the scheduler admin api. I have attached script that does the work

Zac Spitzer 23 March 2018 at 23:26

theory sounds good, initial problem is the exception is being swallowed and all that comes
out is "smtp" I think the first step is to maybe improve the exception handling here to get
more useful information ?

smtp smtp lucee.runtime.exp.NativeException: smtp

Casey Yancey 23 March 2018 at 18:59

haha, woops, oh man, sorry!

to answer your questions
-no, different emails
sometimes varies with or without
-smtp
-config:
<mail>
<server idle="10000" life="60000" password="" port="xx" reuse-connection="true" smtp="xxxxxx" ssl="false" tls="false" username=""/>
</mail>

we suspect that it might the be case that one fails, and blocks all others, but its a theory. As stated earlier, difficult to reproduce (cant replicate it programmatically), but seems to happen during high volume

Zac Spitzer 21 March 2018 at 23:10
Edited

i'm just another lucee user slightly smiling face the stacktrace shows a crash in a third party java lib

is it always the same email?
is there an attachment?
what mail server are you using?
what's your mail config (can you post your this.mailservers config (edit out ip and user etc) from the web admin under mail - services)

Details

Assignee

Reporter

Labels

New Issue warning screen

Before you create a new Issue, please post to the mailing list first https://dev.lucee.org

Once the issue has been verified, one of the Lucee team will ask you to file an issue

Affects versions

Priority

Created 8 March 2018 at 20:01
Updated 8 May 2020 at 18:15

Flag notifications