Contact Premier Online Trainings Today
Premier Online Trainings

Oracle Apps DBA - adopmnctl startall fails In EBS R12.2 unexpected exit: status 4200

Date Added: 19 Mar.2020 Date Updated: 19 Mar.2020 Oracle Apps DBA Full Blog

adopmnctl startall fails In EBS R12.2 unexpected exit: status 4200

issue:

/apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/admin/scripts/adopmnctl.sh start

Timeout specified in context file: 100 second(s)
 
script returned:
****************************************************
 
You are running adopmnctl.sh version 120.0.12020000.2
 
Starting Oracle Process Manager (OPMN) ...
[2020-03-19T13:48:05+05:30] [opmn] [ERROR:1] [] [internal] /apps/appuat/UAT/fs1/FMW_Home/webtier/opmn/bin/opmn: unexpected exit: status 4200
opmnctl start: opmn failed to start.
 
adopmnctl.sh: exiting with status 0
 
adopmnctl.sh: check the logfile /apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/logs/appl/admin/log/adopmnctl.txt for more information ...
 
 
.end std out.
 
.end err out.
 
****************************************************
 
 
 
Executing service control script:
/apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/admin/scripts/adapcctl.sh start
Timeout specified in context file: 100 second(s)
 
script returned:
****************************************************
 
You are running adapcctl.sh version 120.0.12020000.6
 
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
 
adapcctl.sh: exiting with status 2
 
adapcctl.sh: check the logfile /apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/logs/appl/admin/log/adapcctl.txt for more information ...
 
 
logfile --
================================================================================
 
 
03/19/20-13:48:03 :: adopmnctl.sh version 120.0.12020000.2
 
 
03/19/20-13:48:04 :: adopmnctl.sh: Starting Oracle Process Manager (OPMN)
 
[2020-03-19T13:48:05+05:30] [opmn] [ERROR:1] [] [internal] /apps/appuat/UAT/fs1/FMW_Home/webtier/opmn/bin/opmn: unexpected exit: status 4200
opmnctl start: opmn failed to start.
 
03/19/20-13:48:05 :: adopmnctl.sh: exiting with status 0
 
 
================================================================================
 
$FMW_Home/webtier/instances/EBS_web_UAT_OHS1/diagnostics/logs/OPMN/opmn/opmn.log
 
the below error in opmn.log
 
[2020-03-19T13:48:06+05:30] [opmn] [ERROR:1] [] [ons-secure] Connection server SSL set credentials failed (43084)
[2020-03-19T13:48:06+05:30] [opmn] [ERROR:1] [222] [ons-secure] SSL initialization failed
 
Solution:

Reference doc:

Additional Steps to Configure OHS/OPMN 11.1.1.9 Components for Oracle E-Business Suite Release 12.2 After Applying the July 2019 and Later FMW Security Patch (Doc ID 2555355.1)

 

1. Log in as the user that owns the application tier installation (this is usually applmgr)
 
2. Source the run file system environment and the $FMW_HOME/SetWebtier.env file
[applmgr@ebs122 ~]$ . EBSapps.env run
 
  E-Business Suite Environment Information
  ----------------------------------------
  RUN File System           : /apps/appuat/UAT/fs1/EBSapps/appl
  PATCH File System         : /apps/appuat/UAT/fs2/EBSapps/appl
  Non-Editioned File System : /apps/appuat/UAT/fs_ne
 
 
  DB Host: ebs122.premier.com  Service/SID: UAT
 
 
  Sourcing the RUN File System ...
 
[applmgr@ebs122 ~]$
 
 
 
3. Set an alias for the correct orapki.
 
$ alias orapki=$FMW_HOME/oracle_common/bin/orapki
 
4. Create a new wallet with an acceptable self-signed certificate in $HOME/ss. For example:
 
 
[applmgr@ebs122 ~]$ mkdir ~/ss
[applmgr@ebs122 ~]$ cd ~/ss
[applmgr@ebs122 ss]$ pwd
/home/applmgr/ss
[applmgr@ebs122 ss]$
[applmgr@ebs122 ss]$ orapki wallet create -wallet ./ -auto_login_only
Oracle PKI Tool : Version 11.1.1.9.0
Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
 
[applmgr@ebs122 ss]$ ls -tlr
total 4
-rw-rw-rw-. 1 applmgr dba   0 Mar 19 21:45 cwallet.sso.lck
-rw-------. 1 applmgr dba 194 Mar 19 21:45 cwallet.sso
[applmgr@ebs122 ss]$
[applmgr@ebs122 ss]$ orapki wallet add -wallet . -dn "CN=FMWSmallCircleOfTrust" -asym_alg RSA -keysize 2048 -sign_alg sha256 -self_signed -validity 3652 -auto_login_only
Oracle PKI Tool : Version 11.1.1.9.0
Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
 
[applmgr@ebs122 ss]$ orapki wallet display -wallet .
Oracle PKI Tool : Version 11.1.1.9.0
Copyright (c) 2004, 2015, Oracle and/or its affiliates. All rights reserved.
 
