VCF 9.0 online depot configuration fails with error "Failed to connect to VMware depot with the provided user credentials"
search cancel

VCF 9.0 online depot configuration fails with error "Failed to connect to VMware depot with the provided user credentials"

book

Article ID: 415485

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation

Issue/Introduction

VCF 9.0 online depot configuration fails with below error while the download token is valid.

Failed to connect to VMware depot with the provided user credentials. Cause: Internal error while validating credentials

Cause

This could occur due to incorrect depot connection setting in the lcm config file. 

For online depot, the HTTPS must be enabled. If it is set to "false", the connection will fail to the online depot.

lcm.depot.adapter.httpsEnabled=false

/var/log/vmware/vcf/lcm/lcm-debug.log will have the entries similar to the below.

YYYY-MM-DDThh:mm:ss.zzz.+0000 INFO  [vcf_lcm,<thread id>,16aa] [c.v.v.l.r.a.c.v.s.DepotSettingsController,http-nio-127.0.0.1-7400-exec-1] Update Depot Settings: {"vmwareAccount":{"downloadToken":"XXXXXXXXXXXXXXXXXXXXXXXX"}}
YYYY-MM-DDThh:mm:ss.zzz.+0000 INFO  [vcf_lcm,<thread id>,16aa] [c.v.e.s.l.s.i.DepotSettingsServiceImpl,http-nio-127.0.0.1-7400-exec-1] validating VCF_DEPOT account
YYYY-MM-DDThh:mm:ss.zzz.+0000 ERROR [vcf_lcm,<thread id>,16aa] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-1] Error getting file size, got response: 400 Bad Request HTTP/1.1
YYYY-MM-DDThh:mm:ss.zzz.+0000 ERROR [vcf_lcm,<thread id>,16aa] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-1] Got Http error[400] while downloading file [/metadata/productVersionCatalog/v1/productVersionCatalog.json] from dl.broadcom.com:443 with user dummy_download_token_user
YYYY-MM-DDThh:mm:ss.zzz.+0000 ERROR [vcf_lcm,<thread id>,16aa] [c.v.v.l.r.a.c.v.s.DepotSettingsController,http-nio-127.0.0.1-7400-exec-1] Update Depot Settings
com.vmware.evo.sddc.lcm.model.depot.exception.DepotConnectionFailureException: Internal error while validating credentials

Resolution

  • Enable the https for online depot communication in the config file /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties

lcm.depot.adapter.httpsEnabled=true

  • Restart the lcm service: systemctl restart lcm
  • Retry the depot configuration.