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
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 accountYYYY-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.1YYYY-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_userYYYY-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 Settingscom.vmware.evo.sddc.lcm.model.depot.exception.DepotConnectionFailureException: Internal error while validating credentials
lcm.depot.adapter.httpsEnabled=true