Thursday, May 7, 2020

Prepare phase failed with Error calling runPendingConfigClone subroutine

Dear Folks,

Recently, we have faced issue  with adop prepare phase which is failed with below error.

Prepare phase is completed in internal node,but failed in DMZ( external node).

From adop log
========

        [PROCEDURE] Calling: /u01/app/*******/KRHRY/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl
        [EVENT]     Log: /u01/app/*******/KRHRY/fs_ne/EBSapps/log/adop/19/20200502_045746/prepare/biaerp2
        [UNEXPECTED]Error occurred running "perl /u01/app/*******/KRHRY/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=/u01/app/*******/KRHRY/fs2/inst/apps/KRHRY_biaerp2/appl/admin/KRHRY_biaerp2.xml -patchcontextfile=/u01/app/*******/KRHRY/fs1/inst/apps/KRHRY_biaerp2/appl/admin/KRHRY_biaerp2.xml -promptmsg=hide -console=off -mode=migrate -sync_mode=copy -sessionid=19 -timestamp=20200502_045746 -outdir=/u01/app/*******/KRHRY/fs_ne/EBSapps/log/adop/19/20200502_045746/prepare/biaerp2"
        [UNEXPECTED]occurred during CONFIG_CLONE Patch File System from Run File System, running command: "perl /u01/app/*******/KRHRY/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=/u01/app/*******/KRHRY/fs2/inst/apps/KRHRY_biaerp2/appl/admin/KRHRY_biaerp2.xml -patchcontextfile=/u01/app/*******/KRHRY/fs1/inst/apps/KRHRY_biaerp2/appl/admin/KRHRY_biaerp2.xml -promptmsg=hide -console=off -mode=migrate -sync_mode=copy -sessionid=19 -timestamp=20200502_045746 -outdir=/u01/app/*******/KRHRY/fs_ne/EBSapps/log/adop/19/20200502_045746/prepare/biaerp2".
        [PROCEDURE] [START 2020/05/02 07:11:35] Updating status of patches
        [STATEMENT] SQL statement : "  update ad_adop_session_patches
  set status='F'
  where applied_file_system_base = '/u01/app/*******/KRHRY/fs2' and
  patch_file_system_base = '/u01/app/*******/KRHRY/fs1' and bug_number='CONFIG_CLONE' and status <> 'Y'
  and appltop_id=2127 and node_name='biaerp2'"
        [PROCEDURE] [END   2020/05/02 07:11:36] Updating status of patches
        [UNEXPECTED]fs_clone has failed.
        [UNEXPECTED]Error calling runPendingConfigClone subroutine.
        [ERROR]     Prepare phase has failed.

Further drill down the issue and found it was failed while OHS config.

-/u01/app/*******/KRHRY/fs_ne/EBSapps/log/adop/19/20200502_045746/prepare/biaerp2/TXK_SYNC_migrate/ohsConfig_apply

START: Instantiating the OHS Config.
Running /u01/app/*******/KRHRY/fs1/FMW_Home/webtier/perl/bin/perl  -I/u01/app/*******/KRHRY/fs1/FMW_Home/webtier/perl/lib/5.10.0 -I/u01/app/*******/KRHRY/fs1/FMW_Home/webtier/perl/lib/site_perl/5.10.0 -I/u01/app/*******/KRHRY/fs1/EBSapps/appl/au/12.0.0/perl -I/u01/app/*******/KRHRY/fs1/FMW_Home/webtier/ohs/mod_perl/lib/site_perl/5.10.0/x86_64-linux-thread-multi /u01/app/*******/KRHRY/fs1/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkSetOHSConfig.pl cfgCloneInstance -ctxfile=/u01/app/*******/KRHRY/fs1/inst/apps/KRHRY_biaerp2/appl/admin/KRHRY_biaerp2.xml -archvloc=/u01/app/*******/KRHRY/fs2/EBSapps/comn/adopclone_biaerp2/FMW/OHS/ohsarchive.jar -mvpln=/u01/app/*******/KRHRY/fs2/EBSapps/comn/adopclone_biaerp2/FMW/OHS/moveplan.xml -t2plogloc=/u01/app/*******/KRHRY/fs2/inst/apps/KRHRY_biaerp2/admin/log/clone/ohsT2PApply -logdir=/u01/app/*******/KRHRY/fs2/inst/apps/KRHRY_biaerp2/admin/log/clone -console=off -promptmsg=hide
Script Executed in 39566 milliseconds, returning status 1
ERROR: Script failed, exit code 1


#########

Hence we decided to run FS_CLONE, because we see prepare phase failed during CONFIG_CLONE Patch File System from Run File System,

Below are the steps to follow.

Fix
==

1) Abort the cycle adop phase=abort
2) Clean up the cycle, we can use cleanup_mode=FULL (optional)  adop phase=cleanup
3) adop phase=fs_clone

Then run the prepare phase again. It will be completed.

adop phase=prepare


Thanks.

No comments:

Post a Comment