Bamboo fails to start ands throws No Server Key Configured exception

Platform Notice: Data Center Only - This article only applies to Atlassian apps 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

Bamboo requires a valid serverKey property in $BAMBOO_HOME/bamboo.cfg.xml. If this property is missing, empty, or set to an incorrect value, Bamboo will fail to start with a No server key configured exception. This can happen after a failed upgrade, a corrupted configuration file, or restoring a backup with an incomplete bamboo.cfg.xml.

The following appears in the atlassian-bamboo.log

2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------- 2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] 51102 : Make sure server key has been initialized and is valid (bootstrap) 2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------- 2026-11-16 11:37:33,779 ERROR [main] [ServerKeyIsValid] Server key hasn't been initialized or is invalid java.lang.IllegalStateException: No server key configured at com.google.common.base.Preconditions.checkState(Preconditions.java:515) at com.atlassian.bamboo.setup.DefaultBootstrapManager.getServerKey(DefaultBootstrapManager.java:536) at com.atlassian.bamboo.upgrade.tasks.validation.ServerKeyIsValid.doUpgrade(ServerKeyIsValid.java:16) at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.runValidationTask(BootstrapUpgradeManagerImpl.java:135) at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.lambda$runValidationTasks$0(BootstrapUpgradeManagerImpl.java:93) at com.atlassian.bamboo.upgrade.AbstractUpgradeManager.forEachTask(AbstractUpgradeManager.java:174) at com.atlassian.bamboo.upgrade.BootstrapUpgradeManagerImpl.runValidationTasks(BootstrapUpgradeManagerImpl.java:93) at com.atlassian.bamboo.setup.DefaultBootstrapManager.runValidationTasks(DefaultBootstrapManager.java:567) at com.atlassian.bamboo.setup.DefaultBootstrapManager.performPersistenceUpgrade(DefaultBootstrapManager.java:420) at com.atlassian.config.internal.bootstrap.DefaultAtlassianBootstrapManager.init(DefaultAtlassianBootstrapManager.java:76) at com.atlassian.bamboo.setup.BootstrapLoaderListener.contextInitialized(BootstrapLoaderListener.java:147) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4252) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4682) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1243) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1233) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:92) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:765) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:810) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1243) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1233) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:92) at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:145) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:765) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:201) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:433) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:875) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:170) at org.apache.catalina.startup.Catalina.start(Catalina.java:905) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:348) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

Cause

The serverKey property is missing from $ BAMBOO_HOME/bamboo.cfg.xml or is set to an invalid value. A valid serverKey value looks like this:

<property name="serverKey">0</property>

Diagnosis

We had customers unexpectedly failing with this error. Here is an atlassian-bamboo.log to demonstrate it:

atlassian-bamboo.log

