After upgrading, Bamboo stop sending emails and throws 'Unknown encrypted data format' exception

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Problem

After upgrading, Bamboo stops sending email notifications.

The following appears in the atlassian-bamboo.log

2017-05-09 08:11:10,903 WARN [mail-queue-processor-pool-15-thread-1] [EmailService] Uncaught exception while processing mail queue
java.lang.IllegalArgumentException: Unknown encrypted data format: [xxxxxxx]
at com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceInternalImpl$ArmoredString.from(SecretEncryptionServiceInternalImpl.java:78)
at com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceInternalImpl.decrypt(SecretEncryptionServiceInternalImpl.java:123)
at sun.reflect.GeneratedMethodAccessor303.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at com.sun.proxy.$Proxy228.decrypt(Unknown Source)
at com.atlassian.bamboo.crypto.instance.SecretEncryptionServiceImpl.decrypt(SecretEncryptionServiceImpl.java:24)
at com.atlassian.bamboo.mail.SMTPMailServerWithEncryptedPassword$EncryptedPasswordAuthenticator.getUnencryptedPassword(SMTPMailServerWithEncryptedPassword.java:54)
at com.atlassian.bamboo.mail.SMTPMailServerWithEncryptedPassword$EncryptedPasswordAuthenticator.getPasswordAuthentication(SMTPMailServerWithEncryptedPassword.java:45)
at javax.mail.Authenticator.requestPasswordAuthentication(Authenticator.java:114)
at javax.mail.Session.requestPasswordAuthentication(Session.java:881)
at javax.mail.Service.connect(Service.java:377)
at javax.mail.Service.connect(Service.java:245)
at javax.mail.Service.connect(Service.java:194)
at com.atlassian.mail.server.impl.SMTPMailServerImpl.sendWithMessageId(SMTPMailServerImpl.java:185)
at com.atlassian.mail.server.impl.SMTPMailServerImpl.send(SMTPMailServerImpl.java:162)
at com.atlassian.bamboo.mail.EmailService.sendEmailSynchronously(EmailService.java:138)
at com.atlassian.bamboo.mail.EmailService$MailQueueProcessor.run(EmailService.java:83)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)

Cause

Bamboo is unable to process the existing passwords for the mail server.

Resolution

  1. Make note of the existing mail server settings.
  2. Remove the existing mail server settings and save.
  3. Reconfigure the mail server settings with the previous settings and save.

 

Last modified on May 12, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.