Could not create directory when creating backups stored on mounted NFS

プラットフォームについて: 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 creating a backup the following will appear in the command line:

./fisheyectl.sh backup -f /backup/fisheye/backup_2014-25-06_1043.zip -c 9 --no-sql --cache INFO - Using log4j configuration file: /opt/atlassian/fisheye/log4j-client.xml INFO - FishEye arguments: [-f, /backup/fisheye/backup_2014-25-06_1043.zip, -c, 9, --no-sql, --cache] Could not create directory: /backup/fisheye Backup failed Could not create directory: /backup/fisheye

atlassian-fisheye-YYYY-MM-DD.log に次のエラーが返される。

2014-06-25 16:34:30,747 WARN [Thread-19833 ] fisheye ShutdownService-handleClient - Problem with command: backup. java.io.IOException: Could not create directory: /backup/fisheye at com.cenqua.fisheye.io.IOHelper.mkdirs(IOHelper.java:233) at com.atlassian.crucible.migration.BackupManagerImpl.createBackup(BackupManagerImpl.java:228) at com.atlassian.crucible.migration.BackupManagerImpl.access$000(BackupManagerImpl.java:55) at com.atlassian.crucible.migration.BackupManagerImpl$1.perform(BackupManagerImpl.java:129) at com.atlassian.crucible.migration.BackupManagerImpl$1.perform(BackupManagerImpl.java:127) at com.atlassian.crucible.maintenance.MaintenanceManager.doMaintenance(MaintenanceManager.java:108) at com.atlassian.crucible.migration.BackupManagerImpl.createBackupAtLocation(BackupManagerImpl.java:127) at com.cenqua.fisheye.ctl.ShutdownService.backup(ShutdownService.java:238) at com.cenqua.fisheye.ctl.ShutdownService.handleClient(ShutdownService.java:142) at com.cenqua.fisheye.ctl.ShutdownService.access$200(ShutdownService.java:37) at com.cenqua.fisheye.ctl.ShutdownService$3.run(ShutdownService.java:87) at java.lang.Thread.run(Thread.java:744)

原因

This is caused by a permission error that prevents the user running the backup command from writing and creating directories in the specified directory.

ソリューション

  • Verify that the user running the command has permission to write and create directories in the path provided.

    touch /backup/fecru/write_file mkdir /backup/fecru/new_dir
  • Verify that the fstab configuration includes the suid option which permits the operation of suid and sgid bits.

    <SERVER>:/volumes/pool-misc/Backups /backup nfs auto,rw,suid,noatime,nolock,bg,nfsvers=3,intr,tcp,actimeo=1800 0 0
更新日時: September 25, 2025

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

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