Bamboo startup fails when the legacy EBS handling has a null value
Symptoms
Bamboo fails to start. This error is written in the logs:
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:
SELECT * FROM elastic_image WHERE legacy_ebs_handling IS NULL;
Resolution
- Shutdown Bamboo;
- Backup the database, for safety;
Run the query below:
UPDATE elastic_image SET legacy_ebs_handling = 0 WHERE legacy_ebs_handling IS NULL;
- Start Bamboo.
Last modified on Aug 7, 2015
Powered by Confluence and Scroll Viewport.