R12.2.x - Application Clone 'perl adcfgclone.pl appsTier' : ..clone/FMW/pasteBinary.sh results in ERROR: Script failed, exit code 255

While performing rapid clone of R12.2.3 environment, I faced an error while running adcfgclone.pl. I performed the below step and it resulted in error :
$ cd <COMMON_TOP>/clone/bin
$ perl adcfgclone.pl appsTier
Please note that 'fs2' is the RUN Edition on my environment.
Error from adcfgclone.pl:
..


Beginning application tier Apply - Fri Jan 16 10:59:52 2015

/wms/app/oracle/fs2/EBSapps/comn/clone/bin/../jre/bin/java -Xmx600M -DCONTEXT_VALIDATED=true -Doracle.installer.oui_loc=/oui -classpath /wms/app/oracle/fs2/EBSapps/comn/clone/jlib/xmlparserv2.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/ojdbc6.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/java:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/oui/OraInstaller.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/oui/ewt3.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/oui/share.jar:/wms/app/oracle/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/ojmisc.jar:/wms/app/oracle/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/wms/app/oracle/fs2/EBSapps/comn/clone/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.ApplyAppsTier -e /wms/app/oracle/fs2/inst/apps/BERRY_PINK1/appl/admin/BERRY_PINK1.xml -stage /wms/app/oracle/fs2/EBSapps/comn/clone    -showProgress -nopromptmsg
Log file located at /wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/ApplyAppsTier_01161059.log
  |      0% completed
ERROR while running Apply...
Fri Jan 16 11:04:01 2015

 ERROR: Failed to execute /wms/app/oracle/fs2/EBSapps/comn/clone/bin/adclone.pl

 Please check logfile.
[applwms@PINK1 bin]$


Log file (ApplyAppsTier_01161059.log): 

[applwms@PINK1 fmwT2PApply]$ cat /wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/ApplyAppsTier_01161059.log
#############################################################
Started ApplyAppsTier at Fri Jan 16 10:59:53 CST 2015
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 /wms/app/oracle/fs2/EBSapps/comn/clone/FMW/pasteBinary.sh -javaHome /wms/app/oracle/fs2/EBSapps/comn/util/jdk64 -al /wms/app/oracle/fs2/EBSapps/comn/clone/FMW/FMW_Home.jar -tl /wms/app/oracle/fs2/FMW_Home -invPtrLoc /etc/oraInst.loc -ldl /wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/fmwT2PApply -silent true -executeSysPrereqs false
Script Executed in 247686 milliseconds, returning status 255
ERROR: Script failed, exit code 255
[applwms@PINK1 fmwT2PApply]$


This doesn't help the error we are getting much unless you check CLONE2015-01-16_10-59-54AM.log and CLONE2015-01-16_10-59-54AM.error files. These files are located on /wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/fmwT2PApply.

Log file (/wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/fmwT2PApply/CLONE2015-01-16_10-59-54AM.log): 

INFO : Jan 16, 2015 10:59:55 AM - CLONE-21012   The archive will be restored fully at /wms/app/oracle/fs2/FMW_Home.
INFO : Jan 16, 2015 10:59:55 AM - CLONE-21104   The number of Oracle homes and Middleware homes present in the archive is 3 and 1 respectively.
INFO : Jan 16, 2015 10:59:57 AM - CLONE-21060   No system prerequisites will be executed for the Oracle home /wms/app/oracle/fs2/FMW_Home/oracle_common/ as it is set to false.
INFO : Jan 16, 2015 10:59:57 AM - CLONE-21060   No system prerequisites will be executed for the Oracle home /wms/app/oracle/fs2/FMW_Home/webtier/ as it is set to false.
INFO : Jan 16, 2015 10:59:57 AM - CLONE-21060   No system prerequisites will be executed for the Oracle home /wms/app/oracle/fs2/FMW_Home/Oracle_EBS-app1/ as it is set to false.
INFO : Jan 16, 2015 10:59:57 AM - CLONE-21156   Extracting all the homes from the archive file. Extraction time will vary depending upon the archive size ...
INFO : Jan 16, 2015 10:59:57 AM - CLONE-21157   The size of the all homes are 5.117 GB.
INFO : Jan 16, 2015 11:00:11 AM - CLONE-21126   Operation is 13% complete, in "14" seconds.
INFO : Jan 16, 2015 11:00:38 AM - CLONE-21126   Operation is 20% complete, in "40" seconds.
INFO : Jan 16, 2015 11:01:25 AM - CLONE-21126   Operation is 30% complete, in "87" seconds.
INFO : Jan 16, 2015 11:01:47 AM - CLONE-21126   Operation is 40% complete, in "110" seconds.
INFO : Jan 16, 2015 11:02:07 AM - CLONE-21126   Operation is 50% complete, in "130" seconds.
INFO : Jan 16, 2015 11:02:43 AM - CLONE-21126   Operation is 60% complete, in "165" seconds.
INFO : Jan 16, 2015 11:03:14 AM - CLONE-21126   Operation is 70% complete, in "196" seconds.
INFO : Jan 16, 2015 11:03:51 AM - CLONE-21126   Operation is 80% complete, in "233" seconds.
INFO : Jan 16, 2015 11:04:00 AM - CLONE-21025   Restoring Middleware home at "/wms/app/oracle/fs2/FMW_Home/" from archive "/wms/app/oracle/fs2/EBSapps/comn/clone/FMW/FMW_Home.jar" started ...
INFO : Jan 16, 2015 11:04:01 AM - CLONE-21037   Time taken to restore all cloners from archive was "243" seconds.
INFO : Jan 16, 2015 11:04:01 AM - CLONE-21006   Total time taken by T2P process was 245 seconds.



Error File (/wms/app/oracle/fs2/inst/apps/BERRY_PINK1/admin/log/clone/fmwT2PApply/CLONE2015-01-16_10-59-54AM.error) :

SEVERE : Jan 16, 2015 11:04:00 AM - ERROR - CLONE-20275   Insufficient space to create /tmp/CLONINGCLIENT5418759569442312041.
SEVERE : Jan 16, 2015 11:04:00 AM - CAUSE - CLONE-20275   Minimum required space was at least "1,773" MB, but only "897" MB was available for use.

SEVERE : Jan 16, 2015 11:04:00 AM - ACTION - CLONE-20275   Make sure that the minimum required space is available for use.
SEVERE : Jan 16, 2015 11:04:00 AM - ERROR - CLONE-20233   Restoring Middleware home for sourceid "mwhome1@FMW_Home" has failed.
SEVERE : Jan 16, 2015 11:04:00 AM - CAUSE - CLONE-20233   An internal operation failed.
SEVERE : Jan 16, 2015 11:04:00 AM - ACTION - CLONE-20233   Check the clone log and error file for more details.
SEVERE : Jan 16, 2015 11:04:00 AM - ERROR - CLONE-20237   Restoring the sourceid "mwhome1@FMW_Home" has failed.
SEVERE : Jan 16, 2015 11:04:00 AM - CAUSE - CLONE-20237   An internal operation failed.
SEVERE : Jan 16, 2015 11:04:00 AM - ACTION - CLONE-20237   Check the clone log and error file for more details.
SEVERE : Jan 16, 2015 11:04:01 AM - ERROR - CLONE-20218   Cloning is not successful.
SEVERE : Jan 16, 2015 11:04:01 AM - CAUSE - CLONE-20218   An internal operation failed.
SEVERE : Jan 16, 2015 11:04:01 AM - ACTION - CLONE-20218   Provide the clone log and error file for investigation.

Solution:
/tmp is used by Oracle rapidclone to extract and build FMW Home on the target. Please make sure you have you have at least 2 GB of /tmp space on the target server.

1 comment: