"AwE-5107 awcomm connection error" and error details "java.net.ConnectException: Connection refused"
search cancel

"AwE-5107 awcomm connection error" and error details "java.net.ConnectException: Connection refused"

book

Article ID: 431032

calendar_today

Updated On:

Products

CA Automic Applications Manager (AM)

Issue/Introduction

When starting a new Agent or newly migrated Agent, the Agent may fail to start due to message "Error: java awapi timed out".

With Agent debug enabled, the AgentService<timestamp>.log show the below during the Agent start up process:

AgentService: .AgentService: getting awcomm rmi info
AgentService: .AwComm: lookup: C R:MASTERNAME AgentService on test.master.host:2136
AgentService: .AwComm: connect to awcomm from: 0.0.0.0/0.0.0.0:0: -> test.master.host:2136
AgentService: .AwComm: awcomm connect test.master.host/10.0.0.1:2136
AgentService: AwE-5107
AgentService: .AxOptions: NoErrorMsgProperties=false
ErrorMsg: AwE-5107 awcomm connection error
Details: R:MASTERNAME test.master.host:2136 <- 0.0.0.0/0.0.0.0:0
awcomm connection error : R:MASTERNAME test.master.host:2136 <- 0.0.0.0/0.0.0.0:0 : java.net.ConnectException: Connection refused
 at com.appworx.shared.code.server.AwComm.A(AwComm.java:230)
 at com.appworx.agent.AgentService.A(AgentService.java:719)
 at com.appworx.agent.AgentService.A(AgentService.java:632)
 at com.appworx.agent.AgentService.<init>(AgentService.java:352)
 at com.appworx.agent.AgentService.main(AgentService.java:931)
Caused by: java.net.ConnectException: Connection refused
 at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
 at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
 at com.appworx.shared.code.server.AwComm.A(AwComm.java:191)
 ... 4 more
java.net.ConnectException: Connection refused
 at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
 at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:777)
 at com.appworx.shared.code.server.AwComm.A(AwComm.java:191)
 at com.appworx.agent.AgentService.A(AgentService.java:719)
 at com.appworx.agent.AgentService.A(AgentService.java:632)
at com.appworx.agent.AgentService.<init>(AgentService.java:352)

As seen in the above log example, the Agent's initial connection to the master is first made to the master's awcomm process' port which fails due to a Connection refused error.

Environment

Applications Manager 9.x.x

Cause

The Agent is not able to connect to the master's awcomm port

Resolution

From the Remote Agent Server, ensure that a connection can be made from the said server to the Master server in combination with the master's awcomm port value.

If connect test fails, please refer to your Network Admin as the awcomm port may need to be opened on the Remote Agent server.