Configuring the Offline Depot in the SDDC Manager UI fails with the following error: Failed to connect to VMware Depot with the provided user credentials. Cause: {0}
From the var/log/vmware/vcf/lcm/lcm-debug.log reports 404 Not Found and fails to find valid certificates.
##-##-##T##:##:##.##+0000 DEBUG [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-8] Getting file size for [/COMP/SDDC_MANAGER_VCF/index.v3] from URL[https://xxx.org:443/DownloadToken/PROD/COMP/SDDC_MANAGER_VCF/index.v3]##-##-##T##:##:##.##+0000 DEBUG [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.d.utils.CookieUtils,http-nio-127.0.0.1-7400-exec-8] VCF_DEPOT Depot Http Cookies: []##-##-##T##:##:##.##+0000 DEBUG [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-8] Executing HEAD /DownloadToken/PROD/COMP/SDDC_MANAGER_VCF/index.v3##-##-##T##:##:##.##+0000 DEBUG [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-8] Got response: 404 Not Found HTTP/1.1##-##-##T##:##:##.##+0000 ERROR [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-8] Error getting file size, got response: 404 Not Found HTTP/1.1##-##-##T##:##:##.##+0000 ERROR [vcf_lcm,e67d5c7a68224f24,7316] [c.v.e.s.l.b.d.depot.DepotDownloader,http-nio-127.0.0.1-7400-exec-8] Got Http error[404] while downloading manifest index [/COMP/SDDC_MANAGER_VCF/index.v3] from xxx.org:443 with user vmware##-##-##T##:##:##.##+0000 ERROR [vcf_lcm,e67d5c7a68224f24,7316] [c.v.v.l.r.a.c.v.s.DepotSettingsController,http-nio-127.0.0.1-7400-exec-8] Update Depot Settingscom.vmware.evo.sddc.lcm.model.depot.exception.DepotConnectionFailureException: Internal error while validating credentials
.
##-##-##T##:##:##.##+0000 WARN [vcf_lcm,695f8be6ae587829480be1fc20ac6772,f9ac] [c.v.e.s.l.c.s.BundleManifestDownloadScheduler,Scheduled-10] Failed to download index file and all bundle manifest files from it. Error:javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:131) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:383) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:326) at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:321) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.checkServerCerts(CertificateMessage.java:1351) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.onConsumeCertificate(CertificateMessage.java:1226) at java.base/sun.security.ssl.CertificateMessage$T13CertificateConsumer.consume(CertificateMessage.java:1169)
curl -I -k -u <depot_username>:<depot_user_password> https://<Offline_Depot_FQDN>/COMP/SDDC_MANAGER_VCF/index.v3HTTP/1.1 404 Not FoundServer: Apache/2.4.62 (Red Hat Enterprise Linux)
VMware Cloud Foundation 5.2.x
This issue occurs due to three main reasons:
/opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties do not include the required /offline_depot/ prefix, preventing the web server from mapping the URL to the physical directory.
/opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties################### LCM DEPOT PROPERTIES ########################lcm.depot.adapter.host=dl.broadcom.comlcm.depot.adapter.port=443lcm.depot.adapter.remote.rootDir=/DownloadToken/PROD <---- Missing /offline_depot/lcm.depot.adapter.remote.repoDir=/COMP/SDDC_MANAGER_VCFlcm.depot.adapter.local.baseDir=/nfs/vmware/vcf/nfs-mount/bundle/depot/locallcm.depot.adapter.enableBundleSignatureValidation=truelcm.depot.adapter.certificateCheckEnabled=truelcm.depot.adapter.remote.index.filename=index.v3lcm.depot.adapter.softwareCompatibilitySetsFile=softwareCompatibilitySets.jsonlcm.depot.adapter.partnerBundleMetadata.updated.filename=vxrailPartnerBundleMetadata.jsonlcm.depot.credential.file.path=*******lcm.depot.bundleElement.patchFile.checksumValidation=truelcm.depot.adapter.lcmManifestFile=lcmManifest.jsonlcm.depot.adapter.remote.lcmManifestDir=/COMP/SDDC_MANAGER_VCF/lcm/manifest
To resolve the issue follow through the below steps.
############ LCM DEPOT PROPERTIES ############lcm.depot.adapter.host=dl.broadcom.comlcm.depot.adapter.remote.rootDir=/offline_depot/<DownloadToken>/PRODlcm.depot.adapter.remote.repoDir=/COMP/SDDC_MANAGER_VCFopenssl s_client -connect "offlinedepot IP/FQDN":443KEY=$(cat /etc/vmware/vcf/commonsvcs/trusted_certificates.key) echo $KEY(Sample output: iDxxxxxxxxxxxxxxx6_m)keytool -importcert -alias ProxyServer -file <certificate file> -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store --storepass $KEY (Type yes when prompted)keytool -importcert -alias ProxyServer -file <certificate file> -keystore /etc/alternatives/jre/lib/security/cacerts --storepass changeit/opt/vmware/vcf/operationsmanager/scripts/cli/sddcmanager_restart_services.shkeytool -list -v -keystore /etc/vmware/vcf/commonsvcs/trusted_certificates.store -storepass $KEY