adop phase=prepare  failed

Beauty_and_dBest

    Hi ALL,

     

    EBS R12.2.4

    11gR2

    OL6.5

     

    I am running adop phase=prepare but I got error

    Please help how to troubleshoot.

    Thanks,

    jc

     

    $ adop -status

     

    Enter the APPS password:

     

    Current Patching Session ID: 7

     

    Node Name       Node Type       Phase           Status          Started                        Finished                       Elapsed

    --------------- --------------- --------------- --------------- ------------------------------ ------------------------------ ------------

    fitr12          master          PREPARE         FAILED          03-FEB-16 15:12:58 +08:00      03-FEB-16 15:16:09 +08:00      0:03:11

                                    APPLY           NOT STARTED

                                    FINALIZE        NOT STARTED

                                    CUTOVER         NOT STARTED

                                    CLEANUP         NOT STARTED

     

    File System Synchronization Used in this Patching Cycle: Light

     

     

    $ adopscanlog -latest=yes

     

    Scanning /u02/TEMP/appcrp/CRP/fs_ne/EBSapps/log/adop/7/ directory ...

     

    /u02/TEMP/appcrp/CRP/fs_ne/EBSapps/log/adop/7/adop_20160203_151059.log:

    -----------------------------------------------------------------------

     

    Lines #(166-170):

                [EVENT]     Calling: /u01/appcrp/CRP/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl

                [STATEMENT] Output directory: /u01/appcrp/CRP/fs_ne/EBSapps/log/adop/7/prepare_20160203_151059/CRP_fitr12

                [UNEXPECTED]Error occurred while executing "perl /u01/appcrp/CRP/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=/u01/appcrp/CRP/fs1/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml -patchcontextfile=/u01/appcrp/CRP/fs2/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml -promptmsg=hide -console=off -patchtop=/u01/appcrp/CRP/fs_ne/EBSapps/patch -mode=update -sessionid=7 -timestamp=20160203_151059 -workercount=4 -outdir=/u01/appcrp/CRP/fs_ne/EBSapps/log/adop/7/prepare_20160203_151059/CRP_fitr12 -autoskip=No"

                [UNEXPECTED]Error while runSyncFS sub-routine is called

                [PROCEDURE] [START 2016/02/03 15:15:57] Check and Stop Patch Admin Server

     

    Lines #(167-171):

                [STATEMENT] Output directory: /u01/appcrp/CRP/fs_ne/EBSapps/log/adop/7/prepare_20160203_151059/CRP_fitr12

                [UNEXPECTED]Error occurred while executing "perl /u01/appcrp/CRP/fs1/EBSapps/appl/ad/12.0.0/patch/115/bin/txkADOPPreparePhaseSynchronize.pl -contextfile=/u01/appcrp/CRP/fs1/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml -patchcontextfile=/u01/appcrp/CRP/fs2/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml -promptmsg=hide -console=off -patchtop=/u01/appcrp/CRP/fs_ne/EBSapps/patch -mode=update -sessionid=7 -timestamp=20160203_151059 -workercount=4 -outdir=/u01/appcrp/CRP/fs_ne/EBSapps/log/adop/7/prepare_20160203_151059/CRP_fitr12 -autoskip=No"

                [UNEXPECTED]Error while runSyncFS sub-routine is called

                [PROCEDURE] [START 2016/02/03 15:15:57] Check and Stop Patch Admin Server

                  [EVENT]     [START 2016/02/03 15:15:58] Check and Stop Patch FS Admin Server

     

    Lines #(177-181):

                  [STATEMENT] Skipping Check and Stop Patch Node Manager Step.

                [PROCEDURE] [END   2016/02/03 15:16:09] Check and Stop Patch Node Manager

                [ERROR]     Prepare phase completed with errors or warnings. Please check logfiles.

                [STATEMENT] SQL statement : "  update ad_adop_sessions

      set status='F'

     

    /u02/TEMP/appcrp/CRP/fs_ne/EBSapps/log/adop/7/prepare_20160203_151059/CRP_fitr12/TXK_SYNC_update_Wed_Feb_3_15_15_38_2016/txkADOPPreparePhaseSynchronize_Wed_Feb_3_15_15_38_2016.log:

    ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

     

    Lines #(316-318):

    TIME    : Wed Feb  3 15:15:57 2016

    FUNCTION: main::validatePatchLocation [ Level 1 ]

    ERRORMSG: Directory /u01/appcrp/CRP/fs_ne/EBSapps/patch/18955265 does not exists.

      • 1. Re: adop phase=prepare  failed
        Kirushna

        Hi,

         

        Any entries found in xkADOPPreparePhaseSynchronize_Wed_Feb_3_15_15_38_2016.log

         

        FUNCTION: main::validatePatchLocation [ Level 1 ]

        ERRORMSG: Directory /u01/appcrp/CRP/fs_ne/EBSapps/patch/18955265 does not exists.

         

        Regards,

        Kirushna

        1 位用户发现它有用
        • 2. Re: adop phase=prepare  failed
          Beauty_and_dBest

          Thanks Kir,

           

          I just wonder why it is looking for previous patch 18955265?

          This is a fresh cloned instance, so it should have cleared all its historical patches and reset back to zero?

          • 3. Re: adop phase=prepare  failed
            Kirushna

            Hi,

             

            Was the patch 18955265 applied successfully?

             

            Regards,

            Kirushna

            1 位用户发现它有用
            • 4. Re: adop phase=prepare  failed
              Beauty_and_dBest

              Maybe (It was successfull) because I can not remember any pending any patch at the source instance.

              But  I remember I applied it as a hotpatch?, hence it is doing resync or fs cloning to the patch edition  now?

               

               

              Kind regards,

              • 5. Re: adop phase=prepare  failed
                Beauty_and_dBest

                Hi Kir and ALL,

                 

                I recreated previous patch folders and  rerun the adop phase=prepare , and it seemed working.

                I got new error now:

                 

                ==================================

                Inside _eliminateAbandonNodes()...

                ==================================

                 

                ERROR:

                Nodes with context files in the FND_OAM_CONTEXT_FILES table on both run and patch file systems: NONE

                Nodes without context files in the FND_OAM_CONTEXT_FILES table on either/or run and patch file systems: fitr12

                Corrective Action:

                - If the run file system context file for a node is missing, run AutoConfig on the run file system of that node to sync with the value with the database.

                - If the patch file system context file of a node is missing, run AutoConfig on the patch file system of that node with the -syncctx option as follows to sync with the value with the database.

                On UNIX:

                sh <AD_TOP>/bin/adconfig.sh contextfile=<CONTEXT_FILE> -syncctx

                 

                 

                How do I know if my context file is missing?

                 

                 

                Thanks...

                • 6. Re: adop phase=prepare  failed
                  Bashar.

                  Your other alternative to resolve the first issue is to run adop phase=fs_clone.

                   

                  ADOP phase=prepare Errors With patch does not exists (Doc ID 1941327.1)

                   

                  Please post the contents of the table FND_OAM_CONTEXT_FILES.

                   

                  Regards,

                  Bashar

                  1 位用户发现它有用
                  • 7. Re: adop phase=prepare  failed
                    Narsi M-Oracle

                    Hello Jenna,

                     

                    Would always advise one to use below doc for troubleshooting. It is a very helpful tool:

                    Script to Diagnose adop and Other AD-TXK Issues in Oracle E-Business Suite Release 12.2 [ Patch 19045166:R12.AD.C ] (Doc ID 1901242.1)

                     

                     

                    Regards,

                    Narsi

                    1 位用户发现它有用
                    • 8. Re: adop phase=prepare  failed
                      Narsi M-Oracle

                      Hello Jenna,

                       

                      Could you please provide the output for below query:

                       

                      SELECT

                      node_name, path, ctx_type

                      from fnd_oam_context_files

                      where name not in ('TEMPLATE','METADATA')

                      and (status is null or status !='H');

                       

                       

                      Regards,

                      Narsi

                      1 位用户发现它有用
                      • 9. Re: adop phase=prepare  failed
                        Beauty_and_dBest

                        Hi Bashar, Narsi, and ALL;

                         

                        Capture.PNG

                        Capture2.PNG

                        • 10. Re: adop phase=prepare  failed
                          Narsi M-Oracle

                          Hello Jenna,

                           

                          Can you clarify, why we are seeing 2 xml files for fs1 & for fs2.

                          "/u01/appcrp" & also "/u02/TEMP".

                           

                           

                          Regards,

                          Narsi

                          1 位用户发现它有用
                          • 11. Re: adop phase=prepare  failed
                            Beauty_and_dBest

                            Hi Narsi and ALL,

                             

                            They are one since /u01/appcrp  is a soft link to /u02/TEMP/appcrp.

                            • 12. Re: adop phase=prepare  failed
                              Narsi M-Oracle

                              Hello Jenna,

                               

                              In which log file did you find this info:

                              ==================================

                              Inside _eliminateAbandonNodes()...

                              ==================================

                               

                              ERROR:

                              Nodes with context files in the FND_OAM_CONTEXT_FILES table on both run and patch file systems: NONE

                              Nodes without context files in the FND_OAM_CONTEXT_FILES table on either/or run and patch file systems: fitr12

                               

                               

                              Can you provide following as well:

                               

                              SELECT AD_ZD_ADOP.GET_ABANDONED_NODES('ABANDONED')||',' FROM DUAL

                               

                               

                              Also, any specific reason to have the softlink for the xml files. Did you previously have the softlinks as well and was it working ?

                               

                               

                              Regards,

                              Narsi

                              1 位用户发现它有用
                              • 13. Re: adop phase=prepare  failed
                                Beauty_and_dBest

                                Hi Narsi,

                                 

                                In which log file did you find this info: << I found it on the specific log file generated by the adop patching.


                                I restored a backup from  another folder , and I also want to use the existing copy, hence I used a softlink to on/off both copies.

                                I was only using it alternatively but I have not tested it during patching.

                                Maybe I need to move it to the actual path?

                                 

                                SQL> SELECT AD_ZD_ADOP.GET_ABANDONED_NODES('ABANDONED')||',' FROM DUAL;

                                 

                                 

                                AD_ZD_ADOP.GET_ABANDONED_NODES('ABANDONED')||','

                                --------------------------------------------------------------------------------

                                ,

                                 

                                Thanks,

                                • 14. Re: adop phase=prepare  failed
                                  Beauty_and_dBest

                                  Hi Narsi and ALL,

                                   

                                  I removed the link /u01/appcrp.

                                  I moved /u02/TEMP/appcrp   to /u01/appcrp.

                                  When I login to appcrp and run , I got error now

                                   

                                  . /u01/appcrp/CRP/EBSapps.env run

                                  [appcrp@fitr12 ~]$ . /u01/appcrp/CRP/EBSapps.env run

                                   

                                  Context file /u02/TEMP/appcrp/CRP/fs2/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml is not found.

                                  EBSapps.env: exiting with status 1 (Fail

                                   

                                   

                                  How do I point my context file from > /u02/TEMP/appcrp/CRP/fs2/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml

                                  to > /u01/appcrp/CRP/fs2/inst/apps/CRP_fitr12/appl/admin/CRP_fitr12.xml ?

                                   

                                  Please help....

                                   

                                  Thanks

                                  1 2 3 上一个 下一个