Bamboo startup fails when the legacy EBS handling has a null value

Still need help?

The Atlassian Community is here for you.

Ask the community

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

  1. Shutdown Bamboo;
  2. Backup the database, for safety;
  3. Run the query below:

    UPDATE elastic_image SET legacy_ebs_handling = 0 WHERE legacy_ebs_handling IS NULL;
  4. Start Bamboo.

 

Last modified on Aug 7, 2015

Was this helpful?

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