Project

General

Profile

Actions

Bug #44515

closed

jenkins: unable to send email when job fails

Added by Alfonso Martínez about 4 years ago. Updated about 4 years ago.

Status:
Resolved
Priority:
Normal
Category:
testing
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

https://jenkins.ceph.com/view/all/job/ceph-api-nightly-master-e2e/97/console

[ 77%] Built target rbd_internal
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
Build step 'Execute shell' marked build as failure
Sending e-mails to: ceph-qa@ceph.io
ERROR: Could not connect to SMTP host: localhost, port: 25
javax.mail.MessagingException: Could not connect to SMTP host: localhost, port: 25;
  nested exception is:
    java.net.ConnectException: Connection refused (Connection refused)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1934)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:638)
    at javax.mail.Service.connect(Service.java:295)
    at javax.mail.Service.connect(Service.java:176)
    at javax.mail.Service.connect(Service.java:125)
    at javax.mail.Transport.send0(Transport.java:194)
    at javax.mail.Transport.send(Transport.java:124)
    at hudson.tasks.MailSender.run(MailSender.java:130)
    at hudson.tasks.Mailer.perform(Mailer.java:175)
    at hudson.tasks.Mailer.perform(Mailer.java:138)
    at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
    at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    at hudson.model.Build$BuildExecution.post2(Build.java:186)
    at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    at hudson.model.Run.execute(Run.java:1878)
    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    at hudson.model.ResourceController.execute(ResourceController.java:97)
    at hudson.model.Executor.run(Executor.java:427)
Caused by: java.net.ConnectException: Connection refused (Connection refused)
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:607)
    at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:286)
    at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:231)
    at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1900)
    ... 18 more
Finished: FAILURE
Actions #1

Updated by Lenz Grimmer about 4 years ago

  • Assignee set to David Galloway

@david, would you mind taking a look at this? Looks like the SMTP configuration on that node is borked...

Actions #2

Updated by David Galloway about 4 years ago

  • Status changed from New to In Progress

I installed postfix on the Jenkins machine and was able to send myself a test e-mail from the Jenkins settings.

Actions #3

Updated by David Galloway about 4 years ago

  • Status changed from In Progress to Resolved

Looks like e-mails for another job are going out. They get greylisted and delayed by a few minutes but they're working at least.

I'll resolve this but feel free to reopen and/or ping me if you continue to see this problem.

Actions

Also available in: Atom PDF