My Oracle Support Banner

EM 13c: Enterprise Manager Cloud Control Agent Deployment Fails to Secure the Agent with Error: exit code :2 (Doc ID 2279410.1)

Last updated on NOVEMBER 29, 2021

Applies to:

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

Symptoms

Securing an Enterprise Manager (EM) 12c or 13c Cloud Control Agent as part of a deployment action from EM Cloud Control fails with the screen messages on the Agent Deployment Summary page:

Error:
Execution of command <AGENT_INST>/bin/emctl secure agent on host Failed

Cause:
Eror Message Not Available
Exit code 2

 

 

 

The following errors are also logged:

From <Agent base directory>/agent_inst/sysman/log/secure.log:

Status agent Failure:Unable to connect to the agent at http://<Agent Host Name>:<Agent Port>/emd/lifecycle/main/ [Connection establishment timed out

[07-04-2017 13:05:03] USERINFO ::Failed to stop agent...

 

From <Agent base directory>/agent_inst/sysman/log/emdctlj.log:

2017-04-07 12:54:47,327 [main] INFO - Command: set_discovery_root plugin oracle.sysman.oh /u01/app/oracle/agent12c/plugins/oracle.sysman.oh.discovery.plugin_<VERSION> <VERSION>
2017-04-07 12:54:47,356 [main] INFO - Connecting:http://<Agent Host Name>:<Agent Port>/emd/main/
2017-04-07 12:55:17,390 [main] INFO - Unable to connect to the agent at http://<Agent Host Name>>:<Agent Port>/emd/main/ [Connection establishment timed out]
oracle.sysman.emSDK.agent.comm.exception.ConnectTimeoutException: Unable to connect to the agent at http://<Agent Host Name>:<Agent Port>/emd/main/ [Connection establishment timed out]
at oracle.sysman.gcagent.comm.oms.http.TMClientConnection.newConnectException(TMClientConnection.java:235)
. . . . . . . . . .
. . . . . . . . . .
Caused by: java.io.InterruptedIOException: Connection establishment timed out
at HTTPClient.HTTPConnection.getSocket(HTTPConnection.java:3642)
. . . . . . . . . .

 

 

Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.