Timeout Error Encountered for pasteBinary.sh While Running "adop phase=fs_clone"
While running fs_clone phase in 12.2.2, we have faced the following issue.
Error:
Creating FMW Home.
Running [filesystem]/fs1/EBSapps/comn/clone/FMW/pasteBinary.sh -javaHome [filesystem]/fs1/EBSapps/comn/clone/FMW/t2pjdk -al [filesystem]/fs1/EBSapps/comn/clone/FMW/FMW_Home.jar -tl [filesystem]/fs2/FMW_Home -invPtrLoc /etc/oraInst.loc -ldl [filesystem]/fs1/EBSapps/comn/clone/FMW/logs -silent true -executeSysPrereqs false
Script Executed in 7200015 milliseconds, returning status -1
Script timed out.
Cause:
While running fs_clone phase in 12.2.2, we have faced the following issue.
Error:
Enabling EBS_LOGON trigger
Error while executing [filesystem]/fs2/inst/apps/[context_name]/appltmp/alter_ebs_logon_trigger.sql
Failed to enable EBS_LOGON trigger
*******FATAL ERROR*******
PROGRAM : ([filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl)
TIME : Mon Nov 11 15:47:51 2013
FUNCTION: main::runFSCloneApply [ Level 1 ]
ERRORMSG: [filesystem]/fs1/EBSapps/comn/clone/bin/adclone.pl did not go through successfully.
[UNEXPECTED]Error occurred while executing <perl [filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=[filesystem]/fs1/inst/apps/[context_name]/appl/admin/[context_name].xml -patchcontextfile=[filesystem]/fs2/inst/apps/[context_name]/appl/admin/[context_name].xml -promptmsg=hide -console=off -mode=create -sessionid=5 -timestamp=[timestamp] -outdir=[filesystem]/fs_ne/EBSapps/log/adop/5/fs_clone_[timestamp]/[context_name]>
[UNEXPECTED]Error occurred while CLONE Patch File System from Run File System using command: <perl [filesystem]/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=[filesystem]/fs1/inst/apps/[context_name]/appl/admin/[context_name].xml -patchcontextfile=[filesystem]/fs2/inst/apps/[context_name]/appl/admin/[context_name].xml -promptmsg=hide -console=off -mode=create -sessionid=5 -timestamp=[timestamp] -outdir=[filesystem]/fs_ne/EBSapps/log/adop/5/fs_clone_[timestamp]/[context_name]>.
[UNEXPECTED]fs_clone phase completed with errors/warnings. Please check logfiles
Log file: [filesystem]/fs_ne/EBSapps/log/adop/5/adop_[timestamp].log
adop exiting with status = 2 (Fail)
On further investigation it is seen in the FSCloneApplyAppsTier_[timestamp].log file:
Running [filesystem]/fs1/EBSapps/comn/clone/FMW/pasteBinary.sh -javaHome [filesystem]/fs1/EBSapps/comn/clone/FMW/t2pjdk -al [filesystem]/fs1/EBSapps/comn/clone/FMW/FMW_Home.jar -tl [filesystem]/fs2/FMW_Home -invPtrLoc /etc/oraInst.loc -ldl [filesystem]/fs1/EBSapps/comn/clone/FMW/logs -silent true -executeSysPrereqs false
Script Executed in 7200015 milliseconds, returning status -1
Script timed out.
Cause:
The issue is caused by the following setup:
pasteBinary is run within a TimedProcess:
TimedProcess pasteBinaryProc = new TimedProcess(l_pasteBinarycmd, 7200000);
Solution:
. Open a new terminal.
2. Execute:
export TIMEDPROCESS_TIMEOUT=-1
3. Execute:
adop phase=fs_clone
2. Execute:
export TIMEDPROCESS_TIMEOUT=-1
3. Execute:
adop phase=fs_clone
It should resolve.