[RTFACT-15832] System Import to HA fails - Bearer authentication failed Created: 06/Feb/18  Updated: 27/Aug/18  Resolved: 28/May/18

Status: Resolved
Project: Artifactory Binary Repository
Component/s: Import/export
Affects Version/s: 5.7.0, 5.6.2, 5.8.3, 5.11.0, 5.11.1
Fix Version/s: 6.0.0

Type: Bug Priority: Critical
Reporter: Ariel Kabov Assignee: Maxim Yurkovsky
Resolution: Fixed Votes: 0
Labels: None

Sprint: Leap 28, Leap 30, Leap 31


Performing a system import, while running as HA (even with one node) fails with the following error:

Caused by: java.lang.RuntimeException: Failed to verify access token with id 'e739d572-8d2d-4ec4-a0e6-ada1b0655110'
Caused by: org.jfrog.access.client.AccessClientHttpException: HTTP response status 401:{
  "errors" : [ {
    "code" : "UNAUTHORIZED",
    "message" : "Bearer authentication failed",
    "detail" : "invalid token"
  } ]

My tests were from version 5.6.2(HA) to 5.8.3(HA). (also to 5.6.2/5.7.0)
Once from RPM to Docker, and other from Docker to Docker.

As a workaround, you can start the target server as a standalone, and after running the import convert it into HA.

Generated at Tue Oct 22 18:43:29 UTC 2019 using JIRA 7.6.16#76018-sha1:9ed376192612a49536ac834c64177a0fed6290f5.