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 vote

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 https://confluence.atlassian.com/confkb/confluence-doesn-t-generate-thumbnails-154068.html 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 Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

246 views 1 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