How do I fix :Receiving HTTP 500 error when clicking on Issue Attachements

We upgraded to V7 about a month ago, and have come to realize that all of the links to our issue attachments have been broken.  Clicking on a link takes us to a JIRA HTTP 500 error page.   Inspecting the file system has shown that the attachments at least are not lost, as there are still folders with them all present.  We were unable to find any questions or documentaiton related to this issue.

Please provide the steps necessary to re-link the attachments to our issues.


2 answers

1 accepted

1 votes

Start by checking that admin -> attachments shows the correct path to the root of the attachments, and that permissions and ownership on the directory is correct.  Then, I'd try re-indexing (just a project at first to see if that helps).  If that does not help, then I'd start reading the logs for errors (might be worth a shot first, but the others might be a quicker initial check)

By checking the settings under admin -> attachments we determined that the recent install was using the default directory location which resulted in the attachment links being incorrect.

The thumbnails are still not blank/default images, and re-indexing did not fix that.  Any ideas on how to fix the thumbnails?

Bother, my JIRA-foo got me most of the way and then let me down.  I don't know of any way to fix the thumbnails.  My best guess is to clear out the thumbnails directories in the cache/temp areas, but I'm really not sure.

One thing to check is it only new attachments that are without thumbnails or all old attachments as well? 
If it is only new attachments it is possible that you are experiencing the issue described here which although this article is written for Confluence it can also apply for JIRA. 
Also check the permissions on the thumbnails directory to make sure that is also correct. 

As an administrator go to <yourhost>/secure/admin/ViewAttachmentSettings.jspa and check that the directory listed here for attachments matches where you think it should be. Also check that allow attachments is set to ON.
If this all looks correct then your next steps are checking that the service which is running for JIRA has the correct permissions to access this folder.

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,849 views 12 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