When opening the Site Recovery UI, the site pair fails with the error message:
"Unable to retrieve pairs from extension server at https://vr-appliance:8043 . Unable to connect to the HBR Management Server at https://vr-appliance:8043. Reason Java.net.ConnectionException: Connection Refused & VR management server at vr-appliance is unreachable"
From opt/vmware/hms/logs/hms.log
we observe below error messagesYYYY-MM-DD HH:MM:SS.SSS ERROR com.vmware.hms.HmsService [hms-main-thread-1] (..vmware.hms.HmsService) [] | stage 2 starting...FAILED
HMS Server failed to start successfully:
java.lang.IllegalStateException: Cannot retrieve HBR broker since embedded HBR server is disabled.
From /opt/vmware/hms/logs/hms-configtool.log
we observe below error messagesYYYY-MM-DD HH:MM:SS.SSS WARN com.vmware.hms.configtool.App [main] (..hms.configtool.DatabaseProcessor) [] | Error while executing SQL statement: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
YYYY-MM-DD HH:MM:SS.SSS ERROR com.vmware.hms.configtool.App [main] (..hms.configtool.DatabaseProcessor$JdbcRunnable) [] | Cannot execute sql statement.
org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
YYYY-MM-DD HH:MM:SS.SSS TRACE hms.hbr.monitor [hms-ping-scheduled-thread-0] (..impl.hbr.HbrConnectionMonitor) [operationID=57e2fac7-2168-48e8-a511-1c409d781631-HMS-PING] | Connection status for VR Server 'VR-appliance' is updated to 'false' in the database.
vSphere Replication 8.x
vSphere Replication 9.x - See important note in Cause section
The issue occurs because, after the upgrade, the embedded HBR server is disabled. The HMS service cannot retrieve the HBR broker, leading to the failures observed in the logs and the inability to establish site pairing. Improper configuration issues may prevent the services from initializing correctly.
The /opt/vmware/hms/conf/hms-configuration.xml
file has the "hms-embedded-hbr"
value set to "false"
.
NOTE: In vSphere replication 9.0 and higher this option is not compatible with enhanced replication, if scale-out-mode is set to true (enhanced replication is enabled) and hms-embedded-hbr is set to false a similar error "Unable to connect to the HBR Management Server
" will be observed.
To resolve this issue, follow these steps:
#
grep -i hms-embedded-hbr /opt/vmware/hms/conf/hms-configuration.xml
hms-configuration.xml
file and change the value of the hms-embedded-hbr
parameter to true
.systemctl restart hms