Could not Move or Copy Attachment due to Access is Denied
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
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)
The user running JIRA does not have the 'write' permission into the target folder - in this example,
Fix the permissions for the below directories and all of their subdirectories:
$JIRA_HOME/ $JIRA_INSTALL/Expand for Linux instructions...
These instructions refer to the default user, group & installation paths for JIRA, as if it were installed using the bundled installer. If you're unsure of what these permissions should be, please consult with your System Administrator and the user who installed JIRA.
sudo chown -R jira:jira /var/atlassian/application-data/jira sudo chown -R jira:jira /opt/atlassian/jira/logs sudo chown -R jira:jira /opt/atlassian/jira/temp sudo chown -R jira:jira /opt/atlassian/jira/work chmod -R u=rwx,g=rx,o=rx /var/atlassian/application-data/jira chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/logs chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/temp chmod -R u=rwx,g=rx,o=rx /opt/atlassian/jira/work
Remove the contents of the following directory:
This will be rebuilt when JIRA is restarted.
- Start JIRA.