Opatchauto Session failed: java.lang.Exception: Failed to create directory <GI_HOME>/cfgtoollogs/opatchauto/<Patch_number> due to su -c failure (Doc ID 2121615.1)

Last updated on AUGUST 19, 2016

Applies to:

Oracle Database - Enterprise Edition - Version 12.1.0.2 and later
Information in this document applies to any platform.

Symptoms

When applying a PSU to GI Home,the opatch auto generate the following errors:

/oracle_crs/product/12.1.0.2/crs_1/OPatch/opatchauto apply /ora01/patches/12102_JanPSU/22191676 -ocmrf /ora01/patches/12102_JanPSU/ocm.rsp -oh /oracle_crs/product/12.1.0.2/crs_1
OPatch Automation Tool
Copyright (c)2014, Oracle Corporation. All rights reserved.

OPatchauto Version : 12.1.0.1.10
OUI Version : 12.1.0.2.0
Running from : /oracle_crs/product/12.1.0.2/crs_1

Failed to create log files.

Opatchauto Session failed: java.lang.Exception: Failed to create directory "/oracle_crs/product/12.1.0.2/crs_1/cfgtoollogs/opatchauto/22191676".
java.io.IOException: java.lang.Exception: Failed to create directory "/oracle_crs/product/12.1.0.2/crs_1/cfgtoollogs/opatchauto/22191676".
at oracle.opatchauto.gi.GILogger.instantiateLogFiles(GILogger.java:155)
at oracle.opatchauto.gi.GIPatching.process(GIPatching.java:325)
at oracle.opatchauto.gi.OPatchauto.invokeGIPatching(OPatchauto.java:157)
at oracle.opatchauto.gi.OPatchauto.main(OPatchauto.java:91)
Caused by: java.lang.Exception: Failed to create directory "/oracle_crs/product/12.1.0.2/crs_1/cfgtoollogs/opatchauto/22191676".
at oracle.opatchauto.gi.GILogger.instantiateLogFiles(GILogger.java:83)
... 3 more

opatchauto failed with error code 1.

 

 

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