Cloud Migration Assistant not working
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
When a migration plan is created for a space, hitting the run button changes the status to in progress, and after a few seconds, without showing any errors in the UI, it goes back to run.
Environment
Confluence server and datacenter
Diagnosis
The logs show this error when the assistant tries to check the spaces conflict:
2020-09-25 20:56:30,501 ERROR [Caesium-1-2] [service.check.space.SpaceConflictChecker] error Error executing space keys conflict check.
-- checkExecutionId: 1feef420cee321abf8f04b8e15cde6cd16681468
com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401, message: {"code":401,"message":"Unauthorized"}
Cause
Since an error 401 means "unauthorized", this means that the assistant tried to reach the cloud instance but the user that was logged in there didn't have the permission to do so.
This can be due to a corrupted browser cache or an unauthorized user logged in while running the migration plan.
Solution
- Clear the browser data on the browser where the plan will run;
- Make sure that the user logged in in both instances is the site admin account.
- Re-link your Server to Cloud. MIG-160 - Getting issue details... STATUS