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

CCMA gets intermittent 401 (Authentication failure) during attachment upload

    XMLWordPrintable

Details

    • 25
    • Minor

    Description

      Issue Summary

      During the attachment upload step, the migration fails with the error "Request failed with code 401". The attachment uploader throws the below exception.

      2021-07-10 22:30:44,122 ERROR [pool-98-thread-4] [service.stepexecutor.attachment.AttachmentMigrationExecutor] error Attachment uploader finished with exception
      
      java.util.concurrent.CompletionException: com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401, message: java.util.concurrent.CompletionException: com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401
      
      2021-07-10 22:30:44,432 INFO [pool-98-thread-5] [service.stepexecutor.attachment.AttachmentsToMigrateConsumer] info Stop requested. Will exit...

      Steps to Reproduce

      This is not a regular error we observe during each Migration but have seen in a few MOVE tickets now.

      1. Start a new Migration plan with CCMA for large space.
      2. Migration fails with 401 error after some time.

      Expected Results

      The migration should be successful.

      Actual Results

      The below exception is thrown in the atlassian-confluence.log file:

      2021-07-10 22:30:44,122 ERROR [pool-98-thread-4] [service.stepexecutor.attachment.AttachmentMigrationExecutor] error Attachment uploader finished with exceptionjava.util.concurrent.CompletionException: com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401, message: java.util.concurrent.CompletionException: com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401, message:  at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1629) at com.atlassian.migration.agent.logging.LoggingContextAwareExecutorService.lambda$execute$3(LoggingContextAwareExecutorService.java:104) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)
      Caused by: com.atlassian.migration.agent.okhttp.HttpServiceException: Bad request. Status code: 401
      2021-07-10 22:30:44,432 INFO [pool-98-thread-5] [service.stepexecutor.attachment.AttachmentsToMigrateConsumer] info Stop requested. Will exit...

      Workaround (With some stats please note the below steps may not work every time.)

      • Start a new migration plan with a new session by clicking on "Choose cloud site" and choosing the cloud site again.
      • Use incognito mode for Migration.
      • Delete the browser history as stated in this article Cloud Assistance Not Working

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              267882b95fa2 Naren Gupta
              Votes:
              4 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated: