Users may be unable to access the vSphere Replication Appliance Management Interface (VAMI) due to an HTTP 503 error. This issue prevents logging in or interacting with the VAMI, effectively blocking configuration changes and health monitoring through the web interface.
From VRMS, /var/log/vmware/drconfigui/dr-config.log
2024-09-30 14:38:02,978 [srm-reactive-thread-252] WARN com.vmware.dr.configservice.summary.GetConnectedToCloudData 65635f66-b092-408f-b80d-bf34f8b9fa21 getConnectedToCloudData - Failed to get active agent:
com.vmware.vim.vmomi.client.common.UnexpectedStatusCodeException: Unexpected status code: 503
at com.vmware.vim.vmomi.client.common.Response$Status.getStatus(Response.java:61)
at com.vmware.vim.vmomi.client.http.impl.HttpExchangeBase.parseResponse(HttpExchangeBase.java:267)
at com.vmware.vim.vmomi.client.http.impl.HttpAsyncExchange$1$2.invokeWithinScope(HttpAsyncExchange.java:166)
at com.vmware.vim.vmomi.core.tracing.NoopTracer$NoopSpan.runWithinSpanContext(NoopTracer.java:120)
at com.vmware.vim.vmomi.client.http.impl.TracingScopedRunnable.run(TracingScopedRunnable.java:17)
at com.vmware.dr.ui.tools.utilities.ThreadContext.lambda$wrap$1(ThreadContext.java:55)
at com.vmware.dr.ui.tools.utilities.ThreadContext.execute(ThreadContext.java:209)
at com.vmware.dr.ui.tools.utilities.ThreadContext.execute(ThreadContext.java:185)
at com.vmware.dr.ui.tools.utilities.ThreadContext.setupContext(ThreadContext.java:76)
at com.vmware.dr.ui.tools.utilities.ThreadContext.setupContext(ThreadContext.java:105)
at com.vmware.dr.ui.tools.utilities.ExecutorUtils.lambda$wrap$1(ExecutorUtils.java:36)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
vSphere Replication 9.x (and potentially other versions)
The vSphere Replication appliance lost its registration or had an incorrect registration with the vCenter Server. This often manifests as a service-level communication failure, leading to the VAMI becoming unresponsive with a 503 error. Since the VAMI itself was inaccessible, standard GUI-based re-registration methods were not possible.
The vSphere Replication appliance needs to be re-registered with the vCenter Server via the command line.
Steps to Re-register the vSphere Replication Appliance:
Access the Appliance Command Line:
systemctl start sshdVerify vCenter Server Configuration in hms-configuration.xml:
cd /opt/vmware/hms/confless hms-configuration.xml | grep -i hms-ls-url less hms-configuration.xml | grep -i hms-localvc-addressExecute the Re-registration Command:
/usr/bin/python /opt/vmware/share/htdocs/service/hms/cgi/hms-dr.py --cmd saveembeddedconf --ls https://<vcAddress>:443/lookupservice/sdk --lsthumbprint <vCenterThumbprint> --ssoadmin [email protected] --vcip <vcAddress_or_FQDN> --vcport 80 --vcthumbprint <vCenterThumbprint> --servername <sitename> --hmshost <hmsIP> --hmsport 8043 --self-moid <moid> --adminmail root@<hmsIP> --secmail root@<hmsIP> --strict-certs 1
Parameter Explanation and How to Find Them:
openssl s_client -connect <vcenterfqdn>:443 < /dev/null 2>/dev/null | openssl x509 -fingerprint -sha256 -noout -in /dev/stdincat /opt/vmware/hms/conf/hms-configuration.xml | grep -i sitenamecat /opt/vmware/etc/vami/ovfenv.xmlAfter successfully running the command, wait a few minutes for the services to re-register and initialize. You should then be able to access the vSphere Replication VAMI page (https://:5480) without the 503 error.