Oracle 12.2.0.1 opatch lsinventory Error: LsInventorySession failed: RawInventory gets null OracleHomeInfo

[grid@node1 ~]$ opatch lsinventory -detail -oh /u01/app/12.2.0/grid
Oracle Interim Patch Installer version 12.2.0.1.25
Oracle Home : /u01/app/12.2.0/grid
Central Inventory : /u01/app/oraInventory
from : /u01/app/12.2.0/grid/oraInst.loc
OPatch version : 12.2.0.1.25
OUI version : 12.2.0.1.4
Log file location : /u01/app/12.2.0/grid/cfgtoollogs/opatch/opatch2021-07-22_11-46-24AM_1.log
List of Homes on this system:
Home name= OraDB12Home1, Location= “/u01/app/oracle/product/12.2.0/db_1”
LsInventorySession failed: RawInventory gets null OracleHomeInfo
OPatch failed with error code 73

Codes:

[grid@node1 ~]$ cd $ORACLE_HOME
[grid@node1 grid]$ cd oui
[grid@node1 oui]$ cd bin/
[grid@node1 bin]$ ls -l attachHome.sh 
-rwxr-x--- 1 grid oinstall 276 Jul 21 19:11 attachHome.sh
[grid@node1 bin]$ sh attachHome.sh 
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 2557 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
'AttachHome' was successful.
[grid@node1 bin]$ opatch lsinventory -detail -oh /u01/app/12.2.0/grid
Oracle Interim Patch Installer version 12.2.0.1.25
Copyright (c) 2021, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/12.2.0/grid
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/12.2.0/grid/oraInst.loc
OPatch version    : 12.2.0.1.25
OUI version       : 12.2.0.1.4
Log file location : /u01/app/12.2.0/grid/cfgtoollogs/opatch/opatch2021-07-22_11-51-26AM_1.log

Lsinventory Output file location : /u01/app/12.2.0/grid/cfgtoollogs/opatch/lsinv/lsinventory2021-07-22_11-51-26AM.txt
--------------------------------------------------------------------------------
Local Machine Information::
Hostname: node1
ARU platform id: 226
ARU platform description:: Linux x86-64

Installed Top-level Products (1): 

Oracle Grid Infrastructure 12c                                       12.2.0.1.0
There are 1 products installed in this Oracle Home.


Installed Products (99): 

Assistant Common Files                                               12.2.0.1.0
Automatic Storage Management Assistant                               12.2.0.1.0
BLASLAPACK Component                                                 12.2.0.1.0

Read More: