[JIRA] (JENKINS-59161) ERROR: 530 Authentication required

52 views
Skip to first unread message

aplsms@gmail.com (JIRA)

unread,
Aug 30, 2019, 6:43:05 PM8/30/19
to jenkinsc...@googlegroups.com
Andrii Petrenko created an issue
 
Jenkins / Bug JENKINS-59161
ERROR: 530 Authentication required
Issue Type: Bug Bug
Assignee: Adrien Lecharpentier
Attachments: PastedGraphic-1 copy.png
Components: mailer-plugin
Created: 2019-08-30 22:42
Environment: jenkins 2.187, 2.192
mailer plugin: 1.24, 1.25
Priority: Major Major
Reporter: Andrii Petrenko

authentication failed using mailer plugin and AWS SES (or sendgrid)

error:
Build step 'Execute shell' marked build as failure
Sending e-mails to:
apet...@trueaccord.com
ERROR: 530 Authentication required

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
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:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
 

setting recommended by AWS (https://us-west-2.console.aws.amazon.com/ses/home?region=us-west-2#smtp-settings) and sendgrid.

Authentication is working fine from the same host using postfix.

parameters:

awt.toolkit sun.awt.X11.XToolkit
executable-war /usr/share/jenkins/jenkins.war
file.encoding UTF-8
file.encoding.pkg sun .io
file.separator /
guice.disable.misplaced.annotation.check true
java.awt.graphicsenv sun.awt.X11GraphicsEnvironment
java.awt.headless true
java.awt.printerjob sun.print.PSPrinterJob
java.class.path /usr/share/jenkins/jenkins.war
java.class.version 52.0
java.endorsed.dirs /usr/local/openjdk-8/jre/lib/endorsed
java.ext.dirs /usr/local/openjdk-8/jre/lib/ext:/usr/java/packages/lib/ext
java.home /usr/local/openjdk-8/jre
java.io.tmpdir /tmp
java.library.path /usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
java.runtime.name OpenJDK Runtime Environment
java.runtime.version 1.8.0_222-b10
java.specification.name Java Platform API Specification
java.specification.vendor Oracle Corporation
java.specification.version 1.8
java.vendor Oracle Corporation
java.vendor.url http ://java .oracle .com/
java.vendor.url.bug http ://bugreport .sun .com /bugreport/
java.version 1.8.0_222
java.vm.info mixed mode
java.vm.name OpenJDK 64-Bit Server VM
java.vm.specification.name Java Virtual Machine Specification
java.vm.specification.vendor Oracle Corporation
java.vm.specification.version 1.8
java.vm.vendor Oracle Corporation
java.vm.version 25.222-b10
javamelody.About Monitoring https ://wiki .jenkins -ci .org /display /JENKINS /Monitoring
javamelody.analytics-id UA-1335263-7
javamelody.csrf-protection-enabled true
javamelody.custom-reports Jenkins Info,About Monitoring
javamelody.gzip-compression-disabled true
javamelody.http-transform-pattern /\d+/|(?<=/static/|/adjuncts/|/bound/)[\w\-]|(?<=/ws/|/user/|/testReport/|/javadoc/|/site/|/violations/file/|/cobertura/).|(?<=/job/).+(?=/descriptorByName/)
javamelody.Jenkins Info /systemInfo
javamelody.maven-repositories /var/jenkins_home/.m2/repository,http ://repo1 .maven .org /maven2 ,http ://repo .jenkins -ci .org /public
javamelody.no-database true
javamelody.storage-directory //var/jenkins_home/monitoring
javamelody.system-actions-enabled true
jenkins.model.Jenkins.slaveAgentPort 50000
jetty.git.hash e1bc35120a6617ee3df052294e433f3a25ce7097
jna.loaded true
jna.platform.library.path /usr/lib/x86_64-linux-gnu:/lib/x86_64-linux-gnu:/lib64:/usr/lib:/lib:/usr/local/openjdk-8/lib/amd64/jli:/usr/local/openjdk-8/lib/amd64
jnidispatch.path /var/jenkins_home/.cache/JNA/temp/jna4808791561566321017.tmp
line.separator
mail.smtp.sendpartial true
mail.smtp.starttls.enable true
mail.smtps.sendpartial true
os.arch amd64
os.name Linux
os.version 4.9.184-linuxkit
path.separator :
pid 6
sun.arch.data.model 64
sun.boot.class.path /usr/local/openjdk-8/jre/lib/resources.jar:/usr/local/openjdk-8/jre/lib/rt.jar:/usr/local/openjdk-8/jre/lib/sunrsasign.jar:/usr/local/openjdk-8/jre/lib/jsse.jar:/usr/local/openjdk-8/jre/lib/jce.jar:/usr/local/openjdk-8/jre/lib/charsets.jar:/usr/local/openjdk-8/jre/lib/jfr.jar:/usr/local/openjdk-8/jre/classes
sun.boot.library.path /usr/local/openjdk-8/jre/lib/amd64
sun.cpu.endian little
sun.cpu.isalist
sun.font.fontmanager sun.awt.X11FontManager
sun.io.unicode.encoding UnicodeLittle
sun.java.command /usr/share/jenkins/jenkins.war
sun.java.launcher SUN_STANDARD
sun.jnu.encoding UTF-8
sun.management.compiler HotSpot 64-Bit Tiered Compilers
sun.os.patch.level unknown
svnkit.http.methods Digest,Basic,NTLM,Negotiate
svnkit.ssh2.persistent false
user.dir /
user.home /var/jenkins_home
user.language en
user.name jenkins
user.timezone Etc/UTC

Environment Variables

Name  ↓ Value   
COPY_REFERENCE_FILE_LOG /var/jenkins_home/copy_reference_file.log
HOME /var/jenkins_home
HOSTNAME 019ab371eb61
JAVA_BASE_URL https ://github .com /AdoptOpenJDK /openjdk8 -upstream -binaries /releases /download /jdk8u222 -b10 /OpenJDK8U -jdk_
JAVA_HOME /usr/local/openjdk-8
JAVA_OPTS -Xmx4096m -Dmail.smtp.starttls.enable=true
JAVA_URL_VERSION 8u222b10
JAVA_VERSION 8u222
JENKINS_HOME /var/jenkins_home
JENKINS_INCREMENTALS_REPO_MIRROR https ://repo .jenkins -ci .org /incrementals
JENKINS_SLAVE_AGENT_PORT 50000
JENKINS_UC https ://updates .jenkins .io
JENKINS_UC_EXPERIMENTAL https ://updates .jenkins .io /experimental
JENKINS_VERSION 2.192
LANG C.UTF-8
PATH /usr/local/openjdk-8/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD /
REF /usr/share/jenkins/ref
SHLVL 0

Plugins

Name  ↓ Version    Enabled   
ace-editor 1.1 true
ansicolor 0.6.2 true
ant 1.10 true
antisamy-markup-formatter 1.6 true
apache-httpcomponents-client-4-api 4.5.5-3.0 true
authentication-tokens 1.3 true
aws-credentials 1.27 true
aws-java-sdk 1.11.594 true
bouncycastle-api 2.17 true
branch-api 2.5.4 true
build-timeout 1.19 true
build-token-root 1.5 true
cloudbees-folder 6.9 true
command-launcher 1.3 true
credentials 2.3.0 true
credentials-binding 1.20 true
crowd2 2.0.2 true
cvs 2.14 true
datadog 0.7.1 true
date-parameter 0.0.4 true
display-url-api 2.3.2 true
docker-commons 1.15 true
docker-java-api 3.0.14 true
docker-plugin 1.1.7 true
docker-workflow 1.19 true
durable-task 1.30 true
ec2 1.45 true
ec2-fleet 1.10.2 true
email-ext 2.66 true
emailext-template 1.1 true
external-monitor-job 1.7 true
gerrit-trigger 2.30.0 true
git 3.12.0 true
git-client 2.8.2 true
git-server 1.8 true
github 1.29.4 true
github-api 1.95 true
github-branch-source 2.5.6 true
gradle 1.33 true
greenballs 1.15 true
handlebars 1.1.1 true
icon-shim 2.0.3 true
jackson2-api 2.9.9.1 true
javadoc 1.5 true
jdk-tool 1.0 true
jobConfigHistory 2.23.1 true
jquery-detached 1.2.1 true
jsch 0.1.55.1 true
junit 1.28 true
kubernetes 1.18.3 true
kubernetes-credentials 0.4.1 true
ldap 1.20 true
lockable-resources 2.5 true
mailer 1.25 true
mapdb-api 1.0.9.0 true
matrix-auth 2.4.2 true
matrix-project 1.14 true
maven-plugin 3.4 true
momentjs 1.1.1 true
monitoring 1.79.0 true
naginator 1.18 true
node-iterator-api 1.5.0 true
pam-auth 1.5.1 true
pipeline-build-step 2.9 true
pipeline-github-lib 1.0 true
pipeline-graph-analysis 1.10 true
pipeline-input-step 2.11 true
pipeline-milestone-step 1.3.1 true
pipeline-model-api 1.3.9 true
pipeline-model-declarative-agent 1.1.1 true
pipeline-model-definition 1.3.9 true
pipeline-model-extensions 1.3.9 true
pipeline-rest-api 2.12 true
pipeline-stage-step 2.3 true
pipeline-stage-tags-metadata 1.3.9 true
pipeline-stage-view 2.12 true
plain-credentials 1.5 true
resource-disposer 0.13 true
run-condition 1.2 true
run-condition-extras 0.3 true
saml 1.1.2 true
sauce-ondemand 1.186 true
scm-api 2.6.3 true
scm-sync-configuration 0.0.10 true
script-security 1.62 true
secure-requester-whitelist 1.3 true
slack 2.32 true
ssh-agent 1.17 true
ssh-credentials 1.17.1 true
ssh-slaves 1.30.1 true
structs 1.20 true
subversion 2.12.2 true
throttle-concurrents 2.0.1 true
timestamper 1.10 true
token-macro 2.8 true
translation 1.16 true
trilead-api 1.0.5 true
variant 1.3 true
windows-slaves 1.4 true
workflow-aggregator 2.6 true
workflow-api 2.37 true
workflow-basic-steps 2.18 true
workflow-cps 2.74 true
workflow-cps-global-lib 2.15 true
workflow-durable-task-step 2.33 true
workflow-job 2.34 true
workflow-multibranch 2.21 true
workflow-scm-step 2.9 true
workflow-step-api 2.20 true
workflow-support 3.3 true
ws-cleanup 0.37 true

 

 

 

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

tommy@sparber.net (JIRA)

unread,
Sep 3, 2019, 3:49:04 AM9/3/19
to jenkinsc...@googlegroups.com
Tommy Sparber commented on Bug JENKINS-59161
 
Re: ERROR: 530 Authentication required

According to https://docs.aws.amazon.com/ses/latest/DeveloperGuide/smtp-connect.html you need to use SSL (check Use SSL).
For the "send Test E-Mail" feature there is currently a bug, but with the correct confugration task notification emails should be sent.

tommy@sparber.net (JIRA)

unread,
Sep 3, 2019, 8:57:04 AM9/3/19
to jenkinsc...@googlegroups.com

The "send Test E-Mail" feature is fixed in the recently released version 1.26.

paulcosma@gmail.com (JIRA)

unread,
Sep 3, 2019, 9:15:01 AM9/3/19
to jenkinsc...@googlegroups.com

Works fine now. Thanks a lot

adrien.lecharpentier@gmail.com (JIRA)

unread,
Sep 3, 2019, 9:18:03 AM9/3/19
to jenkinsc...@googlegroups.com

aplsms@gmail.com (JIRA)

unread,
Sep 4, 2019, 3:19:03 PM9/4/19
to jenkinsc...@googlegroups.com
Change By: Andrii Petrenko
Resolution: Fixed
Status: Resolved In Review

aplsms@gmail.com (JIRA)

unread,
Sep 4, 2019, 3:19:04 PM9/4/19
to jenkinsc...@googlegroups.com

Sorry, guys, but nothin fixed.

it works fine, when you are sending test e-mail, but nothing works when you sending notification from the job. cpuld you please take a look? maybe the same issue there?

 
ERROR: 530 Authentication required

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
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:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

aplsms@gmail.com (JIRA)

unread,
Sep 4, 2019, 4:14:03 PM9/4/19
to jenkinsc...@googlegroups.com
Andrii Petrenko edited a comment on Bug JENKINS-59161
Sorry, guys, but nothin fixed.

it works fine, when you are sending test e-mail, but nothing works when you sending notification from the job. cpuld could you please take a look? maybe the same issue there?

there is no difference with SSL or not SSL  

 
ERROR: 530 Authentication required

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1580)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1097)
at javax.mail.Transport.send0(Transport.java:195)
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:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)

jonathan.sokolowski@gmail.com (JIRA)

unread,
Sep 6, 2019, 2:18:03 AM9/6/19
to jenkinsc...@googlegroups.com

Facing the same issue (Test email works, using it from a build always results in "530 Authentication Required") since upgrading from mailer 1.24 to 1.26.

iserg9@gmail.com (JIRA)

unread,
Sep 9, 2019, 11:12:02 PM9/9/19
to jenkinsc...@googlegroups.com

I'm having the same issue. The test email works but the builds are getting a "503 Authentication Required" error whenever an email needs to be sent.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

travis.donia@contextmattersinc.com (JIRA)

unread,
Sep 10, 2019, 4:11:02 PM9/10/19
to jenkinsc...@googlegroups.com

Same issue; test email works but build emails fail in both 1.26 and 1.27

aplsms@gmail.com (JIRA)

unread,
Sep 17, 2019, 6:44:03 PM9/17/19
to jenkinsc...@googlegroups.com

tommy@sparber.net (JIRA)

unread,
Sep 18, 2019, 3:35:03 AM9/18/19
to jenkinsc...@googlegroups.com

Would you mind to post a debug output by running jenkins with `java -Dmail.debug=true ...`
It should look something like https://kodejava.org/how-do-i-debug-application-that-uses-javamail-apis/

The debug output should appear on the console/stdout.

jtavin@gmail.com (JIRA)

unread,
Sep 19, 2019, 7:07:03 AM9/19/19
to jenkinsc...@googlegroups.com

having same issue and emails not getting sent.

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required

jtavin@gmail.com (JIRA)

unread,
Sep 19, 2019, 7:10:02 AM9/19/19
to jenkinsc...@googlegroups.com
Joe Tavin edited a comment on Bug JENKINS-59161
having Experiencing same issue and with *v1.2.7* emails not getting sent.
{code:java}
com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
{code}

jtavin@gmail.com (JIRA)

unread,
Sep 19, 2019, 7:12:04 AM9/19/19
to jenkinsc...@googlegroups.com
Joe Tavin edited a comment on Bug JENKINS-59161
Experiencing same issue with *v1.2.7*  .

emails not getting sent.

Using Amazon SES  as SMTP server, using *
{ {mail}}* keyword in Pipeline
{
code:java}

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
{code}

jtavin@gmail.com (JIRA)

unread,
Sep 19, 2019, 7:15:02 AM9/19/19
to jenkinsc...@googlegroups.com
Joe Tavin edited a comment on Bug JENKINS-59161
Experiencing same issue with  mailer plugin  *v1.2.7*  .

emails not getting sent.

