When attempting to pair sites or reconnect a broken site pair in VMware Live Site Recovery (VLR), the operation fails with the following error:
UI Error: Unable to connect or disconnect the vSphere Replication Management Server. Details: 'Cannot invoke "com.vmware.hms.remote.RemoteSiteInt._getRef()" because "existingSite" is null'
hms.log entries: err: Cannot invoke "com.vmware.hms.remote.RemoteSiteInt._getRef()" because "existingSite" is null; com.vmware.vim.binding.hms.remote.fault.SitePairingFault: Cannot invoke "com.vmware.hms.remote.RemoteSiteInt._getRef()" because "existingSite" is null.
VMware Live Site Recovery 9.X
This issue is caused by a state inconsistency or stale Site ID entries in the vSphere Replication Management Server (VRMS) database. Common triggers include:
To resolve this issue, you must establish a clean state for the vSphere Replication appliances by clearing stale identifiers and re-registering the services.
Prerequisites:
Take a virtual machine snapshot of both the Production and Disaster Recovery vSphere Replication appliances.
Ensure you have administrative credentials for both vCenter Servers.
Procedure: