Bamboo returns error when shippedWithBamboo has null values

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

問題

Elastic Bamboo errors are pushed to UI when null values are in shipped_with_bamboo column. 

2015-11-16 16:55:06,471 INFO [localhost-startStop-1] [ElasticImageConfigurationManagerImpl] Checking if stock EC2 images need updating...
2015-11-16 16:55:06,534 INFO [localhost-startStop-1] [DefaultErrorHandler] Recording an error: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl.shippedWithBamboo; 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.shippedWithBamboo
2015-11-16 16:55:06,540 ERROR [localhost-startStop-1] [BambooContainer] Unable to update elastic configuration.
org.springframework.orm.hibernate3.HibernateSystemException: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl.shippedWithBamboo; 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.shippedWithBamboo

原因

The root cause of this issue is that the elastic_image  table has a column {{shipped_with_bamboo}} which can only accept an integer value. If that column has a null value, Bamboo pushes the error to Bamboo UI. You can check this by running the command below:

SELECT name,ami_image_id,shipped_with_bamboo FROM elastic_image;

 

ソリューション

(warning) Backup database before making any modifications

  1. Stop Bamboo
  2. 次のコマンドを実行します。

    UPDATE elastic_image SET shipped_with_bamboo = 0 WHERE shipped_with_bamboo IS NULL;
  3. Start Bamboo
最終更新日 2016 年 4 月 21 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.