opatch apply/auto on grid home fails with "OUI-67073:UtilSession failed: null"

(Doc ID 2223854.1)

Last updated on MAY 02, 2018

Applies to:

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


Opatch apply/napply fails:

[grid@npsdbXXXX ~]/u01/app/ apply -oh /u01/app/ -local /u01/app/oracle/software/22191577/21948347

Oracle Interim Patch Installer version
Copyright (c) 2017, Oracle Corporation. All rights reserved.

Oracle Home : /u01/app/
Central Inventory : /u01/app/oraInventory
from : /u01/app/
OPatch version : <<< Using the latest OPatch
OUI version :
Log file location : /u01/app/


Backing up files...
UtilSession failed: null <<< !!! HERE
Log file location: /u01/app/

OPatch failed with error code 73

From opatch log

[Jan 17, 2017 4:38:42 AM] User Responded with: Y
[Jan 17, 2017 4:38:42 AM] Backing up files...
[Jan 17, 2017 4:38:42 AM] OUI-67117:Backing up files affected by the patch 'NApply' for restore. This might take a while...
[Jan 17, 2017 4:38:42 AM] OUI-67073:UtilSession failed: null <<< !! HERE
[Jan 17, 2017 4:38:42 AM] Finishing UtilSession at Tue Jan 17 04:38:42 UTC 2017
[Jan 17, 2017 4:38:42 AM] Log file location: /u01/app/
[Jan 17, 2017 4:38:42 AM] Stack Description: java.lang.RuntimeException: null
[Jan 17, 2017 4:38:42 AM] StackTrace: oracle.opatch.SystemCall.fastCopy(SystemCall.java:296)
[Jan 17, 2017 4:38:42 AM] StackTrace: oracle.opatch.SystemCall.backupFile(SystemCall.java:1253)

More details with opatch tracing turned on:

[grid@npsdbXXXX ~] export OPATCH_DEBUG=true
[grid@npsdbXXXX ~]/u01/app/ apply -oh /u01/app/ -local /u01/app/oracle/software/22191577/21948347
CopyAction::backupForRestore(): source file "/u01/app/" not exist, do not back up /u01/app/
Action details: src = "/u01/app/", dst = "/u01/app/"
CopyAction::backupForRestore(): back up "/u01/app/" to "/u01/app/"
SystemCall::backupFile(): back up file /u01/app/ to /u01/app/ <<< !!! HERE
SystemCall::backupFile() failed, null <<< !!! HERE
UtilSession failed: null
OUISessionManager::endSavedSession() end saved session
==> OUIInventorySession::endSession(): Process ID: 30358. Thread ID: 1
Log file location: /u01/app/



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