-
Bug
-
Resolution: Timed out
-
Low
-
None
-
None
-
None
-
1
-
Severity 3 - Minor
Issue Summary
When the customer tries to migrate Projects from Jira server to Jira Prod cloud site using Jira Migration Assistant, Project migration fails with an Error. However, no error was thrown during the previous Test migration attempt to a different site.
Steps to Reproduce
- Not applicable for all the migration scenarios.
- The basic step to rep-produce is to migrate the project from Server to Cloud using Jira Migration Assistance.
Expected Results
Not Applicable
Actual Results
Not Applicable
The below exception is thrown in the xxxxxxx.log file:
2020-05-06 19:54:51,679+0100 pool-10-thread-1 INFO [c.a.j.m.tracking.polling.StatusPoller] Migration aaaaaaa-12345-67890-bbbbb-cccceeee completed, Migration errors: projectDataUpload#ABC: java.lang.IllegalStateException: More than one migrated file found for attachment 111111 (StackTrace=java.lang.IllegalStateException: More than one migrated file found for attachment 111111 at com.atlassian.jira.migration.migration.MigratedFileRepository.findMigration(MigratedFileRepository.kt:69) at com.atlassian.jira.migration.workers.AttachmentMediaIdService$generateAttachmentMediaIdsForProject$2.invoke(AttachmentMediaIdService.kt:43) at
More than one migrated file found for attachment XXXX
Cause of the issue:
- In the plugin, we upload attachments using a MediaID the plugin receives from the Media API in the cloud.
- This MediaID is paired with the attachments and stored in the DB.
- It is possible that the main site and the sandbox use the same MediaID.
- i.e. the first migration to the sandbox is successful, but not the second migration to the main site because of the conflicting MediaID.
- Therefore, truncating the DB will resolve the issue as it will remove the conflicts.
Workaround
Please do reach out to the Atlassian support to confirm if you should Delete or truncate the table. The workaround is to delete or truncate the AO_6FF49D_MIGRATED_FILE table prior to migrating to the production site. This can be done using either of the SQL below:
DELETE FROM AO_6FF49D_MIGRATED_FILE
// or
TRUNCATE TABLE AO_6FF49D_MIGRATED_FILE
- relates to
-
MIG-1192 Jira Migration Assistant fails with "More than one migrated file found for attachment XXXX"
- Closed