JIRA Bulk operation fails with Attachment path is not a directory message
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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.
*Except Fisheye and Crucible
Symptoms
The following appears in the atlassian-jira.log
:
1
2
3
4
5
6
7
8
9
10
11
12
2013-11-18 13:46:32,910 http-bio-8080-exec-5 ERROR admin 826x7908x1 1cp77z6 192.168.1.149 /secure/views/bulkedit/BulkDeletePerform.jspa [action.issue.bulkedit.BulkDelete] Error while performing BulkDeleteOperation
com.atlassian.jira.exception.RemoveException: Attachment path '/var/atlassian/application-data/jira/data/attachments/TEST/TEST-1001' is not a directory
at com.atlassian.jira.issue.managers.DefaultAttachmentManager.deleteAttachmentDirectory(DefaultAttachmentManager.java:242)
at com.atlassian.jira.issue.managers.DefaultAttachmentManager.deleteAttachmentDirectory(DefaultAttachmentManager.java:228)
at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.removeAttachments(DefaultIssueDeleteHelper.java:192)
at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.deleteIssue(DefaultIssueDeleteHelper.java:124)
at com.atlassian.jira.issue.managers.DefaultIssueManager.deleteIssue(DefaultIssueManager.java:808)
at com.atlassian.jira.bulkedit.operation.BulkDeleteOperation.perform(BulkDeleteOperation.java:73)
at com.atlassian.jira.bulkedit.operation.BulkDeleteOperation.perform(BulkDeleteOperation.java:57)
at com.atlassian.jira.web.action.issue.bulkedit.BulkDelete.doPerform(BulkDelete.java:137) <+3>
at java.lang.reflect.Method.invoke(Unknown Source)
at webwork.util.InjectionUtils$DefaultInjectionImpl.invoke(InjectionUtils.java:70)
Cause
The JIRA user doesn't have the necessary read/write permissions in the <<JIRA_HOME>> or attachments folder.
Resolution
Grant read and write permissions for the JIRA users in the <<JIRA_HOME>> folders and all of the folders inside it.
Was this helpful?