Using Amazon SES   as SMTP server, emails not getting sent.

When
using *{{mail}}* keyword in Pipeline , getting error
{code:java}

com.sun.mail.smtp.SMTPSendFailedException: 530 Authentication required
{code}


Test emails via "Test configuration" do work though..

jtavin@gmail.com (JIRA)

unread,
Sep 19, 2019, 9:50:03 AM9/19/19
to jenkinsc...@googlegroups.com

Resolved this by downgrading to v1.2.3.

aplsms@gmail.com (JIRA)

unread,
Sep 19, 2019, 10:43:03 AM9/19/19
to jenkinsc...@googlegroups.com

aplsms@gmail.com (JIRA)

unread,
Sep 19, 2019, 11:03:03 AM9/19/19
to jenkinsc...@googlegroups.com
Andrii Petrenko edited a comment on Bug JENKINS-59161
[https://pastebin.com/sp2Rtm1g]

Jira is breaking the output.


and another one with startls enabled: [https://pastebin.com/uWQtWDBS]

arguments:

 
{noformat}
--env JAVA_OPTS="-Xmx4096m -Dmail.debug=true -Dmail.smtp.starttls.enable=true" {noformat}

d.scain.farenzena@gmail.com (JIRA)

unread,
Sep 23, 2019, 5:47:02 AM9/23/19
to jenkinsc...@googlegroups.com

I believe this is caused by an issue of not storing the SMTP auth after an update. There is a new 1.28 version addressing the issue.

https://issues.jenkins-ci.org/browse/JENKINS-59430

aplsms@gmail.com (JIRA)

unread,
Sep 23, 2019, 2:17:03 PM9/23/19
to jenkinsc...@googlegroups.com

1.28 is not fixing this issue.

what i did: 

  1. upgrade jenkins to 2.196
  2. upgrade plugin to 1.28
  3. updated jenkins config with correct user name and password
  4. save changes
  5. restart jenkins 
  6. run test job.
  7. result: https://pastebin.com/nDuQ76KW

 

travis.donia@contextmattersinc.com (JIRA)

unread,
Sep 24, 2019, 1:20:04 PM9/24/19
to jenkinsc...@googlegroups.com

Can also say 1.28 doesn't resolve this for us either

tommy@sparber.net (JIRA)

unread,
Sep 26, 2019, 7:22:29 AM9/26/19
to jenkinsc...@googlegroups.com

This should be fixed with the PR 67 once it is approved, merged and released.

travis.donia@contextmattersinc.com (JIRA)

unread,
Oct 1, 2019, 12:13:06 PM10/1/19
to jenkinsc...@googlegroups.com

Thank you, Tommy Sparber – I can confirm the build artifact from PR 67 does fix it for us.

Reply all
Reply to author
Forward
0 new messages