Bamboo fails to start post upgrade

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

Summary

Bamboo does not start post-upgrade.

Environment

Any version of Bamboo.

Diagnosis

If you have performed Bamboo upgrade recently (from any version to a new version) and you see the below errors in the atlassian.bamboo.log file:

1 2 3 4 5 6 7 8 023-01-17 07:14:37,245 ERROR [nodeHeartbeat.quartz_Worker-1] [JobLauncher] Scheduled job with ID 'com.atlassian.bamboo.beehive.BambooClusterNodeHeartbeatServiceImpl' failed com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Container is not setup at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:152) ~[atlassian-util-concurrent-2.3.0.jar:?] at com.atlassian.util.concurrent.LazyReference.get(LazyReference.java:115) ~[atlassian-util-concurrent-2.3.0.jar:?] at com.atlassian.bamboo.beehive.AbstractBambooRawJdbcDao.withDatabaseConnection(AbstractBambooRawJdbcDao.java:34) ~[atlassian-bamboo-web-9.1.0.jar:?] ... Caused by: java.lang.IllegalStateException: Container is not setup at com.atlassian.spring.container.LazyComponentReference.create(LazyComponentReference.java:41) ~[atlassian-spring-2.0.8.jar:?]
1 2 3 2023-01-16 20:46:40,800 FATAL [main] [DefaultBootstrapManager] Pre-bootstrap upgrade tasks failed com.atlassian.upgrade.UpgradeException: Pre-bootstrap upgrade tasks failed: [Task for build 70302 failed with exception: Unknown I/O error listing contents of directory: C:\bamboo-home\xml-data\build-dir\EDRP-YEB-JOB1] at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:387) ~[atlassian-bamboo-web-9.1.0.jar:?]

Cause

The issue is due to Bamboo not finding the required data in place when performing migration of the content xml-data to the new directory structure. Please check if the upgrade was started using the wrong user account. This can cause the process not to have access to the whole folder structure and Bamboo fails to start

Solution

Start Bamboo upgrade with the correct user.

Updated on April 14, 2025

Still need help?

The Atlassian Community is here for you.