VLCM Service Crashes During Startup
search cancel

VLCM Service Crashes During Startup

book

Article ID: 345916

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:

  • The VLCM service will not start/crashes during startup.
  • When running a file-based backup from the VAMI, it errors out with "VLCM Service not running".
  • Under the Updates tab on the vCenter Ui, you will see the error: no healthy upstream.



  • In the vlcm logs, you notice the below entries:

    <date:time>.523Z fatal vlcm [cmd/main.go:171] Failed to initialize Service Config unable to find db authentication method
    <date:time>.256Z info vlcm [cmd/main.go:150] Initializing vLCM Service. pid=40110
    <date:time>.256Z info vlcm [serviceconfig/config.go:154] Extracting properties from /etc/vmware-vlcm/vlcm_db/vlcm.properties
    <date:time>.256Z warning vlcm [serviceconfig/config.go:173] Properties file (/etc/vmware-vlcm/vlcm_db/vlcm.properties) password key does not exist
    <date:time>.256Z info vlcm [serviceconfig/config.go:272] No UDS support for 'vlcmuser' found in /storage/db/vpostgres/pg_hba.conf
    <date:time>.256Z error vlcm [serviceconfig/config.go:177] Neither password nor UDS authentication is available for vlcmuser
    <date:time>.256Z error vlcm [serviceconfig/config.go:111] Unable to initialize dbConfig unable to find db authentication method
    <date:time>.256Z fatal vlcm [cmd/main.go:171] Failed to initialize Service Config unable to find db authentication method


Environment

VMware vCenter Server 8.0.x

Cause

This is due to the vlcmuser entry missing from the pg_hba.conf file.

Resolution

1.) Take a backup of the /storage/db/vpostgres/pg_hba.conf file:

  • cp /storage/db/vpostgres/pg_hba.conf /storage/db/vpostgres/pg_hba.conf.old

2.) Open the file /storage/db/vpostgres/pg_hba.conf with vi and add the below entry to the file (see example image below for clarification):

  • # hba entries for role vlcmuser
    local        VCDB            vlcmuser                        peer map=vcdb

 

 

3.) Restart postgres service:
service-control --restart vpostgres

4.) Manually start the vlcm service:
service-control --start vlcm

Additional Information

If this issue is encountered on vCenter 8.0 P01 (8.0.0.10200) or higher, please open a support request with VMware by Broadcom. Consider subscribing to learn when a product fix is available. See Subscribe to a Broadcom knowledge article for more details.