Thursday, July 23, 2015

OEM 12C Agent upgrade failed with an error 'The space required for the upgrade at /tmp/xxx is not sufficient. Free the space at /tmp/xxx or provide a different staging location

Problem

The space required for the upgrade at /tmp/tmp_2015_07_23_10_50_01_029 is not sufficient. Free the space at /tmp/tmp_2015_07_23_10_50_01_029 or provide a different staging location
The jar file is /u04/Grid12cr5/oms12cr5/oms/sysman/jlib/auc_prereqs.jar
 

On upgrading an agent from 12.1.0.2.0 to 12.1.0.5.0, I faced the following issue:







On clicking the Initializing upgrade parameters, the following message is displayed:

Executing command mkdir  -p /tmp/tmp_2015_07_23_10_50_01_029

Exit Code :0
The value of skipCleanup is false
Directory /tmp/tmp_2015_07_23_10_50_01_029 created successfully
The status of push jar file /tmp/tmp_2015_07_23_10_50_01_029/auc_prereqs.jar is true
Checking the free space available at /tmp/tmp_2015_07_23_10_50_01_029
Space free : 1 GB
Space required : 2 GB
Actual Space Available at : /tmp/tmp_2015_07_23_10_50_01_029 is 1GB
The check failed

Exit Code :1
The space required for the upgrade at /tmp/tmp_2015_07_23_10_50_01_029 is not sufficient. Free the space at /tmp/tmp_2015_07_23_10_50_01_029 or provide a different staging location


Solution 


Since I chose the default staging location for the 'Stage Location', Grid pushed the files to /tmp directory. Instead, we can choose a directory where we have some space. I have chosen /u04 as I have enough space there:


Now the upgrade just goes smooth: