JetStream Software Portal

Unable to Establish Communication with REST Services on Host

This article applies to JSDR software version 5.0.x running on vSphere 8.x or above.

Problem

The MSA uses the IOF REST user to communicate with hosts. The warning message “Unable to Establish Communication with REST Services on Host,” may be triggered due to various error conditions:

IOF REST error message.
  • The Health Viewer status indicates RESTCOMMUNICATIONFAILURE on hosts:
Health Viewer status error.
  • The protected domain summary page reports a warning, “Management Server is not able to connect to DR server on some Hosts.”:
Management Server warning message.

Cause

The above errors may be caused by any of the following issues:

Issue 1

If the IOF REST user password expires, the error message can be triggered per the vCenter SSO user password expiration policy.

Issue 2

If the MSA cannot communicate with hosts, the error message can be triggered due to necessary ports not being opened or improper networking configuration.

  • MSA to ESXi host TCP/IP port 443 needs to be allowed. To validate, execute the following command from MSA SSH.
    • curl -v https://<Esxi_host_IP/FQDN>:443
  • Validate the “jetiofrest” service is running on the host (ESXi host → Configure → Service). In case the jetiofrest service is stopped, follow the steps below to start the service again.
    • For AVS: execute the run command Restart-JetDRDaemon (for DaemonName use jetiofrest).
    • For On-prem: start the service jetiofrest directly on the host (from Configure → Service).

Issue 3

Differences in time settings between JetStream appliances, MSA, vCenter, and ESXi hosts can trigger the error message.

Issue 4

The warning “Unable to establish communication with REST services.” can appear for hosts on the cluster configuration page:

  • Shortly after creating the IOF REST user using the AVS Run command:
    (Enable-JetStreamRestUser)
  • When creating the IOF REST user using the PowerShell script:
    (manage_iofrest_user.ps1) for on-prem installations
  • This can also occur when the MSA tries to authenticate the IOF REST user while it is locked.
    • Example log snippet from the MSA:
      Caused by: com.sun.xml.internal.ws.fault.ServerSOAPFaultException: Client received SOAP Fault from server: The account of the user trying to authenticate is locked. :: The account of the user trying to authenticate is locked. :: User account locked: {Name: jetstream, Domain: vsphere.local} Please see the server log to find more detail regarding exact cause of the failure.

The user account may become locked if there are more than three failed login attempts within a short period of time.

Unlocking the IOF REST User

Two solutions can be used to unlock the JetStream IOF REST user to resolve the problems described above:

Solution 1: Unlock the User by Restarting MSA-Tomcat Services

  • Log in to the MSA and execute the following command to restart MSA-Tomcat services:
    sudo systemctl stop msa-tomcat
    sudo systemctl start msa-tomcat

Solution 2: Unlock the IOF Rest user through vCenter

You must be logged into vCenter as [email protected].
For AVS customers, please get help from Microsoft to use this method.

  • Navigate to:
    Administration > Users and Groups > Select the domain ‘vsphere.local’ from the domain drop-down menu.
  • Select the username: “jetstream”.
  • Click the arrow icon next to the “More” tab.
  • Select the Unlock option.
Unlock the JetStream IOF REST user.

Was this article helpful?

Related Articles