[JIRA] (JENKINS-56855) MessagingException message: IOException while sending message

9 views
Skip to first unread message

garrett8357@gmail.com (JIRA)

unread,
Apr 2, 2019, 11:35:03 AM4/2/19
to jenkinsc...@googlegroups.com
Garrett Nickerson created an issue
 
Jenkins / Bug JENKINS-56855
MessagingException message: IOException while sending message
Issue Type: Bug Bug
Assignee: David van Laatum
Components: email-ext-plugin
Created: 2019-04-02 15:34
Environment: Jenkins Version: 2.121.3
email-ext-plugin version: 2.63
java.version: 1.8.0_144
Priority: Major Major
Reporter: Garrett Nickerson

I am seeing an intermittent issue where emails are not being sent, and there is no output in the regular log to indicate why. 3 out of our last 12 builds failed to email. When I turned on email-ext debug logging I got the following output:

 

[Pipeline] emailext
messageContentType = text/html; charset=UTF-8
Adding recipients from project recipient list
Analyzing: ******@*******.com
Looking for: ******@*******.com
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ******@*******.com
	=> found type: 0
Analyzing: ******@*******.com
Looking for: ******@*******.com
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ******@*******.com
	=> found type: 0
Analyzing: ******@*******.com
Looking for: ******@*******.com
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ******@*******.com
	=> found type: 0
Adding recipients from trigger recipient list
Analyzing: ***-Jenkins,<******@*******.com>
Looking for: ***-Jenkins
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ***-Jenkins,<******@*******.com>
	=> found type: 0
Looking for: ******@*******.com
	starting at: 12
	firstFoundIdx: 13
	firstFoundIdx-substring: ******@*******.com>
	=> found type: 0
Analyzing: ***-Jenkins,<******@*******.com>
Looking for: ***-Jenkins
	starting at: 0
	firstFoundIdx: 0
	firstFoundIdx-substring: ***-Jenkins,<******@*******.com>
	=> found type: 0
Looking for: ******@*******.com
	starting at: 12
	firstFoundIdx: 13
	firstFoundIdx-substring: ******@*******.com>
	=> found type: 0
Successfully created MimeMessage
Sending email to: ******@*******.com
MessagingException message: IOException while sending message

 

 

 

The only difference between a successful email sent and an email failure is that last line:

 

MessagingException message: IOException while sending message

 

I noticed a similar recent issue in a different email plugin:  https://issues.jenkins-ci.org/browse/JENKINS-53305

Since we cannot rely on an email notification, we had to implement a policy to closely watch builds to see if they fail.

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

garrett8357@gmail.com (JIRA)

unread,
Apr 2, 2019, 11:36:08 AM4/2/19
to jenkinsc...@googlegroups.com
Garrett Nickerson updated an issue
Change By: Garrett Nickerson
I am seeing an intermittent issue where emails are not being sent, and there is no output in the regular log to indicate why. 3 out of our last 12 builds failed to email. When I turned on email-ext debug logging I got the following output:

 
{noformat}
MessagingException message: IOException while sending message{noformat}
 

 

 

The only difference between a successful email sent and an email failure is that last line:

 
{code:java}
MessagingException message: IOException while sending message{code}
 

I noticed a similar recent issue in a different email plugin:  https://issues.jenkins-ci.org/browse/JENKINS-53305

Since we cannot rely on an email notification, we had to implement a policy to closely watch builds to see if they fail.

 

tero.kivisaari@paf.com (JIRA)

unread,
Apr 23, 2019, 7:16:02 AM4/23/19
to jenkinsc...@googlegroups.com
Tero Kivisaari commented on Bug JENKINS-56855
 
Re: MessagingException message: IOException while sending message

Do you happen to run in AWS EC2? We bumped into a similar issue which was a bit difficult to trace and in the end concluded that it was most likely AWS throttling traffic to port 25 https://aws.amazon.com/premiumsupport/knowledge-center/ec2-port-25-throttle/

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 11:54:02 AM7/17/19
to jenkinsc...@googlegroups.com
Alex Earl assigned an issue to Alex Earl
 
Change By: Alex Earl
Assignee: David van Laatum Alex Earl

slide.o.mix@gmail.com (JIRA)

unread,
Jul 17, 2019, 11:55:02 AM7/17/19
to jenkinsc...@googlegroups.com
Alex Earl commented on Bug JENKINS-56855
 
Re: MessagingException message: IOException while sending message

Are you willing to try a debug build that will give more information as to the cause of this issue?

garrett8357@gmail.com (JIRA)

unread,
Jul 17, 2019, 3:13:03 PM7/17/19
to jenkinsc...@googlegroups.com

Thanks for your response. We actually stopped seeing the issue after upgrading all of our components. I did not see any relevant information in the release notes for the upgraded version. Our working system has these components (among others)

Jenkins Version: 2.164.2 
email-ext-plugin version: 2.66
java.version: 1.8.0_144

garrett8357@gmail.com (JIRA)

unread,
Jul 17, 2019, 3:13:04 PM7/17/19
to jenkinsc...@googlegroups.com

garrett8357@gmail.com (JIRA)

unread,
Jul 17, 2019, 3:13:05 PM7/17/19
to jenkinsc...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages