Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Missing Attachments - JIRA Migration

Sravya Vuggina July 30, 2018

We are migrating from cloud instance to server and as part of the import attachment process, manually copied files to JIRAHOME/data/attachments folder. Due to some reason not all files were copied and as a result the attachments are missing in the new instance. Below is the log from import process (used Configuration Manager to deploy a snapshot from staging server). 

I am having trouble finding ways to import these missing attachments to new instance. Tried copying the physical files to default location and restarted JIRA hoping it would magically pick them up from the file system but no luck. What are my options here. 

2018-07-29 16:44:15,403 pool-47-thread-1 WARN VUS1OWT 987x1306x1 1275cb4 10.230.178.45 /rest/configuration-manager/1.0/deployment/2 [c.b.j.r.impl.issuedata.IssueDataMergeInterceptor] Failed to import attachment Script Errors 06-19-2017.xlsx for issue with key IAMNACD-4446.
2018-07-29 16:44:15,403 pool-47-thread-1 WARN VUS1OWT 987x1306x1 1275cb4 10.230.178.45 /rest/configuration-manager/1.0/deployment/2 [c.a.j.issue.managers.DefaultAttachmentManager] Got exception while saving attachment in attachment store. Exception: D:\JIRA\data\attachments\IAMNACD\10000\IAMNACD-4446\164471 (The system cannot find the path specified)

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 31, 2018

In order to migrate data from Jira Cloud to Jira Server, you first have to do a complete restore to a Jira Server install. I don't understand how you are using Configuration Manager at this point.   This plugin can be used to help make project migrations easier, but the expectation is that this utility is used on Jira Server backups, not Jira Cloud backups.  

Not sure if this detail factors into this problem yet, but it is something to consider.   We can't use the Cloud backup directly to do a project import.  We have to restore it completely to an empty Jira Server site first.  From there you can generate a fresh Jira Server backup file, along with attachments.   There is an expectation that when you migrate from Jira Cloud to Server that your Server version be on the latest version.  What version of Jira Server are you using here?

Sravya Vuggina August 2, 2018

Hello @Andy Heinzer,

Yes, you are right - We are using Configuration Manager to deploy only certain projects from staging server where full backup of cloud instance was restored. And things went wrong when not all files were copied to the temporary attachments folder of PROD, as a result when a snapshot from staging was deployed on prod and pointed to a temp attachments folder few files went missing. 

We tried to add missing files to PROD instance by copying the missing files to the attachment folder but obviously those filenames weren't present in the database and were not linked to the issues, so we had to re-deploy the snapshot and point this time to a folder that contains all the files. 

I just realized that I have created 2 posts with the same question - was super nervous to resolve this issue and  accidentally might have ended up creating twice :) Sorry for that! 

Like Nirmani Kalakheti likes this

Suggest an answer

Log in or Sign up to answer