Details
-
Bug
-
Resolution: Fixed
-
Medium
-
None
-
None
-
None
-
22
Description
Issue Summary
Migrating from Confluence Server to Cloud using Cloud Migration Assistant plugin is failing if a plan was already executed for a Cloud instance, and the instance's URL has changed after that.
Steps to Reproduce
- In the plugin, create a Plan and run a migration to a Cloud site
- Change the URL of the Cloud instance
- When creating a new plan, select the new URL
- Try to proceed with the plan creation
Expected Results
It should go through the plan creation and import.
Actual Results
The plugin fails in the plan creation and the following error is thrown:
Cause
javax.persistence.PersistenceException: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:149)
caused by: org.hibernate.exception.ConstraintViolationException: could not execute statement
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:112)
caused by: org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "mig_cloud_site_pkey" Detail: Key (cloudid)=(<cloud_id_hash>) already exists.
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2476)
Workaround
Reinstall the plugin following the page below: