Error: "cannot synchronize host" appears in the host summary page
search cancel

Error: "cannot synchronize host" appears in the host summary page

book

Article ID: 368262

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • ESXi host fails to update information to vCenter Server
  • On the Summary page of the host, the following errors may appear:

    vmware esx cannot synchronize host "incorrect username and password"

    Cannot synchronize host : Cannot complete login due to an incorrect user name or password
     
  • In the ESXi - /var/log/vpxa.log file

    [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'App' opID=task-internal-349047-7f8a0b5a] [VpxVmomi] Invoke error: vpxapi.VpxaService.login session: Throw: vim.fault.InvalidLogin
    [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'SoapAdapter.HTTPService' opID=task-internal-] User agent is 'VMware-client/4.1.0'
    [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'SoapAdapter.HTTPService' opID=task-internal-] HTTP Response: Client: NeedsContentLength: false Under standsChunking: true CanKeepAlive: true (PresetContentLength -1)
    [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'SoapAdapter.HTTPService' opID=task-internal-] HTTP Response: Complete (processed 585 bytes)

    [YYYY-MM-DDTHH:MM:SS] F6E73B90 info 'App' opID=task-internal-] [VpxLRO] -- FINISH task-internal-349047 -- -- vpxapi.VpxaService.login -- 52 
    [YYYY-MM-DDTHH:MM:SS] F6E73B90 info 'App' opID=task-internal-] [VpxLRO] -- ERROR task-internal-349047 -- -- vpxapi.VpxaService.login: vim.f ault.InvalidLogin: Result: (vim.fault.InvalidLogin) { dynamicType = , faultCause = (vmodl.MethodFault) null, msg = "Cannot complete login due to an incorrect user name or password.", } Args: Arg userName: "vpxuser" Arg password: (not shown) Arg soapPort: 443 Arg hostIp: "host_IP"
    [YYYY-MM-DDTHH:MM:SS] F6DF1B90 verbose 'App'] CloseSession called for session id
    [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'SoapAdapter.HTTPService'] User agent is 'VMware-client/4.1.0' [YYYY-MM-DDTHH:MM:SS] F6E73B90 verbose 'SoapAdapter.HTTPService'] HTTP Response: Client: NeedsContentLength: false UnderstandsChunking: true CanKeepAlive: true (PresetContentLength -1)'

Cause

The issue occurs when the vpxuser password is out of sync with the vCenter Server database and the password on the host or the password is manually modified. The vpxuser account is created by vCenter Server when adding an ESX host. VMware does not recommend modifying the vpxuser account.

Resolution

To resolve this issue, resynchronize the password with the vCenter Server database. The host reconnects without the error on the Summary tab.
 
Note: Do not remove the host from the Inventory. When an ESX/ESXi host is removed from the vCenter Server Inventory, virtual machines are removed from their respective folders, performance data for the host is lost, and any Distributed Virtual Switch configurations on the host needs to be reconfigured.
 
To resynchronize the password with the vCenter Server database:
  1. Right-click the ESXi host and click Disconnect.
  2. Reconnect the host and enter the root password when prompted.

    Note: For more information, see the Disconnecting and Reconnecting a Host section in the vCenter Server and Host Management Guide.
When reconnected, the virtual machines are placed in a folder in VMs and Templates view and appear in the Hosts and Clusters view under the hosts they are registered to. Reorganize virtual machines into their correct folders.