After restarting the vCenter Server Appliance one or more services may fail to start.
search cancel

After restarting the vCenter Server Appliance one or more services may fail to start.

book

Article ID: 338153

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
  • vCenter service is not starting
  • VAMI page reports Health Status in an "Unknown" state
  • DNS and NTP and root password expiry settings seems to have reverted to default settings
  • The VCSA vami.log showed the below errors:
2018-10-19T06:04:34.292 [1448]ERROR:root:SSO initialization error: [Errno 99] Cannot assign requested address
  • vpxd.log shows that the vpxd service is trying to bind to an empty loopback address
2018-10-19T05:46:40.115Z info vpxd[7FAB99932700] [Originator@6876 sub=AuthzStorageProvider] [AuthzStorageProvider::WaitForUpdate] Got exception  from WaitForNexUpdate(): N7Vmacore4Http24MalformedHeaderExceptionE(Server closed connection after 0 response bytes read; <io_obj p:0x0000003e53416d90, h:14, <TCP '[::1]:56772'>, <TCP '[::1]:10080'>>)
--> [context]zKq7AVECAAAAADWhbAAPdnB4ZAAAeF4rbGlidm1hY29yZS5zbwAAEBcbAMppGABIBBwApVwdAG1fHQAc7B0ArocaAAb6JQAe4SMAR6wjAC6vIwA3tysBVHQAbGlicHRocmVhZC5zby4wAAIdjA5saWJjLnNvLjYA[/context]
2018-10-19T05:46:40.292Z error vpxd[7FAB99932700] [Originator@6876 sub=httpUtil] [HttpUtil::ExecuteRequest] Error in sending request - Connection reset by peer
2018-10-19T05:46:40.292Z error vpxd[7FAB99932700] [Originator@6876 sub=ServerAccess] Exception while invoking remote login: N3Vim5Fault9HttpFault9ExceptionE(vim.fault.HttpFault)
--> [context]zKq7AVECAAAAADWhbAASdnB4ZAAAeF4rbGlidm1hY29yZS5zbwAAEBcbAMppGAEO01R2cHhkAAHcBIkBDQyJAUUQ9gE2EvYBkhL2ARET9gFCjKICuBwBbGliYXV0aHpjbGllbnQuc28AAsvUAQBHrCMALq8jADe3KwNUdABsaWJwdGhyZWFkLnNvLjAABB2MDmxpYmMuc28uNgA=[/context]
2018-10-19T05:46:40.439Z warning vpxd[7FAB9B76E700] [Originator@6876 sub=Default] Failed to connect socket; <io_obj p:0x00007fab4823d880, h:12, <TCP '0.0.0.0:0'>, <TCP '[::1]:10080'>>, e: system:111(Connection refused)
2018-10-19T05:46:40.439Z warning vpxd[7FAB99932700] [Originator@6876 sub=VpxdAuthClient] [ConnectAndLogin] Failed to loginBySamlToken: N7Vmacore15SystemExceptionE(Connection refused)
--> [context]zKq7AVECAAAAADWhbAAPdnB4ZAAAeF4rbGlidm1hY29yZS5zbwAAEBcbAMppGADIHysAcRUjAD4eJgAyICYAjT4mAG5KJgDL4CMAR6wjAC6vIwA3tysBVHQAbGlicHRocmVhZC5zby4wAAIdjA5saWJjLnNvLjYA[/context]
2018-10-19T05:46:40.440Z info vpxd[7FAB99932700] [Originator@6876 sub=VpxdAuthClient] fallback to loginByCertificate
2018-10-19T05:46:40.440Z warning vpxd[7FAB9B76E700] [Originator@6876 sub=Default] Failed to connect socket; <io_obj p:0x00007fab4836b010, h:12, <TCP '0.0.0.0:0'>, <TCP '[::1]:10080'>>, e: system:111(Connection refused)
2018-10-19T05:46:40.440Z error vpxd[7FAB99932700] [Originator@6876 sub=httpUtil] [HttpUtil::ExecuteRequest] Error in sending request - Connection refused


Environment

VMware vCenter Server Appliance 6.5.x

Cause

The /etc/hosts file was missing the IPV4 loopback address and localhost entries which caused the services to fail.

$ cat /etc/hosts
# Begin /etc/hosts (network card version)

# End /etc/hosts (network card version)
# VAMI_EDIT_BEGIN
# Generated by Studio VAMI service. Do not modify manually.
192.168.2.11 vc01.test.local vc01
# VAMI_EDIT_END
::1 localhost.localdom localhost


Resolution

Update the /etc/hosts file with the IPV4 loopback address 127.0.0.1 and localhost entries similar to the below.

$ cat etc/hosts
# Begin /etc/hosts (network card version)
127.0.0.1  vc01.test.local vc01  localhost

# End /etc/hosts (network card version)
# VAMI_EDIT_BEGIN
# Generated by Studio VAMI service. Do not modify manually.
192.168.2.11 vc01.test.local vc01
# VAMI_EDIT_END
::1 localhost.localdom localhost