In VMware Cloud Foundation (VCF) 5.2.x, you encounter the following symptoms:
/v1/nsxt-clusters or image management fail with the error: "message": "Failed to fetch the images from LCM Service with error: Bad Gateway."lcm service status is Down or repeatedly in an Activating state./var/log/vmware/vcf/lcm/lcm.log, you see HikariPool initialization exceptions: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "lcm" /var/log/vmware/vcf/commonsvcs/vcf-commonsvcs.log, you see: Error while trying to retrieve service http://127.0.0.1/lcm/about status, 502 Bad GatewayFATAL: password authentication failed for user "lcm"
DETAIL: Connection matched pg_hba.conf line 91: "host all all 127.0.0.1/32 md5"VMware Cloud Foundation 5.2.x
The lcm service or the underlying PostgreSQL lcm-db may have encountered a transient hang, a stale process, or a database connection pool exhaustion.
Workaround:
systemctl restart lcm-dbsystemctl restart lcmcurl -v http://127.0.0.1/lcm/about