Tuesday 17 January 2017

ADOP prepare phase failed in R12.2.4 with an error message "Error calling runSyncFS subroutine"

ADOP prepare phase failed in a Shared appl_top environment.

Error Message during execution of prepare phase :

    [PROCEDURE] [END   2017/01/15 02:09:11] Checking if node "test06" was abandoned
    Node test06: FAILED
       - Prepare status:    NOT COMPLETED
       [UNEXPECTED] Error occurred running "perl /u01/app/oracle/ebstest/R122/fs1/EBSapps/app
                    l/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfi
                    le=/u01/app/oracle/ebstest/R122/fs1/inst/apps/ebstest_test06/appl/admin
                    /ebstest_test06.xml -patchcontextfile=/u01/app/oracle/ebstest/R122/fs2/
                    inst/apps/ebstest_test06/appl/admin/ebstest_test06.xml -promptmsg=
                    hide -console=off -patchtop=/u01/app/oracle/ebstest/R122/fs_ne/EBSapps/pa
                    tch -mode=update -sessionid=11 -timestamp=20170115_020518 -workercount
                    =12 -outdir=/u01/app/oracle/ebstest/R122/fs_ne/EBSapps/log/adop/11/prepar
                    e_20170115_020518/ebstest_test06 -autoskip=No"
       [UNEXPECTED] Error calling runSyncFS subroutine.
       [ERROR]      Prepare phase has failed.


Run this sql statement to determine the status of the ADOP session:
select * from ad_adop_session_patches order by end_date desc;

set pagesize 200;
set linesize 160;
column adop_session_id format 999999999999;
column bug_number format a15;
column status format a15;
column applied_file_system_base format a23;
column patch_file_system_base format a23;
column adpatch_options format a15;
column node_name format a15;
column end_date format a15;
column clone_status format a15;

select ADOP_SESSION_ID, BUG_NUMBER, STATUS, APPLIED_FILE_SYSTEM_BASE, PATCH_FILE_SYSTEM_BASE, ADPATCH_OPTIONS, NODE_NAME, END_DATE, CLONE_STATUS
from ad_adop_session_patches
order by end_date desc;

Below are possible values of STATUS column:
N - Not Applied In the current node but applied in other nodes
R - Patch Application is going on.
H - Patch failed in the middle. (Hard Failure)
F - Patch failed in the middle but user tried to skip some failures.
S - Patch Application succeeded after skipping the failed jobs.
Y - Patch Application succeeded.
C - Reserved for clone and config_clone. Indicates clone completed



Abort the current patching cycle :

 adop phase=abort allnodes=yes

Ran the Cleanup phase in Quick Mode:

adop phase=cleanup cleanup_mode=quick

To fix the issue,  Execute the FS_CLONE in all nodes (adop phase=fs_clone allnodes=yes).

The Fs_clone phase will synchronize the patch file system with the run file system and it recreates the patch edition file system as an exact copy of the run edition file system.

After successful fs_clone , Execute the prepare phase again and it will complete.

Adop phase=prepare allnodes=yes





Happy Learning!

No comments:

Post a Comment