Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17496

cannot reset admin password or import backup into a new host

    Details

    • Type: Bug
    • Status: Open
    • Priority: Normal
    • Resolution: Unresolved
    • Affects Version/s: 5.5.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We're running 5.5.1, and I recently migrated the server to a new VM. When I did so, it seems the admin password was lost or corrupted somehow. Users with admin privileges can log in, but I can't log in as 'admin'. This is also making backups fail (they seem to run, but old backups aren't deleted and we get a failure e-mail):

       The following errors have occurred:

      Error during access server backup: HTTP response status 401:

      {"errors":([\{"code":"UNAUTHORIZED","detail":"Bad credentials","message":"HTTP 401 Unauthorized"}

      ]}

      so, I tried to reset the admin password, following:

      https://www.jfrog.com/confluence/display/RTF/Managing+Users#ManagingUsers-RecreatingtheDefaultAdminUser

      I'm able to set the API password (restarting artifactory shows the password file disappear), but when I attempt to curl the new admin user password, my api password is rejected.

      So, I stood up a second VM. I was able to set a new admin password (good), but when I attempt to import our latest backup, I get 401 unauthorized:
      Caused by: org.jfrog.access.client.AccessClientHttpException: HTTP response status 401:{"errors":[

      {"code":"UNAUTHORIZED","detail":"Bad credentials","message":"HTTP 401 Unauthorized"}

      ]}
          at org.jfrog.access.client.http.AccessHttpClient.createRestResponse(AccessHttpClient.java:312) ~[access-client-core-2.0.4.jar:na]
          at org.jfrog.access.client.http.AccessHttpClient.restCall(AccessHttpClient.java:299) ~[access-client-core-2.0.4.jar:na]
          at org.jfrog.access.client.http.AccessHttpClient.createToken(AccessHttpClient.java:133) ~[access-client-core-2.0.4.jar:na]
          at org.jfrog.access.client.token.TokenClientImpl.create(TokenClientImpl.java:36) ~[access-client-core-2.0.4.jar:na]
          at org.jfrog.access.client.AccessClientBootstrap.createAndStoreServiceAdminToken(AccessClientBootstrap.java:103) ~[access-client-core-2.0.4.jar:na]
          ... 74 common frames omitted

      I'll attach import-export log.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              austin987 Austin English
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: