My Oracle Support Banner

EM13c : Upgrading The Windows Agent Failed - emctl_upgrade.bat does not exist (Doc ID 2598140.1)

Last updated on OCTOBER 10, 2019

Applies to:

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

Symptoms

In Enterprise Manager (EM) Cloud Control, While upgrading the agent on Windows fails with "emctl_upgrade.bat does not exist"

Following stack observed from <Agent_Home>/cfgtoollogs/agentDeploy/agentDeploy_<timestamp>.log:

INFO: Executing command: <Agent_Home>\oracle_common\jdk\jre\bin\java -jar <Agent_Home>\jlib\updateStateDirectory.jar -emStateDir <Agent_Inst> -oldAgentHome <OLD_Agent_Home> -newAgentHome <Agent_Home>
INFO: Failed to modify state directory <Agent_Inst>
INFO: java.io.FileNotFoundException: <Agent_Inst>\bin\emctl.bat (The process cannot access the file because it is being used by another process)
INFO: at java.io.FileOutputStream.open(Native Method)
INFO: at java.io.FileOutputStream.<init>(FileOutputStream.java:221)
INFO: at oracle.sysman.gcagent.common.FileUtils$SyncingFileOutputStream.<init>(FileUtils.java:1192)
...
WARNING: The emctl file in instancehome <Agent_Inst>\bin\emctl_upgrade.bat does not exist
INFO: Access is denied.
INFO: cmd /c <Agent_Inst>\bin\emctl.bat start agent completed with status=1
SEVERE:
ERROR: Agent Deployment Failed

 

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.