Cannot Delete Issue Due to File Permission
Symptoms
The following appears in the atlassian-jira.log
:
2012-12-06 17:18:36,549 http-bio-8443-exec-87 ERROR user1 1038x5652x1 w1ttgm 10.32.4.66 /secure/DeleteIssue.jspa [jira.bc.issue.DefaultIssueService]There was an exception while trying to delete the issue 'TPP-1'.
com.atlassian.jira.exception.RemoveException: Attachment path '/var/atlassian/application-data/jira/data/attachments/TPP/TPP-1' is not a directory
at com.atlassian.jira.issue.managers.DefaultAttachmentManager.deleteAttachmentDirectory(DefaultAttachmentManager.java:241)
at com.atlassian.jira.issue.managers.DefaultAttachmentManager.deleteAttachmentDirectory(DefaultAttachmentManager.java:228)
at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.removeAttachments(DefaultIssueDeleteHelper.java:176)
at com.atlassian.jira.issue.managers.DefaultIssueDeleteHelper.deleteIssue(DefaultIssueDeleteHelper.java:109)
at com.atlassian.jira.issue.managers.DefaultIssueManager.deleteIssue(DefaultIssueManager.java:634)
at com.atlassian.jira.bc.issue.DefaultIssueService.delete(DefaultIssueService.java:348)
at com.atlassian.jira.bc.issue.DefaultIssueService.delete(DefaultIssueService.java:318)
at com.atlassian.jira.web.action.issue.DeleteIssue.doExecute(DeleteIssue.java:27) <+1> (ActionSupport.java:165)
at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:82) <+7> (DefaultInterceptorChain.java:39) (NestedInterceptorChain.java:31) (ChainedInterceptor.java:16) (DefaultInterceptorChain.java:35) (GenericDispatcher.java:221) (GenericDispatcher.java:150) (JiraWebworkActionDispatcher.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) <+14> (ApplicationFilterChain.java:305) (ApplicationFilterChain.java:210) (ChainedFilterStepRunner.java:78) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (XContentTypeOptionsNoSniffFilter.java:22) (AbstractHttpFilter.java:31) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (HeaderSanitisingFilter.java:44) (ApplicationFilterChain.java:243) (ApplicationFilterChain.java:210) (IteratingFilterChain.java:46) (DelegatingPluginFilter.java:66)
at com.atlassian.labs.botkiller.BotKillerFilter.doFilter(BotKillerFilter.java:36) <+3> (DelegatingPluginFilter.java:74) (IteratingFilterChain.java:42) (DelegatingPluginFilter.java:66)
Cause
The permissions to the attachment path has been changed, which prevents JIRA from deleting the issue and accompanied attachments.
Resolution
- Stop JIRA
- Navigate to the file path listed in the Attachment Path error
- Update the permission to the path to allow read/write access for the user starting JIRA
- Start JIRA
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.