Bamboo Data Center fails to upgrade with a 'FileNotFoundException'
プラットフォームについて: Data Center - この記事は、Data Center プラットフォームのアトラシアン製品に適用されます。
このナレッジベース記事は製品の Data Center バージョン用に作成されています。Data Center 固有ではない機能の Data Center ナレッジベースは、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。サーバー*製品のサポートは 2024 年 2 月 15 日に終了しました。サーバー製品を利用している場合は、アトラシアンのサーバー製品のサポート終了のお知らせページにて移行オプションをご確認ください。
*Fisheye および Crucible は除く
要約
When upgrading Bamboo 7.0.x to a newer version, Bamboo fails to upgrade on task 'UpgradeTask70302ReorganiseHomeDirectory
' with a FileNotFoundException
while attempting to move contents from <bamboo-home>/artifacts
to <bamboo-home>/shared/artifacts
. This issue is due to the presence of symbolic links in the artifacts folder that Bamboo cannot interpret.
環境
The solution has been validated in Bamboo 7.0 but may be applicable to other versions.
診断
The following error message can be seen in the <bamboo-home>/logs/atlassian-bamboo.log
indicating that the artifacts cannot be moved to the <bamboo-home>/shared/artifacts
folder.
INFO [localhost-startStop-1] [UpgradeTask70302ReorganiseHomeDirectory] Moving /bamboo-home/artifacts to /bamboo-home/shared/artifacts...
ERROR [localhost-startStop-1] [AbstractUpgradeManager] java.io.FileNotFoundException: Source '/bamboo-home/artifacts/TTT-DC' does not exist
java.io.FileNotFoundException: Source '/bamboo-home/artifacts/TTT-DC' does not exist
at org.apache.commons.io.FileUtils.validateMoveParameters(FileUtils.java:3124)
at org.apache.commons.io.FileUtils.moveToDirectory(FileUtils.java:2359)
at com.atlassian.bamboo.util.BambooFileUtils.moveDirectoryContentToDirectory(BambooFileUtils.java:380)
原因
The error is caused by symbolic links within the <bamboo-home>/artifacts
directory. Bamboo's upgrade process cannot properly handle these symlinks, leading to the FileNotFoundException
.
ソリューション
Validate and Remove Symbolic Links: Identify and remove all symbolic links by running the ls -lart command in the <
bamboo-home>
/artifacts
directory.ls -lart /bamboo-home/artifacts
- Manually Move Content: Alternatively, manually move all contents from /
bamboo-home/artifacts
to/bamboo-home/shared/artifacts
.