Error Occurs while Creating Attachment
プラットフォームについて: 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 は除く
症状
The following error show in the logs when attaching a file to an issue:
2009-11-23 10:15:37,371 TP-Processor94 ERROR [jira.issue.fields.AttachmentSystemField] Error occurred while creating attachment.
com.atlassian.jira.web.util.AttachmentException: Cannot write to attachment directory. Check that the application server and JIRA have permissions to write to: /usr/local/jira/attachments/NOV/NOV-83753
at com.atlassian.jira.util.AttachmentUtils.checkValidAttachmentDirectory(AttachmentUtils.java:109)
原因
Linux's ext3 file-system has a limitation of 32000 maximum sub-folders per folder. JIRA creates a sub-folder for each issue that has a file attachment. When running JIRA with this file-system, the system hits the maximum number of sub-folders and the above error is thrown.
回避策
Create a sym link for some of the attachments
添付ファイルを削除する
ソリューション
The current solution is to change the file-system to ext4.
この内容はお役に立ちましたか?