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 |
Jesper Tejlgaard 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 #1005417 is a reply to message #1004739] |
Fri, 25 January 2013 11:16 |
Jesper Tejlgaard 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
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04065 seconds