Agent unable to establish an outbound network connection - address already in use
search cancel

Agent unable to establish an outbound network connection - address already in use

book

Article ID: 134182

calendar_today

Updated On:

Products

CA Workload Automation AE - Business Agents (AutoSys) CA Workload Automation AE - System Agent (AutoSys) Workload Automation Agent CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Business Agents (dSeries)

Issue/Introduction

Users see the following in the the agent's transmitter.log:

07/02/2019 20:32:25.476 EDT-0400 5 TCP/IP Controller Plugin.Transmitter pool thread <Slow:1>.CybTargetHandlerChannelLogHelper.logConnectionAttempt[:75] 
- Attempting to open conversation to [email protected]:9485 using plain socket
07/02/2019 20:32:25.486 EDT-0400 1 TCP/IP Controller Plugin.Transmitter pool thread <Slow:1>.CybTargetHandlerChannel.constructConversation[:1198] -
Error connecting to ACE_SCH: cybermation.library.communications.CybConversationConnectBindException: Address already in use

 

Would that cause the agent to not be able to get an outbound connection?

Is there a way to alter which outbound ports the agent attempts to use?

Environment

Release : Any

Component : CA Workload Automation System Agent

OS: Any

Cause

Depending on the OS, the agent (or any other service) will use the available Ephemeral ports to connect to outgoing connections.  If the OS is out of dynamic ports then local processes / services will not be able to make outgoing connections.

Resolution

Check OS for port range.  Each has it's own defined range. 

E.g. This command will show Linux range:

cat /proc/sys/net/ipv4/ip_local_port_range 

32768 60999

Windows:

netsh int ipv4 show dynamicport tcp

Protocol tcp Dynamic Port Range
---------------------------------
Start Port      : 49152
Number of Ports : 16384

Use netstat -an command to see how many ports are being used.  If the list is very long and shows lots of TIME_WAIT, then consult System and Network Administrator to investigate this further.