Master in Oracle Cloud (OCI) | Join us for the demo session on 4th December 2025 at 7:00 PM IST

Agent Clone Failed Exit Code:1

Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
Breadcrumb Abstract Shape
  • User AvatarKiran Dalvi
  • 05 Dec, 2023
  • 0 Comments
  • 1 Min Read

Agent Clone Failed Exit Code:1

While deploying agent in one of the target server for OEM 12c , we got error like
Agent Clone Failed Exit Code:1.

Solution :

Get the inventory location
[oracle@prim]/export/home/oracle/bsstdba# opatch lsinventory
Oracle Interim Patch Installer version 12.1.0.1.0
Copyright (c) 2012, Oracle Corporation. All rights reserved.


Oracle Home : /oracle/app/oracle/product/12.1.0
Central Inventory : /oracle/app/oraInventory
from : /oracle/app/oracle/product/12.1.0/oraInst.loc
OPatch version : 12.1.0.1.0
OUI version : 12.1.0.1.0
Log file location : /oracle/app/oracle/product/12.1.0/cfgtoollogs/opatch/opatch2023-9-20_16-54-51PM_1.log

Lsinventory Output file location : /oracle/app/oracle/product/12.1.0/cfgtoollogs/opatch/lsinv/lsinventory2023-9-20_16-54-51PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (1):

Oracle Database 12c 12.1.0.1.0
There are 1 products installed in this Oracle Home.


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.

Go to oraInventory location, check the the permissions on the directory.
[oracle@prim]/export/home/oracle/bsstdba# cd /oracle/app/oraInventory
[oracle@prim]/oracle/app/oraInventory# ls -ltr
total 16
drwxrwx--- 2 oracle oinstall 3 May 20 12:56 oui
drwxrwx--- 2 oracle oinstall 5 May 20 13:00 ContentsXML
drwxrwx--- 2 oracle oinstall 90 Oct 20 10:19 logs
drwxrwx--- 16 siebel siebel 16 Oct 20 10:19 backup

We can see that oracle user has no permission on backup directory. So grant 777 to backup directory.
[oracle@prim]/oracle/app/oraInventory# ls -ltr
total 16
drwxrwx--- 2 oracle oinstall 3 May 20 12:56 oui
drwxrwx--- 2 oracle oinstall 5 May 20 13:00 ContentsXML
drwxrwx--- 2 oracle oinstall 90 Oct 20 10:19 logs
drwxrwxrwx 16 siebel siebel 16 Oct 20 10:19 backup

Now try to redeploy the agent. It should work succsessfully.

 

Hope it Helps!

Let's Talk

Find your desired career path with us!

Let's Talk

Find your desired career path with us!