azure-relay icon indicating copy to clipboard operation
azure-relay copied to clipboard

Unable to connect to existing HCM channel

Open jonjander opened this issue 5 years ago • 4 comments

Description

Press [ENTER] to exit. PortBridgeClientAgent.exe Information: 0 : Connection 1 created PortBridgeClientAgent.exe Information: 0 : Connection 1 completed PortBridgeClientAgent.exe Information: 0 : Socket cancelled with code 10004 during pending read: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall. PortBridgeClientAgent.exe Information: 0 : Connection 1 completed PortBridgeClientAgent.exe Error: 0 : Failed writing to data channel: Value cannot be null. Parameter name: output PortBridgeClientAgent.exe Error: 0 : Multiplex pump failed: Value cannot be null. Parameter name: output

Actual Behavior

  1. Cannot use client to connect to existing HCM

Expected Behavior

  1. Be able to connect to HCM over hybrid connection using the portbridge client

jonjander avatar Oct 04 '19 12:10 jonjander

Please provide more details.

jfggdl avatar Oct 27 '20 01:10 jfggdl

My setup look like this: I have a Azure relay in Azure and one configured Hybrid connection. On-prem I have a HCM service connected to that relay. I have verified the connectivity using a webservice in azure also connected to the relay.

Now I want to connect to the relay from my devbox using portBridge (or anything that will work), in order to connect to the onprem resources.

This is my client config

 <portBridgeAgent serviceBusNamespace="*********-relay.servicebus.windows.net/*****test-erp" serviceBusAccessRuleName="RootManageSharedAccessKey" serviceBusAccessRuleKey="*****************">
    <portMappings>
      <port localTcpPort="80" targetHost="******app23" remoteTcpPort="80">
        <firewallRules>
          <rule source="127.0.0.1"/>
          <rule sourceRangeBegin="10.0.0.0" sourceRangeEnd="10.255.255.255"/>
          <rule sourceRangeBegin="172.0.0.0" sourceRangeEnd="172.255.255.255"/>
          <rule sourceRangeBegin="192.0.0.0" sourceRangeEnd="192.255.255.255"/>
        </firewallRules>
      </port>
    </portMappings>
  </portBridgeAgent>

The client connects but when try to browse the onprem web server I get "ERR_EMPTY_RESPONSE"

the log looks like this:

...
PortBridgeClientAgent.exe Information: 0 : Input, read preamble: 6
PortBridgeClientAgent.exe Information: 0 : Output, read bytes: 521
PortBridgeClientAgent.exe Information: 0 : Output, wrote preamble: 527
PortBridgeClientAgent.exe Information: 0 : Connection 8 completed
PortBridgeClientAgent.exe Information: 0 : Connection 9 completed
PortBridgeClientAgent.exe Information: 0 : Output, read bytes: 521
PortBridgeClientAgent.exe Information: 0 : Output, wrote preamble: 527
PortBridgeClientAgent.exe Information: 0 : Socket cancelled with code Interrupted during pending read: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall.
PortBridgeClientAgent.exe Information: 0 : Output, wrote preamble: 6
PortBridgeClientAgent.exe Information: 0 : Connection 8 completed
PortBridgeClientAgent.exe Information: 0 : Connection 10 created
PortBridgeClientAgent.exe Information: 0 : Output, read bytes: 521
PortBridgeClientAgent.exe Information: 0 : Output, wrote preamble: 527
PortBridgeClientAgent.exe Information: 0 : Input, read preamble: 6
PortBridgeClientAgent.exe Information: 0 : Connection 10 completed
PortBridgeClientAgent.exe Information: 0 : Socket cancelled with code Interrupted during pending read: Unable to read data from the transport connection: A blocking operation was interrupted by a call to WSACancelBlockingCall.
...

jonjander avatar Jun 23 '21 10:06 jonjander

I have tested different localTcpPort ports. The hostname is also configured to point to 127.0.0.1 in the HOSTS file.

jonjander avatar Jun 23 '21 10:06 jonjander

@jfggdl Anything else I can do to help troubleshooting?

jonjander avatar Jun 24 '21 06:06 jonjander