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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,770 views 11 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot