Could not Move or Copy Attachment due to Access is Denied

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

When attaching files to an issue, a java.io.java.io.IOException: Access is denied is thrown and the below error appears in the browser:

(Auto-migrated image: description temporarily unavailable)

The following appears in the atlassian-jira.log:

1 2 3 4 5 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

  1. Stop JIRA.

  2. Fix the permissions for the below directories and all of their subdirectories:

    1 2 $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.

    1 2 3 4 5 6 7 8 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

    Expand for Windows instructions...

    Please refer to this Techotopia documentation for further information.

  3. Remove the contents of the following directory:

    1 $JIRA_INSTALL/work

    ℹ️ This will be rebuilt when JIRA is restarted.

  4. Start JIRA.

Updated on April 15, 2025

Still need help?

The Atlassian Community is here for you.