Requested Certificates:
User Certificates:
Subject:        CN=FMWSmallCircleOfTrust
Trusted Certificates:
Subject:        CN=FMWSmallCircleOfTrust
[applmgr@ebs122 ss]$
 
The last command (orapki wallet display -wallet .) allows you to verify that the wallet was properly created.
 
5. Find the instanceName of this environment and save in variable for later use
 
[applmgr@ebs122 ss]$ tr < $CONTEXT_FILE '<>' ' ' | awk '/"s_ohs_instance"/ {print $(NF-1)}'
EBS_web_UAT_OHS1
[applmgr@ebs122 ss]$
[applmgr@ebs122 ss]$ iName=$(tr < $CONTEXT_FILE '<>' ' ' | awk '/"s_ohs_instance"/ {print $(NF-1)}' )
 
6. Go to the instance directory.
 
[applmgr@ebs122 ss]$ cd $FMW_HOME/webtier/instances/$iName
 
7. Find the default wallets used by this instance.
 
[applmgr@ebs122 EBS_web_UAT_OHS1]$ find . -name cwallet.sso | fgrep -v /webgate/
./config/OPMN/opmn/wallet/cwallet.sso
./config/OHS/EBS_web_UAT/proxy-wallet/cwallet.sso
./config/OHS/EBS_web_UAT/keystores/default/cwallet.sso
[applmgr@ebs122 EBS_web_UAT_OHS1]$
 
8. Verify that each wallet only contains the self-signed certificate.
 
[applmgr@ebs122 EBS_web_UAT_OHS1]$ find . -name cwallet.sso | fgrep -v /webgate/ | while read w ;do echo -e "\n$w"; orapki wallet display -nologo -wallet $w ;done
 
./config/OPMN/opmn/wallet/cwallet.sso
Requested Certificates:
User Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT_OHS1\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
Trusted Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT_OHS1\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
 
./config/OHS/EBS_web_UAT/proxy-wallet/cwallet.sso
Requested Certificates:
User Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
Trusted Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
 
./config/OHS/EBS_web_UAT/keystores/default/cwallet.sso
Requested Certificates:
User Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
Trusted Certificates:
Subject:        CN=Self-Signed Certificate for EBS_web_UAT\20,OU=OAS,O=ORACLE,L=REDWOODSHORES,ST=CA,C=US
[applmgr@ebs122 EBS_web_UAT_OHS1]$
 
9. Copy the new SHA-256 signed wallet to all default wallet locations.
 
[applmgr@ebs122 EBS_web_UAT_OHS1]$ find . -name cwallet.sso | fgrep -v /webgate/ | while read w ; do echo $w; cp -p ~/ss/cwallet.sso $w ; done
./config/OPMN/opmn/wallet/cwallet.sso
./config/OHS/EBS_web_UAT/proxy-wallet/cwallet.sso
./config/OHS/EBS_web_UAT/keystores/default/cwallet.sso
[applmgr@ebs122 EBS_web_UAT_OHS1]$
 
[applmgr@ebs122 EBS_web_UAT_OHS1]$ find config \( -name ssl.conf -o -name opmn.xml -o -name admin.conf \)
config/OPMN/opmn/opmn.xml
config/OHS/EBS_web_UAT/admin.conf
config/OHS/EBS_web_UAT/backup/admin.conf
config/OHS/EBS_web_UAT/backup/ssl.conf
config/OHS/EBS_web_UAT/ssl.conf
[applmgr@ebs122 EBS_web_UAT_OHS1]$
 
With the new wallet in place, you should be able to start OPMN and OHS with the respective commands
 
start the services and check the application 
 
[applmgr@ebs122 EBS_web_UAT_OHS1]$ cd $ADMIN_SCRIPTS_HOME
[applmgr@ebs122 scripts]$
[applmgr@ebs122 scripts]$ adopmnctl.sh start
 
You are running adopmnctl.sh version 120.0.12020000.2
 
Starting Oracle Process Manager (OPMN) ...
 
adopmnctl.sh: exiting with status 0
 
adopmnctl.sh: check the logfile /apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/logs/appl/admin/log/adopmnctl.txt for more information ...
 
[applmgr@ebs122 scripts]$ 
[applmgr@ebs122 scripts]$
[applmgr@ebs122 scripts]$ adapcctl.sh start
 
You are running adapcctl.sh version 120.0.12020000.6
 
Starting OPMN managed Oracle HTTP Server (OHS) instance ...
 
adapcctl.sh: exiting with status 0
 
adapcctl.sh: check the logfile /apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/logs/appl/admin/log/adapcctl.txt for more information ...
 
[applmgr@ebs122 scripts]$ sh adstrtal.sh apps/apps
 
****************************************************
 
 
All enabled services for this node are started.
 
adstrtal.sh: Exiting with status 0
 
adstrtal.sh: check the logfile /apps/appuat/UAT/fs1/inst/apps/UAT_ebs122/logs/appl/admin/log/adstrtal.log for more information ...
 
[applmgr@ebs122 scripts]$