2026-11-16 11:37:33,762 INFO [acquireClusterLock.quartz_Worker-1] [BambooClusterNodeHeartbeatServiceImpl] Primary lock acquired for node id b4c879bd-a690-4459-b520-00c57dbb0265 2026-11-16 11:37:33,763 INFO [main] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------- 2026-11-16 11:37:33,763 INFO [main] [BootstrapUpgradeManagerImpl] 1 : Assert that Bamboo isn't running on HSQL database (post-bootstrap) 2026-11-16 11:37:33,763 INFO [main] [BootstrapUpgradeManagerImpl] ---------------------------------------------------------------------- 2026-11-16 11:37:33,764 INFO [main] [BootstrapUpgradeManagerImpl] Task 1 completed successfully. 2026-11-16 11:37:33,765 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------- 2026-11-16 11:37:33,765 INFO [main] [BootstrapUpgradeManagerImpl] 2 : Validate not using in memory database (bootstrap) 2026-11-16 11:37:33,765 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------- 2026-11-16 11:37:33,765 INFO [main] [BootstrapUpgradeManagerImpl] Task 2 completed successfully. 2026-11-16 11:37:33,766 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------- 2026-11-16 11:37:33,766 INFO [main] [BootstrapUpgradeManagerImpl] 3 : Verify Java compatibility (bootstrap) 2026-11-16 11:37:33,766 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------- 2026-11-16 11:37:33,766 INFO [main] [JavaVersionIsSupported] Detected Java version 21.0.12.1, your version is supported. 2026-11-16 11:37:33,766 INFO [main] [BootstrapUpgradeManagerImpl] Task 3 completed successfully. 2026-11-16 11:37:33,767 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------- 2026-11-16 11:37:33,767 INFO [main] [BootstrapUpgradeManagerImpl] 4 : Validate that JDBC driver is available in classpath (bootstrap) 2026-11-16 11:37:33,767 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------- 2026-11-16 11:37:33,767 INFO [main] [BootstrapUpgradeManagerImpl] Task 4 completed successfully. 2026-11-16 11:37:33,767 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------------------------------------------------------------------ 2026-11-16 11:37:33,768 INFO [main] [BootstrapUpgradeManagerImpl] 10 : Validate if build number in local (pre-8.0) or shared (post-8.0) home directory matches database build number (bootstrap) 2026-11-16 11:37:33,768 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------------------------------------------------------------------ 2026-11-16 11:37:33,769 INFO [main] [BootstrapUpgradeManagerImpl] Task 10 completed successfully. 2026-11-16 11:37:33,770 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------- 2026-11-16 11:37:33,770 INFO [main] [BootstrapUpgradeManagerImpl] 2901 : Test if build number is applicable for upgrade (bootstrap) 2026-11-16 11:37:33,770 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------- 2026-11-16 11:37:33,770 INFO [main] [BootstrapUpgradeManagerImpl] Task 2901 completed successfully. 2026-11-16 11:37:33,771 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------ 2026-11-16 11:37:33,771 INFO [main] [BootstrapUpgradeManagerImpl] 2902 : Test if plan keys are correctly formatted (bootstrap) 2026-11-16 11:37:33,771 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------ 2026-11-16 11:37:33,773 INFO [0-NodeLifeStateService:pool-1-thread-1] [NodeLifeStateServiceImpl] Launching primary node responsibilities 2026-11-16 11:37:33,773 INFO [main] [BootstrapUpgradeManagerImpl] Task 2902 completed successfully. 2026-11-16 11:37:33,774 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------------- 2026-11-16 11:37:33,774 INFO [main] [BootstrapUpgradeManagerImpl] 4300 : Make sure there's single row in HIBERNATE_UNIQUE_KEY table (bootstrap) 2026-11-16 11:37:33,774 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------------- 2026-11-16 11:37:33,775 INFO [main] [BootstrapUpgradeManagerImpl] Task 4300 completed successfully. 2026-11-16 11:37:33,776 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------------------------- 2026-11-16 11:37:33,776 INFO [main] [BootstrapUpgradeManagerImpl] 4410 : Make sure that all branch keys start with their master's chain key (bootstrap) 2026-11-16 11:37:33,776 INFO [main] [BootstrapUpgradeManagerImpl] ------------------------------------------------------------------------------------- 2026-11-16 11:37:33,777 INFO [main] [BootstrapUpgradeManagerImpl] Task 4410 completed successfully. 2026-11-16 11:37:33,778 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------------- 2026-11-16 11:37:33,778 INFO [main] [BootstrapUpgradeManagerImpl] 51012 : Make sure that MySQL server uses InnoDB engine for tables (bootstrap) 2026-11-16 11:37:33,778 INFO [main] [BootstrapUpgradeManagerImpl] ----------------------------------------------------------------------------- 2026-11-16 11:37:33,778 INFO [main] [BootstrapUpgradeManagerImpl] Task 51012 completed successfully. 2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------- 2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] 51102 : Make sure server key has been initialized and is valid (bootstrap) 2026-11-16 11:37:33,779 INFO [main] [BootstrapUpgradeManagerImpl] -------------------------------------------------------------------------- 2026-11-16 11:37:33,779 ERROR [main] [ServerKeyIsValid] Server key hasn't been initialized or is invalid java.lang.IllegalStateException: No server key configured

The serverKey was introduced in Bamboo 5.11. The validation that checks for it runs on every startup for all current Bamboo versions, so a missing or invalid serverKey in bamboo.cfg.xml will prevent Bamboo from starting.

Resolution

Retrieve property from backup

If you've encountered this issue during an upgrade or migration, you should be able to find this value in any previous or backup copies of your $BAMBOO_HOME/bamboo.cfg.xml file. Recreate this property with the same value as was set previously and restart Bamboo.

Recalculate property from database

If you cannot determine the previous value of this property from an old or backup copy of bamboo.cfg.xml, you can recalculate the correct value from your database. The value calculation is a bitwise operation of OID >> 53 where the OID value can be taken from any row from the project table or build table, as well as a number of other tables.

PostgreSQL and MySQL

The following query will calculate the correct serverKey value using the built-in right bitshift operator

SELECT OID >> 53 FROM PROJECT LIMIT 1;

SQL Server and Oracle

SQL Server/T-SQL and Oracle don't support native bitwise operations, so they must be performed manually.

  1. Select the first OID value from the PROJECT table, e.g. for SQL Server:

    SELECT TOP 1 OID FROM PROJECT;
  2. Perform the bitshift operation separately, using the OID value from the previous query. For example, if the OID value was 1234567890:

    • Python

      1234567890 >> 53
    • Bash/shell

      echo $((1234567890 >> 53))

Add the serverKey property using the output from the above and restart the Bamboo application:

<property name="serverKey">OUTPUT-FROM-ABOVE</property>

Updated on November 16, 2026

Still need help?

The Atlassian Community is here for you.