Error: Unable to connect to Lookup Service at https://########:443/lookupservice/sdk. Reason: https://########:443/lookupservice/sdk invocation failed with "java.net.SocketException: Connection reset"
search cancel

Error: Unable to connect to Lookup Service at https://########:443/lookupservice/sdk. Reason: https://########:443/lookupservice/sdk invocation failed with "java.net.SocketException: Connection reset"

book

Article ID: 430839

calendar_today

Updated On:

Products

VMware Live Recovery VMware vSphere ESXi

Issue/Introduction

Symptoms

  • Clicking on ‘Open Site Recovery’ in the Site Recovery plugin within the vCenter Server, the Site Recovery console failing to load and displaying the errors listed below:

    Unable to connect to Lookup Service at https://########:443/lookupservice/sdk. Reason: https://########:443/lookupservice/sdk invocation failed with "java.net.SocketException: Connection reset"
    'Unable to connect to the lookup service'
    'Unable to retrieve site recovery manager summary data'
    'Unable to retrieve vSphere replication summary data'
  • When attempting to pair sites in VMware Live Site Recovery, on Step "2. Peer vCenter Server", when "Find vCenter Server Instances" is clicked, the following error is seen immediately:

    "Unable to connect to Lookup Service at https://<remote_vc_fqdn>:443/lookupservice/sdk. Reason: javax.net.ssl.SSLException: SSL handshake from 0.0.0.0/0.0.0.0:56312 to <remote_vc_fqdn>/<remote_vc_ip>:443 failed in 12 ms"

  • The port 443 connection is open and the curl command will show connection established between the local VR/SRM appliance and target vCenter, and vice versa, on both sites:

    root@local_VR/SRM [/]# curl -v telnet://<target_vCenter_ip/fqdn>:443
    * Established connection to <target_vCenter_ip/fqdn> (<target_vCenter_ip> port 443) from <local_vr_ip> port 35296

    root@local_vCenter [/]# curl -v telnet://<target_VR/SRM_ip/fqdn>:443
    * Established connection to <target_VR/SRM_ip/fqdn> (<target_VR/SRM_ip> port 443) from <local_vCenter_ip> port 35299
  • The same error is seen from either site (Protected or Recovery site's VLSR page).

  • vSphere Replication (VR) appliance's reconfiguration completes with no errors.

  • Issue can be seen for both SRM and/or vSphere replication Appliance.

Environment

VMware vSphere Replication 9.0.x

Cause

Firewall level SSL filtering enabled on port 443 is intercepting and dropping the SSL handshake packets between the vSphere Replication/Site Recovery Manager appliance and the remote vCenter Server.

Validation:

  • In the local vSphere Replication/SRM appliance log (/opt/vmware/support/logs/dr-client/dr.log) where site pairing was initiated, the SSL handshake with the remote vCenter fails immediately and the connection resets:

    YYYY-MM-DD HH:MM:SS,584 [srm-reactive-thread-276] WARN  com.vmware.dr.client.shared.pairing.CheckPscCredentialsRequestHandler 7816271827614690435 80e89403-3996-####-####-############ checkPscCredentials - DrRequestHandlerError:
    com.vmware.vim.vmomi.client.exception.SslException: Unable to connect to Lookup Service at https://<remote-vcenter-fqdn>:443/lookupservice/sdk. Reason: javax.net.ssl.SSLException: SSL handshake from 0.0.0.0/0.0.0.0:59752 to <target_vc_fqdn>/<target_vc_ip>:443 failed in 8 ms
    .
    .
    Caused by: java.net.SocketException: Connection reset
  • The /var/log/vmware/srm/vmware-dr.log file on the source SRM/VR appliance confirms that the SSL handshakes failures with a "Connection reset by peer" error, indicating a network layer blockage or timeout when attempting to reach the target vCenter:

    YYYY-MM-DD HH:MM:SS.sss+ss:ss verbose vmware-dr[776797] [SRM@#### sub=RemoteSite.RemoteSsoServer connID=###-####] Attempting to connect
    YYYY-MM-DD HH:MM:SS.sss+ss:ss verbose vmware-dr[1633379] [SRM@####sub=IO.Connection] Attempting connection; <resolver p:0x00007f9f0ee51470, '############:443', next:<TCP '##.###.##.### : 443'>>, last e: 0(Success)
    YYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@#### sub=IO.Connection] Failed to SSL handshake; SSL(<io_obj p:#######, h:34, <TCP '##.###.##.### : 58306'>, <TCP '##.###.##.### : 443'>>), e: 104(Connection reset by peer), duration: 0msec
    YYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@#### sub=HttpConnectionPool-000001] Failed to get pooled connection; <cs p:00007f9f22feaeb0, TCP:############:443>, SSL(<io_obj p:#######, h:34, <TCP '##.###.##.### : 58306'>, <TCP '##.###.##.### : 443'>>), duration: 4msec, N7Vmacore15SystemExceptionE(Connection reset by peer: The connection is terminated by the remote end with a reset packet. Usually, this is a sign of a network problem,  timeout, or service overload.)
    --> [context]zKq7AVECAAQAAGz3dwEKdm13YXJlLWRyAAAsGRxsaWJ2bWFjb3JlLnNvAADHCjQAi9QxAEPoMQCmBjIAzik0ANJCNADgfUkBsI4AbGlicHRocmVhZC5zby4wAALf+g9saWJjLnNvLjYA[/context]
    YYYY-MM-DD HH:MM:SS.sss+ss:ss warning vmware-dr[776781] [SRM@####sub=RemoteSite.RemoteSsoServer connID=###-####] Failed to connect
    --> (dr.fault.ConnectionDownFault) {
    -->    faultCause = (vmodl.MethodFault) null,
    -->    faultMessage = <unset>
    -->    msg = ""
    --> }

  • Even though port 443 appears open, analysis of packet captures between the local VR and target vCenter confirms that enabled SSL filtering drops the SSL packets in transit.

  • To perform packet capture, below are the commands and procedure:

    1. SSH to local vSphere Replication appliance and run following command to start packet capture: tcpdump -i eth0 -w output_filename.pcap

    2. SSH to target vCenter appliance and run following command to start packet capture: tcpdump -i eth0 -w output_filename.pcap

    3. Click on "Find vCenter Server Instances" in Create Site pair wizard to trigger the error. Click a few times, so that the packets are captured for multiple events.

    4. Press "Ctrl+C" on both SSH sessions to stop the packet capture.

  • Reviewing the packet capture between the local vSphere Replication and target vCenter, the below would be observed for this issue:

    1. When the "Find vCenter Server Instances" is clicked on the local site's Site Recovery page, a  "client hello" is sent from the local vSphere Replication to the target vCenter:

      (From local VR's pcap file)

    2. This packet is then received by the target vCenter, and it sends back an acknowledgement packet back to the local VR:

      (From target VC's pcap file)

    3. The local VR receives this acknowledgement:

      (From local VR's pcap file)

    4. Next, the target vCenter sends a "Server Hello" along with the "Certificate" and the "Key Exchange" to the local VR. But this packet is never received on the local VR, due to which a (reset) [RST, ACK] packet is seen from the local VR to the target VC:

      (From target VR's pcap file)

    5. On the local VR's pcap file, it can be confirmed that the "Server Hello", along with the certificate and keys, was never received, and similarly here a reset (reset) [RST, ACK] packet is seen from target vCenter to local VR:

      (From local VR's pcap file)

  • Point 4 of the PCAP analysis indicates that the SSL handshake fails between the local vSphere Replication (VR) and target vCenter (VC) because the certificate and key exchange never completes. This suggests the firewall is dropping or filtering SSL certificate traffic over port 443.

Resolution

  1. Coordinate with the infrastructure network team to identify the firewall device inspecting traffic on port 443.

  2. Disable SSL filtering/inspection bi-directionally on port 443 between the local vSphere Replication appliance and the target vCenter Server, for both sites.

  3. Attempt the site pairing process again in the VMware Live Site Recovery wizard.