Offline depot configuration fails with ‘Bad Credentials’
search cancel

Offline depot configuration fails with ‘Bad Credentials’

book

Article ID: 436224

calendar_today

Updated On:

Products

VMware Cloud Foundation

Issue/Introduction

  • When attempting to configure an offline depot for VCF Management, fails with the error messages.

    { "errors" : [ { "status" : 401, "message" : "Bad credentials" } ] }

  • Log file /var/log/vrlcm/vmware_vrlcm.log of VCF Fleet Management contains

    INFO vrlcm[1256] [http-nio-8080-exec-6] [c.v.v.l.s.SettingsServiceImpl] -- manifest url : https://<REDACTED_HOSTNAME>/artifactory/vcf/PROD/metadata/manifest/v1/vcfManifest.json
    INFO vrlcm[1256] [http-nio-8080-exec-6] [c.v.v.l.u.CustomTrustManager] -- Certificate chain trusted
    INFO vrlcm[1256] [http-nio-8080-exec-6] [c.v.v.l.u.RestHelper] -- Status code : 401

Environment

VMware Cloud Foundation 9.0

Cause

The HTTP 401 status code indicates invalid credentials; this occurs when the provided username or password for the offline depot (e.g., Artifactory) is incorrect or contains casing mismatches.

Resolution

  1. In VCF Operations, select Fleet Management > Lifecycle > Depot Configuration..

  2. On the Offline Depot tile, click Configure.

  3. Locate the credential entry used for the offline depot and verify the following:

    • Username: Ensure the account name is exactly as defined on the source server, paying strict attention to case sensitivity.

    • Password: Re-enter the password to ensure no trailing spaces or special character mapping issues exist.

  4. When the web server connection is established, the offline depot connection appears active.