My Oracle Support Banner

EM 13c: Agent Install from EM Console Fails: java.io.IOException: java.io.FileNotFoundException: .../inventory.lock (The file access permissions do not allow the specified action.) (Doc ID 2208188.1)

Last updated on MAY 17, 2021

Applies to:

Enterprise Manager Base Platform - Version 13.1.0.0.0 and later
Information in this document applies to any platform.

Symptoms

An error like the following is logged in the Enterprise Manager 13c Cloud Control OMS .../gc_inst/em/EMGC_OMS1/sysman/agentpush/<date_time>/logs/<host name>/install.err log after a failed agent deployment from EM 13c using the Add Host wizard:

<Date:Time> oracle.sysman.oii.oiio.oiioz.OiiozResponseFile getValue
INFO: This installation is being performed using response file <Agent_Base_Dir>/agentInstall.rsp.
java.io.IOException: java.io.FileNotFoundException: /u01/app/oraInventory/locks/inventory.lock (The file access permissions do not allow the specified action.)
<Agent_Base_Dir>/ADATMP_Date:Time>-PM/agentDeploy.sh[1155]: <Agent_Base_Dir>/agent_13.1.0.0.0/perl/bin/perl: not found.
cat: 0652-050 Cannot open <AGENT_Base_Dir>/agent_13.1.0.0.0/oraInst.loc.
ls: 0653-341 The file /logs does not exist.

 Also during the silent install of agent failing while running the below command

<path>>agentDeploy.bat AGENT_BASE_DIR=<path> RESPONSE_FILE=<path>\agent.rsp
<path>
Present working directory:<path>
Archive location:<path> directory
<path>
Agent base directory:<path>
Agent base directory:<path>
OMS Host:
Agent image loc : "<path>"
"Space available in AgentBaseDirectory is 1722579 MB"
<path>
Reading the properties file: "<path>"\agentimage.properties
The file cannot be copied onto itself.
0 file(s) copied.
This is the version 13.5.0.0.0
This is the type agent
This is the aru id 233
value of agenthome is "<path>\agent_13.5.0.0.0"

Unjarring the oneoff p32574981_135000_Generic.zip ...
<path>\agent_13.5.0.0.0/oracle_common/jdk/bin/jar xvf <path>\agent_13.5.0.0.0/install/oneoffs/agent/p32574981_135000_Generic.zip
created: 32574981/
inflated: 32574981/README.txt
created: 32574981/etc/
created: 32574981/etc/config/
inflated: 32574981/etc/config/actions.xml
inflated: 32574981/etc/config/inventory.xml
created: 32574981/files/
created: 32574981/files/oracle.sysman.agent.ic/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/common/
inflated: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/common/UniversalPooledConnectionImpl.class
inflated: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/common/UniversalPooledConnectionImpl$1.class
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/tuners/
created: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/tuners/stats/
inflated: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/tuners/stats/HistogramRingRegistry.class
inflated: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/tuners/PoolSizeTuner.class
inflated: 32574981/files/oracle.sysman.agent.ic/13.5.0.0.0/oracle.sysman.agent.ic.symbol/ucp/lib/ucp.jar/oracle/ucp/tuners/PoolSizeTuner$1.class
inflated: PatchSearch.xml
patches exist in <path>\agent_13.5.0.0.0

Applying opatch for the oneoffs p32302527_135000_Generic,p32313251_135000_Generic,p32574981_135000_Generic ...
<path>\agent_13.5.0.0.0/OPatch/opatch.bat napply -silent -local -oh <path>\agent_13.5.0.0.0 -phBaseFile <path>\agent_13.5.0.0.0/patch.txt
Oracle Interim Patch Installer version 13.9.4.2.5
Copyright (c) 2021, Oracle Corporation. All rights reserved

OPatch detects the Middleware Home as "<path>\agent_13.5.0.0.0"

Unable to lock Central Inventory. OPatch will attempt to re-lock.
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
OPatch will sleep for few seconds, before re-trying to get the lock...

Unable to lock Central Inventory. OPatch will attempt to re-lock.
Do you want to proceed? [y|n]
Y (auto-answered by -silent)
User Responded with: Y
OPatch will sleep for few seconds, before re-trying to get the lock...

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.