Bamboo startup fails when the legacy EBS handling has a null value
症状
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
原因
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;
ソリューション
- Shutdown Bamboo;
- Backup the database, for safety;
以下のクエリを実行してください。
UPDATE elastic_image SET legacy_ebs_handling = 0 WHERE legacy_ebs_handling IS NULL;
- Start Bamboo.
最終更新日 2015 年 8 月 7 日
Powered by Confluence and Scroll Viewport.