Details
-
Bug
-
Resolution: Fixed
-
High
-
10
-
Severity 2 - Major
-
161
-
Description
Issue Summary
During migration of spaces with CCMA 3.9.4, if team calendars are migration along with spaces (no dark feature flag used), then Space migration fails.
This is reproducible on Data Center: (no)
Steps to Reproduce
- Create a new migration plan in CCMA 3.9.4
- Select Space(s) to be migrated
- Run Migration
Expected Results
Spaces and related team calendars are migrated successfully
Actual Results
The below exception is thrown in the atlassian-confluence.log file:
2024-01-20 17:07:10,218 ERROR [com.atlassian.migration-StepExecutionService:thread-29] [agent.service.stepexecutor.ProgressTracker] error Step failed, message: Import to cloud failed. Message: ERROR: duplicate key value violates unique constraint "AO_950DC3_TC_SUBCALS_pkey"; To investigate this error please provide the trace id xxxxxxxxxxxxx to Atlassian support.To investigate this error please provide the trace id xxxxxxxxxxxx to Atlassian support.
Workaround
If the error shows up with one of these constraints:
- "AO_950DC3_TC_SUBCALS_pkey"
- "AO_950DC3_TC_REMINDER_SETTINGS_pkey"
- "AO_950DC3_TC_CUSTOM_EV_TYPES_pkey"
That means there is remnant Team Calendar space data from a previous migration and there are two options for workarounds (below).
Option 1:
- Ensure the space is completely deleted.
- Atlassian support can help with deleting a space fully using internal scripts.
Option 2:
- Create a plan without the failed spaces
- Apply the dark feature flag migration-assistant.disable.team-calendars-migration to skip team calendars migration.
This will not migrate team calendars across. - Create a plan to migrate the problematic spaces
- Migrate team calendars separately either manually or contact Atlassian Support.
Option 3:
- If the error shows up with any other constraints besides those listed above, retry the migration.
Attachments
Issue Links
- is related to
-
MIG-1855 Team Calendars Preflight Check for misaligned space keys between Parent and Sub Calendars
- Gathering Interest
- relates to
-
CONFCLOUD-77903 Deleting a migrated space may not delete all team calendars associated with that space
- Gathering Impact