NSX UI shows "Search index is out of sync" error with an exception
search cancel

NSX UI shows "Search index is out of sync" error with an exception

book

Article ID: 419672

calendar_today

Updated On:

Products

VMware NSX

Issue/Introduction

  • NSX UI encountered "Search Index out of sync" Error with an Exception as below

    The following error occurred:
    resource_type:{0}NSX start search resync {1}CLI Broadcom
    Search index is out of sync for ''''resource_type:{0}''''. Run the ''''start search resync {1}'''' CLI command on the NSX appliance to resync. If the issue persists, contact Broadcom Support.

 

  • Host (Clusters, Other Nodes, Standalone, Transport Node Profile) does not display in the NSX UI.
  • Uninstalling NSX failed to uninstall the host software.
  • Unable to remove the NSX VIBs or make changes in the Environment.

We can see the log entries in the nsx_manager /var/log/syslog when trying to uninstall:

2025-10-26T12:59:31.686Z p#######2 NSX 77780 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Updating existing DeploymentUnitInstance: DeploymentUnitInstance [ id=DeploymentUnitInstance/2e##d#5#-b##d-##4e-b9##-f##09##82##8, deploymentUnitId=DeploymentUnit/2######7-10##-##63-9603-35########14, hostId=HostTransportNode/####5324-##b6-41##-a384-bf#########1, entityId=null, prevEntityId=null, runningVersion=4.2.2.0.0.24730889, deploymentProgressState=UNINSTALL_FAILED, deploymentGoalState=DISABLED, internalLastKnownOSVersion=8.0.3, agentId=null, errorId=0, errorMessage=Unable to remove vib on host.#012java.rmi.RemoteException: VI SDK invoke exception:java.rmi.RemoteException: VI SDK invoke exception:org.dom4j.DocumentException: Cannot invoke "String.length()" because "<parameter2>" is null, scxInstalled=false] with DeploymentUnitInstance: DeploymentUnitInstance [ id=DeploymentUnitInstance/2######4-##5d-4f##-b##5-##########28, deploymentUnitId=DeploymentUnit/#####597-1##a-45##-##03-3##########4, hostId=HostTransportNode/######24-66##-##31-###4-bf6########1, entityId=null, prevEntityId=null, runningVersion=4.2.2.0.0.24730889, deploymentProgressState=UNINSTALL_IN_PROGRESS, deploymentGoalState=DISABLED, internalLastKnownOSVersion=8.0.3, agentId=null, errorId=0, errorMessage=Unable to remove vib on host.#012java.rmi.RemoteException: VI SDK invoke exception:java.rmi.RemoteException: VI SDK invoke exception:org.dom4j.DocumentException: Cannot invoke "String.length()" because "<parameter2>" is null, scxInstalled=false]

./nsx_manager_#####511-##b5-###e-a1##-7##########2_######26_13####/var/log/syslog:2025-10-26T12:59:31.686Z p#######2 NSX 77780 FABRIC [nsx@6876 comp="nsx-manager" level="INFO" subcomp="manager"] Updated DeploymentUnitInstance: DeploymentUnitInstance [ id=DeploymentUnitInstance/2#######-b5##-4f##-##15-f##########8, deploymentUnitId=DeploymentUnit/2d#####7-###a-4###-##03-##########14, hostId=HostTransportNode/60######-66##-###1-a3##-###########1, entityId=null, prevEntityId=null, runningVersion=4.2.2.0.0.24730889, deploymentProgressState=UNINSTALL_IN_PROGRESS, deploymentGoalState=DISABLED, internalLastKnownOSVersion=8.0.3, agentId=null, errorId=0, errorMessage=Unable to remove vib on host.#012java.rmi.RemoteException: VI SDK invoke exception:java.rmi.RemoteException: VI SDK invoke exception:org.dom4j.DocumentException: Cannot invoke "String.length()" because "<parameter2>" is null, scxInstalled=false]

Environment

VMware NSX Datacenter.

Resolution

Workaround:

Follow the KB article below to DELETE TN

https://broadcomcms-software-agent.wolkenservicedesk.com/wolken/esd/knowledge-base-view/view-kb-article?articleNumber=319975&isLocationBackOnHome=true&hideTabs=true

 

  • Run the API below and get the result. Also, confirm that the TN is deleted.

DELETE https://<NSX Mgr IP>/policy/api/v1/infra/sites/default/enforcement-points/default/host-transport-nodes/<UUID>?force=true&unprepare_host=false

  • Wait five minutes, then run the GET transport node state command again, periodically until "Object Not found" is returned.

Post which below commands

start search resync policy
start search resync manager

Additional Information

If you are contacting Broadcom support about this issue, to aid a timely response and resolution, please provide the following:

  • NSX version.
  • Was the issue encountered during an upgrade or install?
  • Were all workaround options completed, and if not, which options were not completed and the reason why they were not completed or what issue prevented completion of them?
  • NSX Manager log bundles.
  • ESXi host log bundles for hosts that are failing to configure as transport nodes.
  • Text of any error messages seen in the NSX GUI or command lines pertinent to the investigation, and a screenshot.