I am having an issue with attachments all of a sudden yeilding a 404 error when someone tries to download them. Looking at the attachment dirctory most of the issues in question to not a folder created, though the link is present when viewing the issue in the UI. This doesn't appear to be a universal issue, as some of the attachments are working correctly. I did run a retoriation of data earlier today, but these issues had been created prior to the back up being taken, and its my understandng that the automated back up process doesn't have an impact on the attachments. Any one have any ideas?
So there you go Andrew. Your files do not exist in the attachments folder. So when you try to access them you are returned a 404 error.
Did you perform a migration recently? Did you change the location of your jira-home directory? Did you perform a re-install and choose a new location for the jira-home directory?
jira-home directories are not backed up when you backup JIRA using JIRA's xml backup utility. You need to backup your data directories externally.
Hope you do have a backup of your jira-home directory to a point at which you had all the attachments. If you did do a re-install and change the location of your jira-home directory, and you still haven't deleted the old location, you should still be able to copy all the files from the old attachements directory to the new location.
I never said that I had that expectation, I was merely including the fact that a restore for a back up had been run/ The backup was from a few hours earlier in the day, and none of the attachements had been removed by users. We are still beta testing the application, so its not a major loss, just something to pay attention to I guess.
Can you check if the files that are returning a 404 error exist in your jira-home directory? Are you saying some of them actually work and some don't?
Back-up tasks do not backup your attachment folders in your jira-home directory.
Can you please clarify your statement you made
"Looking at the attachment dirctory most of the issues in question to not a folder created, though the link is present when viewing the issue in the UI. "
Hi, Thanks for the response.
Yes, some of them do work, most don't.
looking in /var/atlassian/application-data/jira/data/attachments, I see folders for each of our projects, under that I have folders for the various tickets, most of the tickets with attachements do not have folders here, and I do not see any random file either(sorry , I should have read my earler statement before posting). I do see folders, and files for those issues whose attachements do work.
Badges are a great way to show off community activity, whether you’re a newbie or a Champion.Learn more
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!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG