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

0 votes
Accepted answer

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
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,098 views 4 9
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