Search This Blog

Monday, April 3, 2017

adcfgclone fails in R12.2.4

Hello DBA's,

I was getting the error below while runnig adcfgclone.pl for run file system. adcfgclone was returning into error while generating OHS. After digging into the logs i found out the error and fix.

Error  returned in adcfgclone :

Beginning application tier Apply - Sun Apr  2 16:14:55 2017

/d02/DEV/appltest/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/java:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/d02/DEV/appltest/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/d02/DEV/appltest/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/d02/DEV/appltest/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/appl/admin/dev_ahqtest.xml -stage /d02/DEV/appltest/fs2/EBSapps/comn/clone    -showProgress -nopromptmsg
Log file located at /d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/admin/log/clone/ApplyAppsTier_04021614.log
  \    100% completed
ERROR while running Apply...
Sun Apr  2 16:50:53 2017

 ERROR: Failed to execute /d02/DEV/appltest/fs2/EBSapps/comn/clone/bin/adclone.pl

 Please check logfile.


Go to the below location and look into the clone logs.

/d02/DEV/appltest/fs2/inst/apps/dev_ahqtest/admin/log

Please navigate into the directories below and check each error log. Since OHS generation was failing i looked into ohsT2PApply folder. You can look into the each folders to figure out the root cause of the issue.



As i looked into the ohs clone logs. i found the below,


SEVERE : Apr 2, 2017 4:50:52 PM - ERROR - CLONE-20218   Cloning is not successful.
SEVERE : Apr 2, 2017 4:50:52 PM - CAUSE - CLONE-20218   An internal operation failed.
SEVERE : Apr 2, 2017 4:50:52 PM - ACTION - CLONE-20218   Provide the clone log and error file for investigation.
oracle.as.clone.cloner.exception.ApplyCloneException:  Instance "Create & Start" step  failed.
at oracle.as.clone.util.ASInstanceUtil.createStartInstance(ASInstanceUtil.java:203)
at oracle.as.clone.cloner.component.ComponentApplyCloner.createStartInstance(ComponentApplyCloner.java:253)
at oracle.as.clone.cloner.component.ComponentApplyCloner.doClone(ComponentApplyCloner.java:124)
at oracle.as.clone.cloner.Cloner.doFinalClone(Cloner.java:61)
at oracle.as.clone.request.ApplyCloneRequest.applyArchive(ApplyCloneRequest.java:188)
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)
Caused by: oracle.as.config.ProvisionException: Unable to create Oracle wallet for CN=\"Self-Signed Certificate for EBS_web_DEV_OHS1 \", OU=OAS, O=ORACLE, L=REDWOODSHORES, ST=CA, C=US
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:635)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:669)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:560)
at oracle.as.config.impl.OpmnProvisioner.generateWallet(OpmnProvisioner.java:70)
at oracle.as.config.impl.OpmnProvisioner.createOpmnConfiguration(OpmnProvisioner.java:366)
at oracle.as.config.impl.OracleASInstanceImpl.createOpmnConfiguration(OracleASInstanceImpl.java:587)
at oracle.as.config.impl.OracleASInstanceImpl.create(OracleASInstanceImpl.java:108)
at oracle.as.clone.provisioning.implementations.ASInstanceProvImpl.createInstanceAndStart(ASInstanceProvImpl.java:151)
at oracle.as.clone.util.ASInstanceUtil.createStartInstance(ASInstanceUtil.java:197)
... 9 more
Caused by: oracle.as.config.ProvisionException: Unable to generate wallet:/d02/DEV/appltest/fs2/FMW_Home/webtier/instances/EBS_web_DEV_OHS1/config/OPMN/opmn/wallet
at oracle.as.config.utl.FileUtil.createSelfSignedOracleWallet(FileUtil.java:717)
at oracle.as.config.utl.FileUtil.generateWallet(FileUtil.java:633)
... 17 more
Caused by: java.io.IOException: java.io.FileNotFoundException: /var/tmp/pki_data351618491.lck.tmp (Permission denied)
at oracle.security.pki.FileLocker.lock(Unknown Source)
at oracle.security.pki.p.b(Unknown Source)
at oracle.security.pki.OracleWallet.saveAs(Unknown Source)
at oracle.as.config.utl.FileUtil.createSelfSignedOracleWallet(FileUtil.java:713)
... 18 more
Caused by: java.io.FileNotFoundException: /var/tmp/pki_data351618491.lck.tmp (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:233)
... 22 more
SEVERE :  Instance "Create & Start" step  failed.


Fix :

Go into /var/tmp and remove all *.tmp and *tm* files. Error is due to the files created already by other OS user while previous clone. After removing these files i was able to run adcfgclone without any issue.

Example files,

l0068316.tmp                            oracle-dfw-183105158211537317.tmp.lck   oracle-dfw-3425756421653396373.tmp.lck  oracle-dfw-6819160851092011229.tmp.lck
l0074798.tmp                            oracle-dfw-2538503116833463042.tmp.lck  oracle-dfw-381765866794171712.tmp.lck   oracle-dfw-7403137649019225396.tmp.lck
o0068316.tmp                            oracle-dfw-2768660284650699974.tmp.lck  oracle-dfw-3881486271877275351.tmp.lck  oracle-dfw-7581853159876750729.tmp.lck
o0074798.tmp                            oracle-dfw-2864542042881798703.tmp.lck  oracle-dfw-3949270719924899349.tmp.lck  oracle-dfw-811586717221662313.tmp.lck
oracle-dfw-1289848250680752772.tmp.lck  oracle-dfw-2885216464135319148.tmp.lck  oracle-dfw-4021867361401290383.tmp.lck  oracle-dfw-8316190839543132266.tmp.lck
oracle-dfw-1348441697504327757.tmp.lck  oracle-dfw-2978949011485778224.tmp.lck  oracle-dfw-4307512469973605009.tmp.lck  oracle-dfw-9056445239475151314.tmp.lck
oracle-dfw-1395632348555471284.tmp.lck  oracle-dfw-3017158076078216067.tmp.lck  oracle-dfw-4367139050759866178.tmp.lck  oracle-dfw-996988207737723041.tmp.lck

No comments:

Post a Comment

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...