Bamboo scheduled backups fail with java.io.IOException - not a file

お困りですか?

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

コミュニティに質問

プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く

問題

When logging into Bamboo, you see a banner saying "Bamboo failed to run the backup on DATE. See the logs for further details."

atlassian-bamboo.log に次のメッセージが表示される

2016-10-14 21:08:24,604 ERROR [scheduler_Worker-1] [ScheduledBackupJob] java.io.IOException: <artifact file path> (not a file)

診断

環境

  • Scheduled artifact backup enabled


Diagnostic Steps

To rule out the issue being file corruption, you can run the following to see if the files are valid:

  • jar -tf <filename>
  • file <filename>

原因

When configuring scheduled backups, Bamboo requires the configuration of a "Backup file date pattern" to differentiate between backup files. That said, this field accepts any pattern letters per https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html so it is possible to create naming conflicts. For example, if you define a simple pattern such as "Day name in week" (pattern letter 'E'), Bamboo will attempt to create a backup file with a duplicate filename (in one week). 


回避策

Prevent the file naming conflict:

Option A: 

Change the naming pattern of backup files in Administration >> Scheduled backups

Reference: https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html

Option B:

Move the backup files out of bamboo backup directory to another location before the next scheduled backup.

 

最終更新日 2016 年 11 月 18 日

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

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