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 and later
Information in this document applies to any platform.


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:

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

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(
. . . . . . . . . .
. . . . . . . . . .
Caused by: Connection establishment timed out
at HTTPClient.HTTPConnection.getSocket(
. . . . . . . . . .




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

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