Bamboo startup fails when the legacy EBS handling has a null value
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
Symptoms
Bamboo fails to start. This error is written in the logs:
1
Elastic Bamboo Error : Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl.legacyEbsHandlingEnabled; nested exception is org.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl.legacyEbsHandlingEnabled
Cause
The root cause of this issue is that the ELASTIC_IMAGE
table has a column LEGACY_EBS_HANDLING which can only accept an integer value. If that column has a null value, Bamboo complains and fails with the error above. You can check this by running the command below:
1
SELECT * FROM elastic_image WHERE legacy_ebs_handling IS NULL;
Resolution
Shutdown Bamboo;
Backup the database, for safety;
Run the query below:
1
UPDATE elastic_image SET legacy_ebs_handling = 0 WHERE legacy_ebs_handling IS NULL;
Start Bamboo.
Was this helpful?