Error Occurs while Creating Attachment
症状
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.
Last modified on Mar 12, 2024
Powered by Confluence and Scroll Viewport.