Could not Move or Copy Attachment due to Access is Denied
Symptoms
When attaching filess to an issue, a java.io.java.io.IOException: Access is denied
is thrown and the below error appears in the browser:
The following appears in the atlassian-jira.log
:
2012-12-18 23:02:25,573 http-bio-8521-exec-24 WARN admin 1382x390x1 1i6r8ys 0:0:0:0:0:0:0:1 /browse/AM-15 [atlassian.jira.util.AttachmentUtils] Unable to make thumbnail directory C:\JIRA\5.2.1\Home\data\attachments\AM\AM-15\thumbs
2012-12-18 23:02:25,624 http-bio-8521-exec-24 WARN admin 1382x390x1 1i6r8ys 0:0:0:0:0:0:0:1 /browse/AM-15 [jira.issue.thumbnail.DefaultThumbnailManager] Error writing to thumbnail file: C:\JIRA\5.2.1\Home\data\attachments\AM\AM-15\thumbs\_thumb_11800.png
java.io.IOException: File 'C:\JIRA\5.2.1\Home\data\attachments\AM\AM-15\thumbs\_thumb_11800.png' could not be created
at org.apache.commons.io.FileUtils.openOutputStream(FileUtils.java:175)
at org.apache.commons.io.FileUtils.touch(FileUtils.java:220)
Cause
The user running JIRA does not have the 'write' permission into the target folder - in this example, C:\JIRA\5.2.1\Home\data\attachments\AM\AM-15\thumbs
.
Resolution
Stop JIRA.
Fix the permissions for the below directories and all of their subdirectories:
$JIRA_HOME/ $JIRA_INSTALL/
Remove the contents of the following directory:
$JIRA_INSTALL/work
This will be rebuilt when JIRA is restarted.
- Start JIRA.