Artifacts with undefined size caused Bamboo export to fail

プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム

この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。

*Fisheye および Crucible は除く

症状

When exporting Bamboo backup with only the build results, it works fine but when you select the other options like the "export results" and/or the "export artifacts", it crashed. The following appears in the log files:

Export has failed. Errors encountered while exporting: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.build.artifact.DefaultArtifactLink.size; nested exception is net.sf.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.atlassian.bamboo.build.artifact.DefaultArtifactLink.size.

原因

One or more of your builds have artifacts with no size defined. This can also happen if there are wrong linkages between the builds and the artifacts. This caused database corruption. Use the following queries to determine the level:

select * from BRS_CONSUMED_SUBSCRIPTION where artifact_link_id in (select artifact_link_id from BRS_ARTIFACT_LINK where ARTIFACT_SIZE is NULL); select * from BRS_ARTIFACT_LINK where ARTIFACT_SIZE is NULL;

ソリューション

If the above returned some entries, run the below queries in that order to fix the issue. You will need to restart the server for the changes to take effect.

delete from BRS_CONSUMED_SUBSCRIPTION where artifact_link_id in (select artifact_link_id from BRS_ARTIFACT_LINK where ARTIFACT_SIZE is NULL); delete from BRS_ARTIFACT_LINK where ARTIFACT_SIZE is NULL;
更新日時: September 25, 2025

さらにヘルプが必要ですか?

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