EM 12c: Agent Deployment hangs at Remote Pre-requisite Check step Or Fails With "PROV-16011: Session.connect: java.net.SocketException" (Doc ID 1634871.1)

Last updated on MARCH 31, 2017

Applies to:

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

Symptoms

Deploying 12.1.0.3.0 Agent from Console on a remote server hangs at Remote Prerequisite Check step.
All the Remote Prerequisite checks are completed successfully as follows:

 

From .../gc_inst/sysman/em/EMGC_OMS1/sysman/agentpush/<timestamp>/logs/<hostname>/remote_appprereq.log:

Starting execution of Prerequisites...
Total No of checks: 3

Performing check for AgentHomeExistanceCheck
Is there any existing agent home on the host?Fresh Install Scenario
DESC:Oracle Management Agent 12g ATLEAST :0.0.0.0.0 ATMOST:99.99.99.99.99Expected result: EM Agent should not exist in host.
Actual Result: There is no EM Agent exists in host.
Check complete. The overall result of this check is: Passed

Check complete: Passed
========================================================
Performing check for AgentHomeRegisteredCheck
Is the installation base directory or the agent home already registered with the inventory?
aoh: /udd002/dba/agent/12C/agent1/core/12.1.0.3.0
Expected result: New Agent Oracle Home should not be registered with inventory
Actual Result: Agent Oracle Home with same value does not exist
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckHttpConnection
Can the host communicate with the OMS using HTTP(S)?
VALUE IS : OMS_HOST=myomshost.oracle.com
VALUE IS : OMS_PORT=1159
HttpChecksUtil:Inside checkHTTPSConnectionsToOMS
HTTPS URL to hit :https://myomshost:1159/empbs/genwallet
Iteration:1=============HTTPS Connection Output==============
<HTML><HEAD><TITLE>
Wallet Generation
</TITLE></HEAD><BODY bgcolor="#FFFFFF">
<H2> GenWallet Servlet activated</h2>
<H2> Request Status is null or empty</h2>
</BODY></HTML>
=================================================
Expected result: The management server must be reachable from the target node via HTTP(S).
Actual Result: HTTPS url https://myomshost:1159/empbs/genwallet is reachable from the target node
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
PrereqChecks complete

Starting Oracle Prerequisite Checker...

Checking swap space: must be greater than 500 MB. Actual 53093 MB Passed

 

 

From .../gc_inst/sysman/em/EMGC_OMS1/sysman/agentpush/<timestamp>/logs/<hostname>/remote_prereq.log:

Starting execution of Prerequisites...
Total No of checks: 10

Performing check for CertifiedVersions_agent
Is the software certified on the current operating system?Expected result: One of 5.11,5.9,5.10
Update Versions for 5.10 : One of u6wos
Actual Result: 5.10
Update Version : u10wos
Check complete. The overall result of this check is: Passed

Check complete: Passed
========================================================
Performing check for Packages_agent
Are the required packages installed on the current operating system?
Expected result: SUNWbtool
Actual Result: CCS tools bundled with SunOS(SUNWbtool)
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CompatibilityCheck
Is the software compatible with the current operating system?
/udd002/dba/agent/12C/agent1/ADATMP_2014-02-17_13-17-22-PM/prereq_stage/core/12.1.0.3.0/oui/../inventory/ContentsXML/oraclehomeproperties.xml
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for AvailableInventorySpace
Checking for sufficient disk space in the Inventory Location
Expected result: 100.0MB
Actual Result: 18091MB
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for InventoryWritableCheck
Checking for write permissions on the inventory.
The invloc recieved from the CUSTOM_INVENTORY property is :null
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for TZRegionCheck
Checking TimeZone settings...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for AgentBaseDirCheck
Is the ownership of the agent base directory valid?
Checking for proper ownership on the agent base directory.
Checks whether the agent base directory is owned by the agent user oracle and that its parent directory is owned by either the agent user or root.
....
Login name is : oracle & file owner is : oracle
................
Agent Base directory verification completed Successfully.
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for PortCheck
Checking for port availability and hostname validity...Trying for host : myagenthost/10.20.30.40 and port : 3872
Trying for host : /127.0.0.1 and port : 3872
** Agent Port Check completed successfully.**
Expected result: Port 3872 must be available on all IP addresses associated with host myagenthost.
Actual Result: Port 3872 passed is free and available for agent
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for OracleHomeCheck
Checking whether the old oracle home entry is present in the central inventory ...
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
Performing check for CheckHostName
Is the host name valid?
Expected result: Fully qualified domain name, for example foo.mydomain.com
Actual Result: myagenthost.oracle.com. Ensure that you provide a fully qualified domain name.
Check complete. The overall result of this check is: Passed


Check complete: Passed
========================================================
PrereqChecks complete

Starting Oracle Prerequisite Checker...

Checking swap space: must be greater than 500 MB. Actual 53103 MB Passed

 

 


In some cases, it is seen that the remote check evaluation hangs for a long time and then fails with the below errors in the .../gc_inst/sysman/em/EMGC_OMS1/sysman/agentpush/applogs/<agent_hostname>_deploy.log:

2014-05-12_21-26-09:INFO:======================================Initialization START ====================================
2014-05-12_21-26-09:INFO:Creating instance of ClusterBase Ops for hostname agenthostname
2014-05-12_21-26-09:INFO:Setting security contextSYSMAN
2014-05-12_21-26-09:INFO:Setting locale succeeded in BaseDeployerOps
2014-05-12_21-26-09:INFO:[action name=SSHValidations, action Description=Remote Validations, order=100, skip=false, executeAlways=false, status=null,

2014-05-12_21-26-09:INFO:[action name=SSHSetup, action Description=SSH Setup, order=200, skip=false, executeAlways=false, status=null,
....

2014-05-12_21-26-29:INFO: ERR PROV-16011: Session.connect: java.net.SocketException: Connection reset
2014-05-12_21-26-29:INFO: EXIT CODE0
2014-05-12_21-26-29:INFO:Printing Exception :CommandException: err: PROV-16011: Session.connect: java.net.SocketException: Connection reset out: null exitcode: 0
stacktrace:
oracle.sysman.prov.ssh.RunCommand.throwException(RunCommand.java:454)
oracle.sysman.prov.ssh.RunCommand.runCommand(RunCommand.java:231)
oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1073)
oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1039)
oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.isDirEmpty(JschValidationOps.java:2277)
oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.doInstallBaseDirectoryWritableAndEmptyCheck(JschValidationOps.java:1908)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.doSSHValidations(InitializationDeployer.java:137)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:597)
oracle.sysman.core.agentpush.ui.deployer.BaseDeployerOps.executeActions(BaseDeployerOps.java:1862)
oracle.sysman.core.agentpush.ui.deployer.InitializationDeployer.deploy(InitializationDeployer.java:421)
oracle.sysman.core.agentpush.ui.deployfwk.DeploymentWorker.run(DeploymentWorker.java:26)
oracle.sysman.util.threadPoolManager.WorkerThread.run(Worker.java:311)

at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1129)
at oracle.sysman.core.agentpush.ui.deployer.DeployerOps.executeCommandOnNodeInteractive(DeployerOps.java:1039)
at oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.isDirEmpty(JschValidationOps.java:2277)
at oracle.sysman.core.agentpush.ui.deployer.JschValidationOps.doInstallBaseDirectoryWritableAndEmptyCheck(JschValidationOps.java:1908)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
...
2014-05-12_21-26-30:INFO:=========Command Exception :Error Message:PROV-16011: Session.connect: java.net.SocketException: Connection reset<br><br> Exit Code :0
2014-05-12_21-26-30:INFO:Updating Action CopyAgentImagewith Status FAILED and error Message :Error Message:PROV-16011: Session.connect: java.net.SocketException: Connection reset<br><br> Exit Code :0 and problem Copying file /u01/swlib/45/E44FCAC916C14B00E0431F64A8C0BE75 on the OMS to /oracle/agent/ADATMP_2014-05-12_21-23-53-PM on host agenthostname Failed and recommendation Not Available
2014-05-12_21-26-30:INFO:=================action status is not empty FAILED
2014-05-12_21-26-30:INFO:Breaking since the action has failed
2014-05-12_21-26-30:INFO:The following action failedCopyAgentImage

 

The Agent directory is created on the remote machine, which indicates that the SSH connection is able to work.

 

 

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