CA Workload Automation Agent does not start. Exception logged is "Address already in use".

Document ID : KB000004411
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

CA Workload Automation Agent does not start. The following error message has been captured in the file 'nohup.stderr' located under the Agent install directory:

Exception in thread "MainThread" cybermation.agent.CybAgentDriver$CybAgentInstantiationError: java.lang.IllegalStateException: cybermation.library.communications.CybConversationException: Address already in use

at cybermation.agent.CybAgentDriver.runApplication(Unknown Source)

at cybermation.agent.CybAgentDriver.main(Unknown Source)

Caused by: cybermation.library.plugins.CybPluginException: java.lang.IllegalStateException: cybermation.library.communications.CybConversationException: Address already in use

at cybermation.agent.controller.CybControllerPluginManager.loadAPlugin(Unknown Source)

at cybermation.agent.controller.CybControllerPluginManager.loadPlugins(Unknown Source)

at cybermation.agent.controller.CybControllerPluginManager.initialize(Unknown Source)

at cybermation.agent.CybAgentDriver.runApplication(Unknown Source)

... 1 more

Caused by: java.lang.IllegalStateException: cybermation.library.communications.CybConversationException: Address already in use

at cybermation.commplugins.tcpip.CybTcpipControllerPlugin.initialize(Unknown Source)

at cybermation.agent.controller.CybControllerPluginManager.loadAPlugin(Unknown Source)

... 4 more

Environment:
All the CA Workload Automation Agent version supported platforms
Cause:

The communication port number for the CA Workload Automation Agent is defined by the property (communication.inputport=7520) in the agentparm.txt file, which is located under the agent install directory.

This error occurs if the port number defined is already being used by another application or process on the system.

Resolution:

Use a different port number If the agent port number is found to be in use by another application or process. The Operating System native commands can be used to determine the status of the port. Examples are provided below:

Linux: 

# lsof -i :7520

COMMAND     PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME

atpApp.b. 59306 root   54u  IPv6 63729986      0t0  TCP *:7520 (LISTEN)

or

# netstat -nap |grep 7520

tcp6       0      0 :::7520                 :::*                    LISTEN      59306/./atpApp.bin

Windows: 

C:\Users\Administrator>netstat -nao |findstr 7520

  TCP    10.15.20.25:7520    10.20.30.40:3389      ESTABLISHED     13768

Ensure the defined port is available before starting the Agent. 

Additional Information:

CA Workload Automation Agent supported platforms: Agent Platform Support Matrix

CA Workload Automation Agent Error Messages on Windows: Error 1067 - process terminated unexpectedly

CA Workload Automation Agent properties under agentparm.txt: Agent Parameters

How to start CA Workload Automation Agent: Start Agent

System Agent does not start due to Address Already in use