Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Hudson » Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0
Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1004550] Wed, 23 January 2013 12:44 Go to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
I've just upgraded to from Hudson 2.2.1 to 3.0.0. In that upgrade I also updated to JDK 7, due to a bug in the SubVersion plugin (see Jenkins issue JENKINS-11985 and http://jespertejlgaard.blogspot.dk/2013/01/solved-badrecordmac-error-for.html).

My jobs are no longer able to send mails. They fail with the following error:

ERROR: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6

javax.mail.AuthenticationFailedException: 535 5.7.8 Error: authentication failed: UGFzc3dvcmQ6

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:295)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:505)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
at hudson.tasks.MailSender.execute(MailSender.java:91)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:829)
at hudson.model.Run.run(Run.java:1433)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:414)
at hudson.model.ResourceController.execute(ResourceController.java:81)
at hudson.model.Executor.run(Executor.java:137)

I first thought I had the same issue as http://www.eclipse.org/forums/index.php?t=rview&goto=1004249#msg_1004249, but I know see the stacktraces are different. The issues might be related though.

Any clues on how to solve the problem?

[Updated on: Thu, 24 January 2013 09:34]

Report message to a moderator

Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1004739 is a reply to message #1004550] Wed, 23 January 2013 19:33 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 434
Registered: August 2011
Location: Fremont, CA USA
Senior Member
This instance of Hudson 3.0.0, http://ci.hudson-ci.org/, has no issue sending e-mails. Only difference is it is running with JDK 6 not 7. Not sure if that makes difference

Winston Prakash
Eclipse Hudson team
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1004978 is a reply to message #1004739] Thu, 24 January 2013 08:56 Go to previous messageGo to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
I just started the Tomcat server, which is hosting Hudson, using jdk1.6.0_27 as JAVA_HOME. I still get the error, when Hudson attempts to send mails.
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1004982 is a reply to message #1004978] Thu, 24 January 2013 09:06 Go to previous messageGo to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
By the way. Two important informations.

I can send test mails using the button Test configuration by sending a mail to the system administrator address in Manage Hudson > System Configuration (translated from danish).

Hudson is NOT configured to use authentication for sending emails. We have configured an internal SMTP server not requiring authentication.
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1005417 is a reply to message #1004739] Fri, 25 January 2013 11:16 Go to previous messageGo to next message
Jesper Tejlgaard is currently offline Jesper TejlgaardFriend
Messages: 7
Registered: April 2010
Junior Member
Hi Winston

is your Hudson installation sending mails using authentication?

I tried to send emails using authentication (and a different SMTP server) which works without a problem. So to me it seems the experienced error occurs, because emails from build jobs are send using authentication, even though Hudson has not been configured to.

Here is my Mailer configuration using authentication (with silly values):
<?xml version='1.0' encoding='UTF-8'?>
<hudson.tasks.Mailer_-DescriptorImpl>
<defaultSuffix>@x.dk</defaultSuffix>
<hudsonUrl>http://y.x.dk:8081/</hudsonUrl>
<smtpAuthUsername>x@y.dk</smtpAuthUsername>
<smtpAuthPassword>xxxx</smtpAuthPassword>
<adminAddress>x@x.dk</adminAddress>
<smtpHost>smtp.gmail.com</smtpHost>
<useSsl>true</useSsl>
<smtpPort>465</smtpPort>
<charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>



Here is the failing Mailer configuration not using authentication:
<?xml version='1.0' encoding='UTF-8'?>
<hudson.tasks.Mailer_-DescriptorImpl>
<defaultSuffix>@x.dk</defaultSuffix>
<hudsonUrl>http://y.x:8081/</hudsonUrl>
<adminAddress>x@x.dk</adminAddress>
<smtpHost>smtp.z.dk</smtpHost>
<useSsl>false</useSsl>
<charset>UTF-8</charset>
</hudson.tasks.Mailer_-DescriptorImpl>



They both seem correct. Is there any other information I can supply to get closer to a solution on sending mails not using authentication.

/Jesper

[Updated on: Fri, 25 January 2013 12:02]

Report message to a moderator

Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1005999 is a reply to message #1005417] Tue, 29 January 2013 14:11 Go to previous messageGo to next message
luke biddell is currently offline luke biddellFriend
Messages: 3
Registered: January 2013
Junior Member
Just confirming the issue with Hudson 3.0.0 and j7u11.

Test email works just fine but any email triggers fail with:



ERROR: 535 Authentication failed. Restarting authentication process.

javax.mail.AuthenticationFailedException: 535 Authentication failed. Restarting authentication process.

at com.sun.mail.smtp.SMTPTransport$Authenticator.authenticate(SMTPTransport.java:809)
at com.sun.mail.smtp.SMTPTransport.authenticate(SMTPTransport.java:752)
at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:669)
at javax.mail.Service.connect(Service.java:295)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:505)
at hudson.tasks.Mailer$DescriptorImpl.send(Mailer.java:476)
at hudson.tasks.MailSender.execute(MailSender.java:91)
at hudson.maven.MavenModuleSetBuild$RunnerImpl.cleanUp(MavenModuleSetBuild.java:829)
at hudson.model.Run.run(Run.java:1433)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:414)
at hudson.model.ResourceController.execute(ResourceController.java:81)
at hudson.model.Executor.run(Executor.java:137)
No emails were triggered.
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1006624 is a reply to message #1005999] Fri, 01 February 2013 09:08 Go to previous messageGo to next message
Leon Qin is currently offline Leon QinFriend
Messages: 3
Registered: February 2013
Location: Shanghai
Junior Member
I have the same problem. I looked into hudson's source and found a bug. I guess this issue only occurs when smtp authentication is not enabled.

I modified and compiled my local source (hudson-core). And tried the new jar in my hudson, email notification works now.

If you need my version of hudson-core.jar, please let me know. (qinling.net [ at ] gmail.com)
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1006650 is a reply to message #1005999] Fri, 01 February 2013 10:27 Go to previous messageGo to next message
luke biddell is currently offline luke biddellFriend
Messages: 3
Registered: January 2013
Junior Member
Just to confirm, I've cracked open the Hudson war and replaced mail 1.4.4 with mail 1.4 and email is now being sent.
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1007668 is a reply to message #1006624] Wed, 06 February 2013 23:02 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 434
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Hi Leon, could you please submit your patch to the core via Gerrit

The details about submitting patch can be found here
http://wiki.eclipse.org/Hudson-ci/development#Submitting_a_Patch_for_Non-Committers


Winston Prakash
Eclipse Hudson team
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1027831 is a reply to message #1004550] Wed, 27 March 2013 13:18 Go to previous messageGo to next message
Kai Zimmermann is currently offline Kai ZimmermannFriend
Messages: 16
Registered: October 2012
Junior Member
Is the bugfix already in git?
Re: Hudson jobs can not send mail after upgrading to version 3.0.0 and JDK 7.0 [message #1028329 is a reply to message #1027831] Thu, 28 March 2013 05:26 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 434
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Yes, this is fixed in Hudson 3.0.1

Winston Prakash
Eclipse Hudson team
Previous Topic:Hudson- Archive workspace
Next Topic:Deleting Hudson Workspace causes this error before build
Goto Forum:
  


Current Time: Thu Nov 27 03:02:48 GMT 2014

Powered by FUDForum. Page generated in 0.02694 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software