Could not create directory when creating backups stored on mounted NFS

お困りですか?

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

コミュニティに質問

症状

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

最終更新日 2018 年 1 月 16 日

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

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