When trying to connect to the SCM Harvest broker, you may sometimes get a “-306” or “-307” communication error. Understanding these error codes will help you resolve the problem more quickly.
CA Harvest SCM all versions, all platforms
The “-306” comm error generally means the Harvest SCM client component (Workbench, Administrator Tool, Command Line utility, plugin or Harweb) cannot find the broker (or agent) machine and/or connect to the port - either the client machine is not connected to the network, broker (or agent) host name does not resolve to the correct IP address, the client cannot connect across the network to the broker (or agent) machine (unreachable), or a firewall is blocking the port.
Things to check:
The “-307” comm error generally means the Harvest SCM client component (Workbench, Administrator Tool, Command Line utility, plugin or Harweb) can find the broker machine and the port is open, but the broker is down or is known by a different name.
Things to check:
More information on configuring communications between the Harvest SCM Broker and Clients can be found here: Configure Broker and Server Communication
If the issue is seen in the new Harvest Broker server, check the system resources to ensure they are sufficient.
A convenient Powershell command that can be used to test if a port is open is this one:
$t = New-Object System.Net.Sockets.TcpClient 'my.hostname', 123; if($t.Connected) {"OK"}
... Replace 'my.hostname' with the hostname of the target computer, and 123 with the port number to test.
Returns OK or an error message.
If the error is due to the use of the RT_FORCE_NODE_NAME environment variable, this article might be helpful: ERROR: Could not resolve node name _node where RT_FORCE_NODE_NAME is not working