SDDC Manager LCM service fails to start with "UnsatisfiedDependencyException" and "Could not resolve placeholder 'lcm.depot.adapter.port'"
search cancel

SDDC Manager LCM service fails to start with "UnsatisfiedDependencyException" and "Could not resolve placeholder 'lcm.depot.adapter.port'"

book

Article ID: 428774

calendar_today

Updated On:

Products

VMware SDDC Manager VMware Cloud Foundation

Issue/Introduction

The LCM ( Lifecycle Manager) service on SDDC Manager stops immediately after startup. This issue typically occurs after attempting to update the depot token.

The /var/log/vmware/vcf/lcm/lcm.log file contains the following exception stack trace indicating a missing configuration placeholder:

WARN  [vcf_lcm,...] [o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext,main] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'appInfo': Unsatisfied dependency expressed through field 'vsanHclService': Error creating bean with name 'vsanHclServiceImpl': Unsatisfied dependency expressed through field 'depotConfigService': Error creating bean with name 'depotConfigServiceImpl' ... Unsatisfied dependency expressed through constructor parameter 2: Error creating bean with name 'com.vmware.evo.sddc.lcm.bundle.download.depot.config.DepotConfig': Injection of autowired dependencies failed
...
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'lcm.depot.adapter.port' in value "${lcm.depot.adapter.port}"

Cause

The lcm.depot.adapter.port parameter is missing from the LCM application properties file (application-prod.properties). This could occur during the update of depot token in the file.

This parameter is required by the DepotConfigServiceImpl bean during the service initialization phase. Without it, the Spring application context fails to load, causing the service to shut down.

Resolution

To resolve this issue, manually add the missing port parameter to the configuration file and restart the LCM service.

  • Take a snapshot of the SDDC Manager VM.
  • SSH in to the SDDC Manager VM using the vcf user account.
  • Enter su to switch to the root user.
  • Add the below parameter in the config file next to the line "lcm.depot.adapter.host=dl.broadcom.com" using vi editor: vi /opt/vmware/vcf/lcm/lcm-app/conf/application-prod.properties

    • lcm.depot.adapter.port=443

  • Restart the lcm using the command "systemctl restart lcm"

Additional Information


The application-prod.properties file controls critical LCM behavior; always backup before editing.

If the backup file is placed under /tmp of the SDDC manager, rebooting the appliance will remove the file. Hence, place the backup file on a persistent filesystem such as /home/vcf.


"Depot connection has issues. Depot Invalid User Credential", SDDC fails to download the updates from online repositories