Cannot Delete Issue Due to File Permission

お困りですか?

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

コミュニティに質問

症状

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)

原因

The permissions to the attachment path has been changed, which prevents JIRA from deleting the issue and accompanied attachments.  

ソリューション

  1. Jira を停止します。
  2. Navigate to the file path listed in the Attachment Path error
  3. Update the permission to the path to allow read/write access for the user starting JIRA
  4. Jira を起動します。
最終更新日 2016 年 3 月 30 日

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

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