[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I finally figured out the problem, there were some EclipseLink JARs in $TOMCAT_HOME/lib which were apparently causing this. As soon as I removed them JavaMail worked correctly. Would it be possible to add something about that to the Ext-Email wiki page, just in case someone else has this issue? Many thanks for all of your help! Jamie This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest Feel free to add something to the wiki page, you should be able to add content. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix resolved JENKINS-16237 as Not A Defect Extended email plugin no longer sends messages on latest Reporter had some jars that were causing issues. Change By: Slide-O-Mix (11/Jan/13 1:17 PM) Status: Open Resolved Resolution: NotADefect This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest Can you try setting the following property and see if the email goes out? mail.smtp.quitwait=false This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest Do you have the security manager enabled in Tomcat? This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest To test this I ran the exact same Jenkins installation under Winstone - it works perfectly, so I definitely think this is related to Tomcat. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I'm still not able to replicate this even under Tomcat. The emails get sent just fine for me. Can you send me the test config you used? This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest The standard email functionality is doing this: EHLO ukfd-ecat 250-ukfd-ecat.eu.example.com 250-PIPELINING 250-SIZE 1024 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN DEBUG SMTP: Found extension "PIPELINING", arg "" DEBUG SMTP: Found extension "SIZE", arg "1024" DEBUG SMTP: Found extension "VRFY", arg "" DEBUG SMTP: Found extension "ETRN", arg "" DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" DEBUG SMTP: Found extension "8BITMIME", arg "" DEBUG SMTP: Found extension "DSN", arg "" DEBUG SMTP: use8bit false MAIL FROM:eubu...@example.com 250 2.1.0 Ok DEBUG SMTP: sendPartial set RCPT TO:jamie.penman-smith...@example.com 250 2.1.5 Ok DEBUG SMTP: Verified Addresses DEBUG SMTP: jamie.penman-smith...@example.com DATA 354 End data with CRLF.CRLF Date: Wed, 2 Jan 2013 15:23:26 + (GMT) From: EU Development Build Daemon eubu...@example.com Reply-To: eubu...@example.com To: jamie.penman-smith...@example.com Message-ID: 895820852.2.1357140206318.javamail.tom...@ukfd-ecat.eu.example.com Subject: Test email #1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit This is test email #1 sent from Jenkins . 250 2.0.0 Ok: queued as 4F8F620614 QUIT However, when email-ext sends the message it does not send anything: INFO: test2 #8 main build action completed: SUCCESS DEBUG: JavaMail version 1.4.4 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Oracle], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Oracle], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Oracle], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Oracle], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Oracle], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Oracle] DEBUG SMTP: useEhlo true, useAuth false DEBUG SMTP: trying to connect to host "ukfd-ecat", port 25, isSSL false 220 ukfd-ecat.eu.example.com ESMTP Postfix DEBUG SMTP: connected to host "ukfd-ecat", port: 25 EHLO ukfd-ecat 250-ukfd-ecat.eu.example.com 250-PIPELINING 250-SIZE 1024 250-VRFY 250-ETRN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN DEBUG SMTP: Found extension "PIPELINING", arg "" DEBUG SMTP: Found extension "SIZE", arg "1024" DEBUG SMTP: Found extension "VRFY", arg "" DEBUG SMTP: Found extension "ETRN", arg "" DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg "" DEBUG SMTP: Found extension "8BITMIME", arg "" DEBUG SMTP: Found extension "DSN", arg "" DEBUG SMTP: use8bit false MAIL FROM:eubu...@example.com 250 2.1.0 Ok DEBUG SMTP: sendPartial set RCPT TO:eubu...@example.com 250 2.1.5 Ok RCPT TO:jamie.penman-smith...@example.com 250 2.1.5 Ok DEBUG SMTP: Verified Addresses DEBUG SMTP: eubu...@example.com DEBUG SMTP: jamie.penman-smith...@example.com DATA 354 End data with CRLF.CRLF Date: Wed, 2 Jan 2013 15:31:46 + (GMT) From: EU Development Build Daemon eubu...@example.com Reply-To: eubu...@example.com To: eubu...@example.com, jamie.penman-smith...@example.com Message-ID: 804300964.1.1357140706648.javamail.tom...@ukfd-ecat.eu.example.com Subject: test MIME-Version: 1.0 Content-Type: multipart/mixed;. ...boundary="=_Part_0_1050019941.1357140706601" X-Jenkins-Job: test2 X-Jenkins-Result: SUCCESS QUIT DEBUG SMTP: exception reading response, THROW:. java.net.SocketTimeoutException: Read
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I'm concerned about the difference in the boundary info shown on the working and failing case. I'm not sure how the plugin would cause an issue there since this is just the JavaMail at this point. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I'll try under Tomcat and see if I can find anything. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest Can you post the log output from javamail? This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson created JENKINS-16237 Extended email plugin no longer sends messages on latest Issue Type: Bug Affects Versions: current Assignee: Slide-O-Mix Components: email-ext Created: 02/Jan/13 12:25 PM Description: The email-ext plugin no longer sends messages, instead it hangs after sending DATA: 10:47:33 Checking for post-build 10:47:33 Performing post-build step 10:47:33 Checking if email needs to be generated 10:47:33 Email was triggered for: Success 10:47:33 Sending email for trigger: Success 10:47:33 NOT overriding default server settings, using Mailer to create session 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 messageContentType = text/plain; charset=UTF-8 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Adding developers 10:47:33 Sending to requester 10:47:33 Changing BUILD_ID variable (job build time) with the date pattern MMdd. 10:47:33 Successfully created MimeMessage 10:47:33 Sending email to: jamie.penman-smith...@example.com 10:48:34 ERROR: Could not send email as a part of the post-build publishers. 10:48:34 javax.mail.MessagingException: Exception reading response; 10:48:34 nested exception is: 10:48:34 java.net.SocketTimeoutException: Read timed out 10:48:34 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2153) 10:48:34 at com.sun.mail.smtp.SMTPTransport.close(SMTPTransport.java:1186) 10:48:34 at javax.mail.Transport.send0(Transport.java:197) 10:48:34 at javax.mail.Transport.send(Transport.java:124) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher.sendMail(ExtendedEmailPublisher.java:308) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher._perform(ExtendedEmailPublisher.java:289) 10:48:34 at hudson.plugins.emailext.ExtendedEmailPublisher.perform(ExtendedEmailPublisher.java:249) 10:48:34 at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36) 10:48:34 at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804) 10:48:34 at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:779) 10:48:34 at hudson.ivy.IvyModuleSetBuild$RunnerImpl.cleanUp(IvyModuleSetBuild.java:606) 10:48:34 at hudson.model.Run.execute(Run.java:1587) 10:48:34 at hudson.model.Run.run(Run.java:1489) 10:48:34 at hudson.ivy.IvyModuleSetBuild.run(IvyModuleSetBuild.java:282) 10:48:34 at hudson.model.ResourceController.execute(ResourceController.java:88) 10:48:34 at hudson.model.Executor.run(Executor.java:236) 10:48:34 Caused by: java.net.SocketTimeoutException: Read timed out 10:48:34 at java.net.SocketInputStream.socketRead0(Native Method) 10:48:34 at java.net.SocketInputStream.read(SocketInputStream.java:129) 10:48:34 at com.sun.mail.util.TraceInputStream.read(TraceInputStream.java:110) 10:48:34 at java.io.BufferedInputStream.fill(BufferedInputStream.java:218) 10:48:34 at java.io.BufferedInputStream.read(BufferedInputStream.java:237) 10:48:34 at com.sun.mail.util.LineInputStream.readLine(LineInputStream.java:89) 10:48:34 at com.sun.mail.smtp.SMTPTransport.readServerResponse(SMTPTransport.java:2131) 10:48:34 ... 15 more 10:48:34 Some error occured trying to send the email...check the Jenkins log 10:48:34 Finished: SUCCESS Looking at the Postfix log in debug mode, I can see that it sends MAIL FROM and RCPT TO correctly, but after it sends DATA it does not send anything else. Eventually the connection times out and the exception above is reported in the log. The standard email functionality continues to work as normal. From postfix it only shows that it received 'DATA' but nothing more: Jan 2 12:07:59 ukfd-ecat postfix/smtpd32091: ukfd-ecat192.168.117.125: 220 ukfd-ecat.eu.example.com ESMTP Postfix Jan 2 12:07:59 ukfd-ecat postfix/smtpd32091: ukfd-ecat192.168.117.125: EHLO ukfd-ecat Jan 2 12:07:59 ukfd-ecat postfix/smtpd32091:
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest The plugin will not work with latest, this is a known issue because of breaking changes in core. Email-ext is not and will not be tested against anything but the latest LTS release. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest As a workaround, you can try overriding the default settings for the mail server info in the global config. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Jamie Penman-Smithson commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I've downgraded to the latest LTS release (1.480.1) and it still hangs at the same point. I've also overridden the global settings and it does the same thing: Overriding default server settings, creating our own session messageContentType = text/plain; charset=UTF-8 Changing BUILD_ID variable (job build time) with the date pattern MMdd. Adding recipients from recipient list Adding developers Sending to requester Successfully created MimeMessage Sending email to: eubu...@example.com jamie.penman-smith...@example.com Thanks, Jamie This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira
[JIRA] (JENKINS-16237) Extended email plugin no longer sends messages on latest
Slide-O-Mix commented on JENKINS-16237 Extended email plugin no longer sends messages on latest I am unable to reproduce this issue with the LTS. This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira