Saturday, November 23, 2019

fs_clone failing (while running txkADOPPreparePhaseSynchronize.pl )


fs_clone failed :[UNEXPECTED]Error occurred running"perl/oradata/applmgr/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl


When attempting to run FSclone,
the following error occurs.

Error can be seen in adop_<TIME_STAMP>.log: 

[UNEXPECTED]Error occurred running "perl <DIR>/<SID>/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=<DIR>/<SID>/fs1/inst/apps/<CONTEXT_NAME>/appl/admin/<CONTEXT_NAME>.xml -patchcontextfile=<DIR>/<SID>/fs2/inst/apps/<CONTEXT_NAME>/appl/admin/<CONTEXT_NAME>.xml -promptmsg=hide -console=off -mode=create -sessionid=3 -timestamp=20151223_192751 -outdir=<DIR>/<SID>/fs_ne/EBSapps/log/adop/3/fs_clone_20151223_192751/<CONTEXT_NAME>"
[UNEXPECTED]occurred during CLONE Patch File System from Run File System, running command: "perl
<DIR>/<SID>/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=<DIR>/<SID>/fs1/inst/apps/<CONTEXT_NAME>/appl/admin/<CONTEXT_NAME>.xml -patchcontextfile=<DIR>/<SID>/fs2/inst/apps/<CONTEXT_NAME>/appl/admin/<CONTEXT_NAME>.xml -promptmsg=hide -console=off -mode=create -sessionid=3 -timestamp=20151223_192751 -outdir=<DIR>/<SID>/fs_ne/EBSapps/log/adop/3/fs_clone_20151223_192751/<CONTEXT_NAME>"


The context variable s_invPtrLoc is not getting populated in patch context file. FSCloneApplyAppsTier log prints correct value for s_invPtrLoc but the value is missing in patch context file.
 
Context file customization is present.

From stage logs(FSCloneStage.log) below can be seen:

Copying <DIR>/fs1/EBSapps/appl/ad/12.0.0/admin/template/custom/adxmlctx.tmp to <DIR>/fs1/EBSapps/comn/adopclone_<SID>/context/apps/adxmlctx.tmp

The adxmlctx.tmp is being copied from custom folder.

Custom folder has old version of adxmlct.tmp (version 120.401.12020000.9.1202010.10)
While the actual version is 120.401.12020000.54

During clonecontext the template being used is from the stage which have the older version. Due that reason the patch context file is not getting created properly.


That's the reason the version of context files which can be seen in FND_OAM_CONTEXT_FILES are different between RUN and PATCH filesystems.

RUN fs version : 120.401.12020000.54
PATCH fs version : 120.401.12020000.9.1202010.10

SOLUTION -:
FSClone fails while running txkADOPPreparePhaseSynchronize.pl (Doc ID 2094689.1)

·         ls -ltr $AD_TOP/admin/template/custom/adxmlctx.tmp
·         mv $AD_TOP/admin/template/custom/adxmlctx.tmp $AD_TOP/admin/template/custom/adxmlctx.tmpbkp
or
·         Remove the file $AD_TOP/admin/template/custom/adxmlctx.tmp
Run fs_clone with option force=yes

          adop phase=fs_clone force=yes

No comments: