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

BCMA migration fails as INCOMPLETE and log shows "Communication error during migration"

XMLWordPrintable

    • 7
    • Minor
    • 3

      Issue Summary

      During Bitbucket Server to Cloud Migration, the migration of certain repositories are marked as INCOMPLETE.

      This is reproducible on Data Center: Yes, intermittent

      Steps to Reproduce

      1. Create a new migration plan in BCMA
      2. Pick a bunch of repositories to migrate
      3. Run Migration
      4. Migration plan finishes with multiple repositories marked as INCOMPLETE

      Expected Results

      • Migration completes successfully, OR
      • BCMA shows an appropriate message on the screen to indicate why migration failed

      Actual Results

      • Migration fails with some repos marked as INCOMPLETE
      • No message on screen
      • Application log shows following error:
        2023-10-05 09:25:29,456 ERROR [bcma-6] UserName @JYC74Vx565x4999038x32 bpfd8g 10.54.204.93 "POST /rest/migration/latest/check/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HTTP/1.1" c.a.b.p.b.p.AsyncCheckExecutor Pre-flight execution error occurred [xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx::UserGroupValidation]
        java.util.concurrent.ExecutionException: com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceServerErrorException: Communication error during migration
                at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:531)
                at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:492)
                at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:83)
                at com.atlassian.bitbucket.plugin.bcma.preflight.AsyncCheckExecutor$Companion.extractResult(AsyncCheckExecutor.kt:342)
                at com.atlassian.bitbucket.plugin.bcma.preflight.AsyncCheckExecutor$Companion.access$extractResult(AsyncCheckExecutor.kt:336)
                at com.atlassian.bitbucket.plugin.bcma.preflight.AsyncCheckExecutor$persistWhenDone$1.onFailure(AsyncCheckExecutor.kt:225)
                at com.google.common.util.concurrent.Futures$CallbackListener.run(Futures.java:1052)
                at com.atlassian.sal.core.executor.ThreadLocalDelegateRunnable.run(ThreadLocalDelegateRunnable.java:34)
                at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
                at java.util.concurrent.FutureTask.run(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
                at java.lang.Thread.run(Unknown Source)
                ... 1 frame trimmed
        Caused by: com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceServerErrorException: Communication error during migration
                at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceExceptions.serverError(Exceptions.kt:41)
                at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceClient.runHandlingHttpCallExceptions(MigrationServiceClient.kt:576)
                at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceClient.execute(MigrationServiceClient.kt:561)
                at com.atlassian.bitbucket.plugin.bcma.migrationservice.MigrationServiceClient.userGroupValidation(MigrationServiceClient.kt:292)
                at com.atlassian.bitbucket.plugin.bcma.preflight.UserGroupValidationCheck.performCheck(UserGroupValidationCheck.kt:80)
                at com.atlassian.bitbucket.plugin.bcma.preflight.AsyncCheckExecutor.runCheck(AsyncCheckExecutor.kt:317)
                at com.atlassian.bitbucket.plugin.bcma.preflight.AsyncCheckExecutor.executeChecksListenable$lambda-15$lambda-13$lambda-10(AsyncCheckExecutor.kt:127)
                at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:125)
                at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:57)
                at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:78)
                ... 8 common frames omitted
        

      Workaround

              Unassigned Unassigned
              kplaha Kanwar
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: