Details
-
Bug
-
Resolution: Cannot Reproduce
-
Low
-
None
-
None
-
None
-
28
-
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.
- Start a new Migration plan with CCMA for large space.
- 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