Bamboo fails to start up after upgrade to 8.0 or higher with upgrade task 70303 throwing FileNotFoundException

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform Notice: Server and Data Center Only. This article only applies to Atlassian products on the server and data center platforms.


Bamboo fails to start up after an attempt to upgrade the application to version 8.0 or higher with the following exception in the <bamboo-home>/logs/atlassian-bamboo.log file:

2021-10-04 09:38:41,295 INFO [localhost-startStop-1] [AbstractUpgradeManager] ---------------------------------------------------------------------------------------
2021-10-04 09:38:41,295 INFO [localhost-startStop-1] [AbstractUpgradeManager] 70303 : Correct EC2 key and certificate path after reorganising Bamboo Home (bootstrap)
2021-10-04 09:38:41,295 INFO [localhost-startStop-1] [AbstractUpgradeManager] ---------------------------------------------------------------------------------------
2021-10-04 09:38:41,310 ERROR [localhost-startStop-1] [AbstractUpgradeManager] io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: Unexpected exception
io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.RuntimeException: Unexpected exception
        at io.atlassian.util.concurrent.LazyReference.getInterruptibly(
        at io.atlassian.util.concurrent.LazyReference.get(
        at com.atlassian.bamboo.upgrade.ConfigurationUpgrader.getDocument(
        at com.atlassian.bamboo.upgrade.AbstractXmlUpgrader.getRootElement(
        at com.atlassian.bamboo.upgrade.AbstractXmlUpgrader.getElement(
        at com.atlassian.bamboo.upgrade.tasks.v8_0.UpgradeTask70303FixEc2ConfigurationAfterHomeReorg.fixPathIfNecessary(
        at com.atlassian.bamboo.upgrade.tasks.v8_0.UpgradeTask70303FixEc2ConfigurationAfterHomeReorg.doUpgrade(
        at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.runUpgradeTask(
        at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.doUpgrade(
        at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(
        at com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager.init(
        at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(
        at org.apache.catalina.core.StandardContext.listenerStart(
        at org.apache.catalina.core.StandardContext.startInternal(
        at org.apache.catalina.util.LifecycleBase.start(
        at org.apache.catalina.core.ContainerBase$
        at org.apache.catalina.core.ContainerBase$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.RuntimeException: Unexpected exception
        at com.atlassian.bamboo.util.BambooObjectUtils.asRuntimeException(
        at com.atlassian.bamboo.upgrade.ConfigurationUpgrader$1.get(
        at com.atlassian.bamboo.upgrade.ConfigurationUpgrader$1.get(
        at io.atlassian.util.concurrent.Lazy$Strong.create(
        at io.atlassian.util.concurrent.LazyReference$
        at io.atlassian.util.concurrent.LazyReference.getInterruptibly(
        ... 20 more
Caused by: File 'C:\bamboo-home\xml-data\configuration\administration.xml' does not exist
        at com.atlassian.bamboo.upgrade.ConfigurationUpgrader$1.get(
        ... 24 more
2021-10-04 09:38:41,310 INFO [localhost-startStop-1] [AbstractUpgradeManager] Task 70303 completed successfully.


Bamboo 8.0 or higher.


Bamboo 8 introduced major changes to the <bamboo-home>. The new organization is a requirement for using multiple nodes with Bamboo Data Center, but this upgrade affects every type of Bamboo installation, including Server and single-node Data Center setups. Part of the process consists of moving files located inside the <bamboo-home>/xml-data/configuration to the new <bamboo-shared-home>/configuration folder. In order to verify whether you are affected by the problem described in this article we advise you to:

  1. Open your <bamboo-home>/bamboo.cfg.xml file and look for the value of the property. If it's still pointing to ${bambooHome}/configuration there's a great chance you're running into the issue described here. A successful upgrade would've updated this property to point to the new ${bambooSharedHome} folder.
  2. Check that the administration.xml file exists inside both a) <bamboo-home>/xml-data/configuration and b) <bamboo-shared-home>/configuration folders. You should not have the administration.xml file inside the <bamboo-home>/xml-data/configuration folder anymore, only at the new location: <bamboo-shared-home>/configuration. This means that the administration.xml file was properly moved to the new location even though the property is still pointing to the old location. This means that part of the upgrade task was completed successfully but not all of it.
  3. Check and compare the contents of the <bamboo-home>/xml-data/configuration and <bamboo-shared-home>/configuration folders. If you're running into the issue described in this article you'll likely have more files inside the old <bamboo-home>/xml-data/configuration folder than the new <bamboo-shared-home>/configuration indicating that the file transfer between folders did not complete successfully.


This problem happens when the upgrade task responsible for moving files from the old <bamboo-home>/xml-data/configuration to the new <bamboo-shared-home>/configuration folder does not complete successfully leaving some of the files inside the old <bamboo-home>/xml-data/configuration folder and some in the new <bamboo-shared-home>/configuration folder.

The underlying cause can vary (e.g. permissions) but it causes Bamboo to not update some of the properties inside <bamboo-home>/bamboo.cfg.xml file (e.g. to point to the new ${bambooSharedHome}. Bamboo fails to start up because it looks for the administration.xml in the (wrong) old <bamboo-home>/xml-data/configuration folder.


The ideal solution would be to find and fix whatever stopped Bamboo from being able to move the files from <bamboo-home>/xml-data/configuration to the new <bamboo-shared-home>/configuration folder and redo the upgrade from scratch. However, this may not be possible if you have already started the upgrade process without taking a proper backup of the application or filesystem + database. In this case, if you can't start from scratch we recommend that you:

  1. Stop Bamboo.
  2. Open the <bamboo-home>/bamboo.cfg.xml file and update the property to point to the new ${bambooSharedHome}:

  3. Create a backup of the existing <bamboo-shared-home>/shared/configuration folder or simply move it to another location outside the <bamboo-shared-home> directory.
  4. Copy all of the remaining files from <bamboo-home>/xml-data/configuration into the <bamboo-shared-home>/configuration directory.
  5. Start Bamboo.

This should allow Bamboo to start up properly and stop reporting a missing administration.xml file.

Last modified on Feb 7, 2022

Was this helpful?

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