EM 12c: emctl start agent Failed 'HTTP Listener failed at Startup Possible port conflict on port(3872)' ' java.net.NoRouteToHostException: No route to host' Reported in emdctlj.log (Doc ID 1949681.1)

Last updated on APRIL 22, 2017

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.1.0 and later
Information in this document applies to any platform.

Symptoms

EM12c Agent on active/passive setup. After failover to passive node , agent start fails

$/AGENT_INST/bin/emctl start agent

fails with following error

Oracle Enterprise Manager Cloud Control 12c Release 2
Copyright (c) 1996, 2012 Oracle Corporation. All rights reserved.
Starting agent .......... failed.
HTTP Listener failed at Startup
Possible port conflict on port(3872): Retrying the operation.....
Failed to start the agent after 3 attempts. Please check that the port(3872) is available.
Consult emctl.log and emagent.nohup in: /opt/app/ha/CMKM/agent_12c/agent_inst/sysman/log

/AGENT_INST/sysman/log/gcagent.log reports the following exception

WARN - *jetty*: FAILED SslSelectChannelConnector@0.0.0.0:3872: java.net.BindException: The socket name is already in use.
2015-05-07  15:55:49,789 [1:3305B9] WARN - *jetty*: FAILED  org.eclipse.jetty.server.Server@608c608c: java.net.BindException: The  socket name is already in use.
2015-05-07 15:55:49,791 [1:3305B9] WARN - Agent failed to Startup for HTTP Listener in step 0
2015-05-07 15:55:49,793 [1:3305B9] INFO - Error while starting up (will do a shutdown)

/AGENT_INST/sysman/log/emagent.nohup reports the following exception

Thu May  7 15:56:54 2015::376976::Checking status of EMAgent : 782346 -----
----- Thu May  7 15:56:54 2015::376976:/AGENT_INST/sysman/log/gcagent.log reports the following exception
----- Thu May  7 15:56:54 2015::376976::EMAgent has exited due to initialization failure. -----
----- Thu May  7 15:56:54 2015::376976::Stopping other components. -----
----- Thu May  7 15:56:54 2015::376976::Commiting Process death. -----

/AGENT_INST/sysman/log/emdctlj.log reports the following exception

2014-11-29 14:19:20,474 [main] INFO - unable to connect to the agent at https://cmkm.oracle.com:3872/emd/lifecycle/main/ [No route to host]
oracle.sysman.emSDK.agent.comm.exception.ConnectException: unable to connect to the agent at https://cmkm.oracle.com:3872/emd/lifecycle/main/ [No route to host]
at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.newConnectException(TMClientConnection.java:231)
at oracle.sysman.gcagent.comm.http.ClientConnection.makeConnection(ClientConnection.java:820)
.......
Caused by: java.net.NoRouteToHostException: No route to host
at java.net.PlainSocketImpl.socketConnect(Native Method)

 

 

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms