After upgrading, Bamboo stop sending emails and throws 'Unknown encrypted data format' exception
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
Make note of the existing mail server settings.
Remove the existing mail server settings and save.
Reconfigure the mail server settings with the previous settings and save.
Was this helpful?