Uploaded image for project: 'Migration Platform'
  1. Migration Platform
  2. MIG-65

Cloud Migration Assistant fails to create a plan, if a plan was already executed for a Cloud site and the site URL has changed

    XMLWordPrintable

Details

    • 1

    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

      1. In the plugin, create a Plan and run a migration to a Cloud site
      2. Change the URL of the Cloud instance
      3. When creating a new plan, select the new URL
      4. 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:

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              foselame Francisco Oselame (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: