Issue: While applying GRID patch, opatchauto was throwing below error, environment linux x86_64
# $GRID_HOME/OPatch/opatchauto apply /cme/oradm/software/30070242/26983807 -analyze -oh /opt/grid/product/12.1.0/grid_1
OPatchauto session is initiated at Thu Nov 7 08:35:40 2019
OPATCHAUTO-72059: Invalid patch.
OPATCHAUTO-72059: Supplied patch is invalid for current platform.
OPATCHAUTO-72059: Please provide a correct patch location.
OPatchauto session completed at Thu Nov 7 08:35:42 2019
Time taken to complete the session 0 minute, 2 seconds
opatchauto bootstrapping failed with error code 255.
Solution: Noticed that the "oraclehomeproperties.xml" file in Below location has missing highlighted entries. I corrected those by adding it and the opatchauto worked fine.
cd $GRID_HOME/inventory/ContentsXML
# vi oraclehomeproperties.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2014, Oracle and/or its affiliates.
All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<ORACLEHOME_INFO>
<GUID>638047284.418901274</GUID>
<HOME CRS="T"/>
<ARU_PLATFORM_INFO>
<ARU_ID>226</ARU_ID>
<ARU_ID_DESCRIPTION>Linux x86-64</ARU_ID_DESCRIPTION>
</ARU_PLATFORM_INFO>
<CLUSTER_INFO>
<LOCAL_NODE NAME="linux01"/>
<NODE_LIST>
<NODE NAME="linux01"/>
<NODE NAME="linux02"/>
</NODE_LIST>
</CLUSTER_INFO>
<PROPERTY_LIST>
<PROPERTY NAME="ORACLE_BASE" VAL="/opt/oracle"/>
</PROPERTY_LIST>
</ORACLEHOME_INFO>
# $GRID_HOME/OPatch/opatchauto apply /cme/oradm/software/30070242 -analyze -oh $GRID_HOME
OPatchauto session is initiated at Thu Nov 7 09:00:37 2019
System initialization log file is /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchautodb/systemconfig2019-11-07_09-00-40AM.log.
Session log file is /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchauto/opatchauto2019-11-07_09-00-53AM.log
The id for this session is K4YH
Executing OPatch prereq operations to verify patch applicability on home /opt/grid/product/12.1.0/grid_1
Patch applicability verified successfully on home /opt/grid/product/12.1.0/grid_1
OPatchAuto successful.
--------------------------------Summary--------------------------------
Analysis for applying patches has completed successfully:
Host:linux01
CRS Home:/opt/grid/product/12.1.0/grid_1
Version:12.1.0.2.0
==Following patches were SUCCESSFULLY analyzed to be applied:
Patch: /cme/oradm/software/30070242/26983807
Log: /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchauto/core/opatch/opatch2019-11-07_09-01-01AM_1.log
Patch: /cme/oradm/software/30070242/29938464
Log: /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchauto/core/opatch/opatch2019-11-07_09-01-01AM_1.log
Patch: /cme/oradm/software/30070242/29938481
Log: /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchauto/core/opatch/opatch2019-11-07_09-01-01AM_1.log
Patch: /cme/oradm/software/30070242/29972716
Log: /opt/grid/product/12.1.0/grid_1/cfgtoollogs/opatchauto/core/opatch/opatch2019-11-07_09-01-01AM_1.log
OPatchauto session completed at Thu Nov 7 09:01:19 2019