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

Migrate data using CCMA stalls due to MissingAttachments error

XMLWordPrintable

    • 39
    • Severity 3 - Minor
    • 433

      Issue Summary

      This is reproducible on Data Center: (no)

      Steps to Reproduce

      1. Create a migration plan in CCMA for users and attachments only
      2. Run pre-checks, plan

      Expected Results

      Successful migration

      Actual Results

      Migration stalls and remains "in progress" but no further progress appears to happen.

      The below exception is thrown in the xxxxxxx.log file:

      2022-11-09 14:18:56,007 ERROR [Caesium-1-3] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job migration-plugin:checks-runner.MissingAttachments#3a481b05-b9ad-45ce-8b2b-18e362b15391 failed to run
      java.lang.IllegalArgumentException: Failed to find checkResult for executionId: db3d92d426fe2cd7eb835b8a46d69f4cb017b028 and checkType: MissingAttachments
      	at com.atlassian.migration.agent.service.check.CheckResultsService.lambda$null$5(CheckResultsService.java:72)
      	at java.base/java.util.Optional.orElseThrow(Unknown Source)
      	at com.atlassian.migration.agent.service.check.CheckResultsService.lambda$saveCheckResult$6(CheckResultsService.java:72)
      	at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.lambda$on$0(PluginTransactionTemplate.java:10)
      	at com.atlassian.migration.agent.store.jpa.impl.DefaultPluginTransactionTemplate.on(DefaultPluginTransactionTemplate.java:40)
      	at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.on(PluginTransactionTemplate.java:9)
      	at com.atlassian.migration.agent.store.tx.PluginTransactionTemplate.write(PluginTransactionTemplate.java:28)
      	at com.atlassian.migration.agent.service.check.CheckResultsService.saveCheckResult(CheckResultsService.java:69)
      	at com.atlassian.migration.agent.service.check.AsyncCheckExecutor.runJob(AsyncCheckExecutor.java:180)
      	at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117)
      	at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:87)
      	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)
      	at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)
      	at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:87)
      	at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134)
      	at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106)
      	at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90)
      	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:464)
      	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:431)
      	at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:409)
      	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66)
      	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60)
      	at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35)
      	at java.base/java.lang.Thread.run(Unknown Source)
      

      Workaround

      1. Navigate to ${CONFLUENCE_URL}/admin/darkfeatures.action
      2. Enable the dark feature: migration-assistant.disable.missing-attachments-check

              06540738b612 Aman Jadon
              asalinasii@atlassian.com Alfonso S.
              Votes:
              9 Vote for this issue
              Watchers:
              27 Start watching this issue

                Created:
                Updated:
                Resolved: