EM 12c : Agent on Windows OS Crashes due to Missing <AGENT_INST>/sysman/emd/upload/* Directories or Insufficient Permissions (Doc ID 2160860.1)

Last updated on JULY 20, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.2.0 and later
Generic Windows

Symptoms

12c Agent on Windows 64 bit OS starts up fine and is able to ping and upload to the OMS. However it crashes after sometime with the below errors in the <AGENT_INST>/sysman/log/emagent.nohup:

----- Fri Jul 1 11:31:54 2016::6624::Checking status of EMAgent : 9448 -----
----- Fri Jul 1 11:31:54 2016::6624::EMAgent exited at Fri Jul 1 11:31:54 2016 with return value 55. -----
----- Fri Jul 1 11:31:54 2016::6624::EMAgent has exited due to initialization failure. -----
----- Fri Jul 1 11:31:54 2016::6624::Stopping other components. -----
----- Fri Jul 1 11:31:54 2016::6624::Commiting Process death. -----
----- Fri Jul 1 11:31:54 2016::6624::writeAbnormalExitTimestampToAgntStmp: exitCause=ABNORMAL : restartRequired=0 -----
----- Fri Jul 1 11:31:54 2016::6624::Generating additional diagnostics for 9448 -----
----- Fri Jul 1 11:31:54 2016::6624::Exiting watchdog loop

-  Prior to the crash, the <AGENT_INST>/sysman/log/gcagent.log shows multiple file access errors as below:

2016-07-01 11:30:42,314 [331:GC.Executor.38 (oracle_beacon:SDC Windows Health Check VM:Response)] ERROR - failed to create pending file
java.io.FileNotFoundException: C:\oem\12.1.0.5.0_AgentCore_233\base\agent_inst\sysman\emd\upload\pending\D_P4_S1_I42.xml.tmp (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at oracle.sysman.gcagent.upload.UploadManager.send(UploadManager.java:2422)
at oracle.sysman.gcagent.upload.UploadManager.send(UploadManager.java:2563)
....................
Caused by: java.io.FileNotFoundException: C:\oem\12.1.0.5.0_AgentCore_233\base\agent_inst\sysman\emd\upload\pending\D_P4_S1_I42.xml.tmp (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
at oracle.sysman.gcagent.upload.UploadManager.send(UploadManager.java:2422)
... 22 more
2016-07-01 11:31:01,284 [332:B3FC5A9B:GC.Executor.39 (host:svchk91:NetworkWindows) (host:svchk91:NetworkWindows:Network)] WARN - Marshalling to output file stream 
C:/oem/12.1.0.5.0_AgentCore_233/base/agent_inst\sysman\emd\upload\upload\sending\uplB_P2_S2_I99.xml.tmp failed
java.io.FileNotFoundException: C:\oem\12.1.0.5.0_AgentCore_233\base\agent_inst\sysman\emd\upload\upload\sending\uplB_P2_S2_I99.xml.tmp (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at oracle.sysman.gcagent.common.FileUtils$SyncingFileOutputStream.<init>(FileUtils.java:1137)
at oracle.sysman.gcagent.common.FileUtils.createOutputStream(FileUtils.java:1240)
at oracle.sysman.gcagent.common.FileUtils.createWriter(FileUtils.java:1322)

-  Verifying whether the listed directories exist shows:

- The Windows OS user who has installed the agent or is starting the agent has the below permissions at the OS:

Act as part of the operating system.
Adjust memory quotas for a process.
Replace process level token.
Log on as a batch job.

 

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