No Healthy Upstream" when trying to access vSphere UI - Multiple services fails to start due to incorrect configuration in the /etc/hosts file.vpxd and vpxd-svcs services on vCenter fails to start.vpxd and vpxd-svcs indicates that there are attempts to connect to the vCenter vPostgres database using the external IP address of the VCSA, instead of the local loopback address. /var/log/vmware/vpxd-svcs/vpxd-svcs.log:YYYY-MM-DDTHH:MM:SS [main ERROR com.vmware.cis.core.kv.impl.Provider.VCDBProviderFactory opId=] SQL Error:org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf entry for host "<Host_IP_Address>", user "vc", database "VCDB", SSL off)/var/log/vmware/vpxd/vpxd.log:YYYY-MM-DDTHH:MM:SS error vpxd[06815] [Originator@6876 sub=vpxdVdb] [VpxdVdb::SetDBType] Failed to connect to database: ODBC error: (08001) - [unixODBC]FATAL: no pg_hba.conf entry for host "<Host_IP_Address>", user "vc", database "VCDB", SSL offVMware vCenter Server 6.7.x
VMware vCenter Server 7.x
VMware vCenter Server 8.x
/etc/hosts file on the vCenter Server Appliance/etc/hosts file must be configured correct for vCenter services to function as expected.# Begin /etc/hosts (network card version)
# End /etc/hosts (network card version)# VAMI_EDIT_BEGIN# Generated by Studio VAMI service. Do not modify manually.127.0.0.1 <vCenter's FQDN> <vCenter's shortname> localhost::1 <vCenter's FQDN> <vCenter's shortname> localhost ipv6-localhost ipv6-loopback# VAMI_EDIT_END
(127.0.0.1 or ::1), not the vCenter server's actual IP address.cp /etc/hosts /var/core/hosts.bak/etc/hosts file is not recommended. Use the following command to re-enter hostname and IP address details./opt/vmware/share/vami/vami_config_net
root@<VC-Name> [ ~ ]# /opt/vmware/share/vami/vami_config_net
Main Menu
0) Show Current Configuration 1) Exit this program2) Default Gateway3) Hostname4) DNS5) Proxy Server6) IP Address Allocation for eth0Enter a menu number [0]:
/etc/hosts file includes the correct and valid entries. A sample structure is available in the Cause section of this article for reference.service-control --stop --all && service-control --start --all