Can't save attachment to issue

Hi,

When I try to attach a file to an issue, I get the below error:

  • Cannot attach file risk.txt: Exception trying to establish attachment directory. Check that the application server and JIRA have permissions to write to it: com.atlassian.jira.web.util.AttachmentException: Cannot write to attachment directory. Check that the application server and JIRA have permissions to write to: /opt/jira/jira-home/data/attachments/HQA/HQA-611

Any ideas? I am new to Linux and I'm not positive on how to solve this.

2 answers

1 accepted

Hi there,

From the specified error message, it seems that this may be cause by the folder permission issue, whereby the user (OS) which is running JIRA may not have the permission to write on the home directory.

Therefore, can you kindly check if required, grant the user the read/write/modify permission to the home directory (and it's contents) and see if it helps?

Cheers.

We also faced the same issue. After changing the permissions of attachments folder in Linux to jira resolved the issue.

However, why did this happen ? Was there a configuraiton issue ? or someone changed the ownership of attachments folder to root ? we could not figure it out.

You have any clue ? Thanks

The same happened to me.  I suppose that Jira might have been started manually as root, what caused root ownership on attachments directory.

Hi,

Could be the limitation of ext3 file system as well.

Please refer :

https://confluence.atlassian.com/display/JIRAKB/Error+Occurs+while+Creating+Attachment

Thanks, Vishnu.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

94 views 0 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you