Search This Blog

Monday, August 21, 2017

12.2 apps tier cloning fails - EBSapps/comn/clone/FMW/pasteBinary.sh ERROR: Script failed, exit code 255

Adcfgclone is referring to production inventory in test server due to which cloning is returning into the error. I have provided the error and action plan in this post.

Error :

Started ApplyAppsTier at Thu Aug 17 08:20:01 AST 2017
Version:
        ApplyAppsTier.java      :       120.11.12020000.6
#############################################################

START: Creating the FMW Home from ApplyAppsTier
FMW JDK version in use: 1.7.0_25

START: Creating FMW Home.
Running /d02/DEV/appltest/fs2/EBSapps/comn/clone/FMW/pasteBinary.sh -javaHome /d02/DEV/appltest/fs2/EBSapps/comn/util/jdk -al /d02/DEV/appltest/fs2/EBSapps/comn/clone/FMW/FMW_Home.jar -tl /d02/DEV/appltest/fs2/FMW_Home -invPtrLoc /var/opt/oracle/oraInst.loc -ldl /d02/DEV/appltest/fs2/inst/apps/DEV_ahqtest/admin/log/clone/fmwT2PApply -silent true -debug true -executeSysPrereqs false
Script Executed in 655369 milliseconds, returning status 255
ERROR: Script failed, exit code 255


I found the error from the logs below. Error is while creating fmw and i was able to figure out the rror in the folder below.

/d02/DEV/appltest/fs2/inst/apps/DEV_ahqtest/admin/log/clone/fmwT2PApply

Please look out for *.error file where errors will be logged. 

bash-3.2$ ls -ltr

CLONE2017-08-20_03-47-24PM.error  --> Error will be logged here. 
CLONE2017-08-20_03-47-24PM.log

Error logged :

"CLONE2017-08-17_08-20-03AM.error" 19 lines, 1981 characters
SEVERE : Aug 17, 2017 8:30:57 AM - ERROR - CLONE-20218   Cloning is not successful.
SEVERE : Aug 17, 2017 8:30:57 AM - CAUSE - CLONE-20218   An internal operation failed.
SEVERE : Aug 17, 2017 8:30:57 AM - ACTION - CLONE-20218   Provide the clone log and error file for investigation.
java.lang.Exception: Invalid Oracle home as its inventory pointer file /d02/DEV/appltest/fs2/FMW_Home/oracle_common/oraInst.loc has invalid entry for Oracle inventory.
        at oracle.as.clone.util.OracleHomeDepRefUtil.setInvPtrLocInInventoryManager(OracleHomeDepRefUtil.java:327)
        at oracle.as.clone.util.OracleHomeDepRefUtil.backupAndSetInvPtrLocBeforeInstallEngineInvoke(OracleHomeDepRefUtil.java:269)
        at oracle.as.clone.util.OracleHomeDepRefUtil.preSetupBeforeInstallEngineInvoke(OracleHomeDepRefUtil.java:207)
        at oracle.as.clone.util.OracleHomeDepRefUtil.setOHProperties(OracleHomeDepRefUtil.java:465)
        at oracle.as.clone.util.OracleHomeDepRefUtil.setOracleHomeProperties(OracleHomeDepRefUtil.java:424)
        at oracle.as.clone.mwhome.cloner.OracleHomeApplyCloner.updateOracleHomeInfo(OracleHomeApplyCloner.java:1904)
        at oracle.as.clone.mwhome.cloner.NormalOracleHomeApplyCloner.doPostApplyClone(NormalOracleHomeApplyCloner.java:127)
        at oracle.as.clone.request.ApplyCloneRequest.performFirstPostoperation(ApplyCloneRequest.java:248)
        at oracle.as.clone.request.ApplyCloneRequest.applyArchive(ApplyCloneRequest.java:219)
        at oracle.as.clone.request.ApplyCloneRequest._clone(ApplyCloneRequest.java:69)
        at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:131)
        at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:114)
        at oracle.as.clone.client.CloningClient.executeT2PCommand(CloningClient.java:238)
        at oracle.as.clone.client.CloningClient.main(CloningClient.java:115)
SEVERE : Invalid Oracle home as its inventory pointer file /d02/DEV/appltest/fs2/FMW_Home/oracle_common/oraInst.loc has invalid entry for Oracle inventory.

I found the production inventory location in the file above. Corrected the inventory location in the test server in the file below.

bash-3.2$ find ./ -name '*ora*.loc'
$RUN_FS/EBSapps/10.1.2/oraInst.loc

You can also do the below,

Change All orinst.loc
mv /var/opt/oracle/oraInventory  /var/opt/oracle/oraInventory.org
Remove all files under /tmp
Re-run adcfclone




  


You cannot complete this task because one of the following events caused a loss of page data: A system failure has occurred "Front end is locked after 12.2 upgrade"

  If you have upgraded to Oracle E-Business Suite 12.2.10 Release Update Pack from Oracle E-Business Suite 12.2.6 Release Update Pack (or ea...