adop phase=prepare failed

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

adop phase=prepare failed

raiq1
Dear Erman sir,

We have multinode test environment for shared application file system.

ebs 1  <master>

ebs2  <slave>

dmz  <slave> 


i have just added a new node dmz and run adop patching cycle but it has given the below error.

[oracle@ebs1 ~]$ adop phase=prepare

Enter the APPS password:
Enter the EBS_SYSTEM password:
Enter the WLSADMIN password:

Validating credentials.

Initializing.
    Run Edition context  : /u01/oracle/PROD/fs1/inst/apps/PROD_ebs1/appl/admin/PROD_ebs1.xml
    Patch edition context: /u01/oracle/PROD/fs2/inst/apps/PROD_ebs1/appl/admin/PROD_ebs1.xml
    Patch file system free space: 31.37 GB

Validating system setup.
    Node registry is valid.
    Log: /u01/oracle/PROD/fs1/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/verifyssh.log
sh: which: line 1: syntax error: unexpected end of file
sh: error importing function definition for `which'
    Output: /u01/oracle/PROD/fs1/inst/apps/PROD_ebs1/logs/appl/rgf/TXK/out.xml
    Remote execution is operational.
    [WARNING]   MTCC has not been run. Apply Patch 17537119 and run checkMTpatch.sh.

Checking for existing adop sessions.
    Continuing with existing session [Session ID: 6].
        Session Id            :   6
        Prepare phase status  :   NOT COMPLETED
        Apply phase status    :   NOT COMPLETED
        Cutover  phase status :   NOT COMPLETED
        Abort phase status    :   NOT COMPLETED
        Session status        :   NOT COMPLETED

===========================================================================
ADOP (C.Delta.14)
Session ID: 6
Node: ebs1
Phase: prepare
Log: /u01/oracle/PROD/fs_ne/EBSapps/log/adop/6/20231102_104326/adop.log
===========================================================================

Verifying existence of context files in database.
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host dmz
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host ebs2

Summary report for current adop session:
    Node ebs2: Not Started
       - Prepare status:    Not Started
    Node dmz: Not Started
       - Prepare status:    Not Started
    Node ebs1: Not Started
       - Prepare status:    Not Started
    For more details, run the command: adop -status -detail


[STATEMENT] Please run adopscanlog utility, using the command

"adopscanlog -latest=yes"

to get the list of the log files along with snippet of the error message corresponding to each log file.


adop exiting with status = 2 (Fail)
[oracle@ebs1 ~]$ adopscanlog -latest=yes

Scanning /u01/oracle/PROD/fs_ne/EBSapps/log/adop/6/ directory ...

/u01/oracle/PROD/fs_ne/EBSapps/log/adop/6/20231102_104326/adop.log:
-------------------------------------------------------------------

Lines #(152-159):
===========================================================================
[EVENT]     Verifying existence of context files in database.
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host dmz
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host ebs2

[EVENT]     Summary report for current adop session:
[oracle@ebs1

Need your advice and action plan to fix this issue.

Regards,
Raiq






                   





























































Reply | Threaded
Open this post in threaded view
|

Re: adop phase=prepare failed

ErmanArslansOracleBlog
Administrator
This is probably due to incorrect environment.
Please set your OS shell env properly and retry.. Ensure "which" command is the correct "which" program, before retrying.

Error:
sh: error importing function definition for `which'
Reply | Threaded
Open this post in threaded view
|

Re: adop phase=prepare failed

raiq1
HI,

Shell issue is bug in oracle linux 8. the actual issue is adop phase failed to validate  for below error.

Lines #(152-159):
===========================================================================
[EVENT]     Verifying existence of context files in database.
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host dmz
    [UNEXPECTED] Could not find patch context file from database
    [UNEXPECTED]Patch edition context file not found in database for host ebs2

Regards,
Reply | Threaded
Open this post in threaded view
|

Re: adop phase=prepare failed

ErmanArslansOracleBlog
Administrator
Bug? Not sure about that.. See -> Post Clone In DbTier At OEL8 (sh: Which: Line 1: Syntax Error: Unexpected End Of File) (Doc ID 2850503.1)

Reply | Threaded
Open this post in threaded view
|

Re: adop phase=prepare failed

ErmanArslansOracleBlog
Administrator
For those "Could not find context files from database" errors, check fnd_oam_context_files table..
You may need to run CtxSynchronizer...