12c Cloud Control: Agent Upgrade From 12.1.0.1 To 12.1.0.2 Fails At Upgrading Management Agent Step With Errors 'DetachHome failed' During Plugin Deploy Stage (Doc ID 1531717.1)

Last updated on AUGUST 26, 2013

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.2.0 to 12.1.0.2.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

The Cloud Control Agent upgrade from 12.1.0.1 to 12.1.0.2 fails at the step "Upgrading Management Agent" with:

Content of the file  <Agent_Base_Location>/core/12.1.0.2.0/cfgtoollogs/agentDeploy/agentDeploy_<Timestamp>.log

INFO: Executing command: /usr/oem/agent/core/12.1.0.2.0/jdk/bin/java -jar /usr/oem/agent/core/12.1.0.2.0/jlib/updateStateDirectory.jar -emStateDir /usr/oem/agent/agent_inst -oldAgentHome /usr/oem/agent/core/12.1.0.1.0 -newAgentHome /usr/oem/agent/core/12.1.0.2.0
INFO: Command: /usr/oem/agent/core/12.1.0.2.0/jdk/bin/java -jar /usr/oem/agent/core/12.1.0.2.0/jlib/updateStateDirectory.jar -emStateDir /usr/oem/agent/agent_inst -oldAgentHome /usr/oem/agent/core/12.1.0.1.0 -newAgentHome /usr/oem/agent/core/12.1.0.2.0 completed with status=0
INFO: Command: /usr/oem/agent/core/12.1.0.2.0/jdk/bin/java -jar /usr/oem/agent/core/12.1.0.2.0/jlib/updateStateDirectory.jar -emStateDir /usr/oem/agent/agent_inst -oldAgentHome /usr/oem/agent/core/12.1.0.1.0 -newAgentHome /usr/oem/agent/core/12.1.0.2.0 completed successfully.
INFO: Executing command: /usr/oem/agent/core/12.1.0.2.0/perl/bin/perl /usr/oem/agent/core/12.1.0.2.0/bin/AgentPluginDeploy.pl -oracleHome /usr/oem/agent/core/12.1.0.2.0 -agentDir /usr/oem/agent -pluginIdsInfoFile /usr/oem/agent/plugins_upgrade.txt -action upgrade -deleteArchive -dont_restart -emStateDir /usr/oem/agent/agent_inst
INFO:
INFO:
INFO: The emStateDir is /usr/oem/agent/agent_inst
INFO:  The log file is /usr/oem/agent/agent_inst/install/logs/agentplugindeploy_2012_12_17_13_45_53.log
INFO: Acquiring the lock for  /usr/oem/agent/plugins_upgrade.txt
INFO: Acquired the lock for  /usr/oem/agent/plugins_upgrade.txt
INFO: The lock file is /usr/oem/agent/agent_inst/install/logs/agentplugindeploy.lock
INFO:  The log file is /usr/oem/agent/core/12.1.0.2.0/rwFile
INFO: Removed the /usr/oem/agent/core/12.1.0.2.0/rwFile file.
INFO: Command: /usr/oem/agent/core/12.1.0.2.0/perl/bin/perl /usr/oem/agent/core/12.1.0.2.0/bin/AgentPluginDeploy.pl -oracleHome /usr/oem/agent/core/12.1.0.2.0 -agentDir /usr/oem/agent -pluginIdsInfoFile /usr/oem/agent/plugins_upgrade.txt -action upgrade -deleteArchive -dont_restart -emStateDir /usr/oem/agent/agent_inst completed with status=9
SEVERE: Command: /usr/oem/agent/core/12.1.0.2.0/perl/bin/perl /usr/oem/agent/core/12.1.0.2.0/bin/AgentPluginDeploy.pl -oracleHome /usr/oem/agent/core/12.1.0.2.0 -agentDir /usr/oem/agent -pluginIdsInfoFile /usr/oem/agent/plugins_upgrade.txt -action upgrade -deleteArchive -dont_restart -emStateDir /usr/oem/agent/agent_inst failed.
SEVERE: ERROR: Agent Deployment Failed

Content of the file  <Agent_Instance_Home>/install/logs/agentplugindeploy_<Timestamp>.log

The command executed for deconfiguration is : /usr/oem/agent/agent_inst/bin/emctl remove_discovery_root plugin oracle.sysman.oh
 Oracle Enterprise Manager Cloud Control 12c Release 2 
Copyright (c) 1996, 2012 Oracle Corporation.  All rights reserved.
---------------------------------------------------------------
EMD remove_discovery_root plugin succeeded.
 return value is : 0
The command executed for detaching home is /usr/oem/agent/core/12.1.0.2.0/oui/bin/runInstaller -detachHome -silent -waitforcompletion ORACLE_HOME=/usr/oem/agent/plugins/oracle.sysman.oh.discovery.plugin_12.1.0.1.0 -invPtrLoc /usr/oem/agent/core/12.1.0.2.0/oraInst.loc -ignoreSysPrereqs 
 The inventory pointer is located at /usr/oem/agent/core/12.1.0.2.0/oraInst.loc
The inventory is located at /usr/oem/oraInventory
'DetachHome' failed.

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