EM 12c (Windows OS): emctl stop oms Fails to Stop OMS with Error "Oracle Management Server Failed to be Stopped" and "log4j:ERROR setFile(null,true) call failed" (Doc ID 2135769.1)

Last updated on MAY 15, 2016

Applies to:

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

Symptoms

On Windows OS, emctl commands give the following java error messages and also fails to start/stop the OMS


E:\app\MiddleWare\oms\BIN>emctl stop oms -all -force
Oracle Enterprise Manager Cloud Control 12c Release 4
Copyright (c) 1996, 2014 Oracle Corporation. All rights reserved.
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: E:\app\gc_inst\em\EMGC_OMS1\sysman\log\emctl.log(Access is denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:192)
at java.io.FileOutputStream.<init>(FileOutputStream.java:116)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)
at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:165)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java56)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:132)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:96)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:654)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(Propertyonfigurator.java:509)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:415)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:349)
at oracle.sysman.emctl.wls.OMSController.initLogging(OMSController.java:312)
at oracle.sysman.emctl.wls.OMSController.main(OMSController.java:213)
Stopping WebTier...
WebTier Successfully Stopped
Stopping Oracle Management Server...
Oracle Management Server Failed to be Stopped
Check EM Server log file for details: E:\app\gc_inst\user_projects\domains\GCDain\servers\EMGC_OMS1\logs\EMGC_OMS1.out
AdminServer Successfully Stopped

E:\app\gc_inst\em\EMGC_OMS1\sysman\log\emctl.log gives following messages when we enable emctl with debug.

2016-05-09 12:27:17,643 [main] DEBUG commands.StopCommand stopOMS.236 - Executing the wlst command for stopOMS...
2016-05-09 12:27:17,768 [Thread-4] DEBUG commands.BaseCommand run.577 - <ERR>Access is denied.
2016-05-09 12:27:17,768 [main] DEBUG commands.BaseCommand processCmd.510 - wlst process is finished

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