How to fix START Precloning the OHS Config txkSetOHSConfig.pl ERROR: Script failed, exit code 1

Introduction:- In this article, we will discuss very critical error ohs config txksetohsconfig-pl error.

$perl adpreclone.pl appsTier

$adop phase=fs_clone

Copyright (c) 2011, 2014 Oracle Corporation

                        Redwood Shores, California, USA

                        Oracle E-Business Suite Rapid Clone

                                 Version 12.2

                      adpreclone Version 120.31.12020000.25

 

Enter the APPS User Password:

Enter the Weblogic AdminServer password :

 

 Checking the status of the Oracle WebLogic Administration Server….

 

 Running perl /data05/EBS_FS_12.2.5/fs2/EBSapps/appl/ad/12.0.0/patch/115/bin/adProvisionEBS.pl ebs-get-serverstatus -contextfile=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_acetest/appl/admin/PHASE1_xxxtest.xml -servername=AdminServer -promptmsg=hide

 

The Oracle WebLogic Administration Server is up.

 

wlsDomainName: EBS_domain

WLS Domain Name is VALID.

 

Running:

perl /data05/EBS_FS_12.2.5/fs2/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/util/jdk64 mode=stage stage=/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/clone component=appsTier method= appctx=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/appl/admin/PHASE1_xxxtest.xml showProgress

 Setting the wls environment

 

Beginning application tier Stage – Mon Dec 28 13:52:57 2020

 

/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/util/jdk64/bin/java -Xmx600M -DCONTEXT_VALIDATED=false -Doracle.installer.oui_loc=/oui -classpath /data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/lib/xmlparserv2.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/jdbc/lib/ojdbc6.jar:/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/java/classes:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/oui/jlib/OraInstaller.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/oui/jlib/ewt3.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/oui/jlib/share.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/../Oracle_EBS-app1/oui/jlib/srvm.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/jlib/ojmisc.jar:/acedata05/EBS_FS_12.2.5/fs2/FMW_Home/wlserver_10.3/server/lib/weblogic.jar:/data05/EBS_FS_12.2.5/fs2/FMW_Home/oracle_common/jlib/obfuscatepassword.jar  oracle.apps.ad.clone.StageAppsTier -e /data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_acetest/appl/admin/PHASE1_acetest.xml -stage /data05/EBS_FS_12.2.5/fs2/EBSapps/comn/clone -tmp /tmp -method CUSTOM   -showProgress -nopromptmsg

 

Log file located at /data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/admin/log/clone/StageAppsTier_12281352.log

 

  –     20% completed

ERROR while running Stage…

Mon Dec 28 13:58:46 2020

 

ERROR while running perl /data05/EBS_FS_12.2.5/fs2/EBSapps/appl/ad/12.0.0/bin/adclone.pl java=/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/util/jdk64 mode=stage stage=/data05/EBS_FS_12.2.5/fs2/EBSapps/comn/clone component=appsTier method= appctx=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/appl/admin/PHASE1_xxxtest.xml showProgress …

Mon Dec 28 13:58:46 2020

 

Log file located at :-

/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/admin/log/clone/StageAppsTier_12281229.log

 

START: Staging OHS

Evaluated internal cloning stage: /data05/EBS_FS_12.2.5/fs2/EBSapps/comn/clone

 

START: Precloning the OHS Config.

Running /data05/EBS_FS_12.2.5/fs2/FMW_Home/webtier/perl/bin/perl /data05/EBS_FS_12.2.5/fs2/EBSapps/appl/fnd/12.0.0/patch/115/bin/txkSetOHSConfig.pl preCloneInstance -ctxfile=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/appl/admin/PHASE1_xxxtest.xml -t2plogloc=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/admin/log/clone/ohsT2PStage -logdir=/data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/admin/log/clone -console=off

Script Executed in 1401 milliseconds, returning status 1

ERROR: Script failed, exit code 1

 
cd /data05/EBS_FS_12.2.5/fs2/inst/apps/PHASE1_xxxtest/admin/log/clone/ohsT2PStage
 
$CLONE2020-12-28_12-35-20_2049110780.error  CLONE2020-12-28_12-35-20_2049110780.log
 
[applmgr@erpbackup ohsT2PStage]$ cat CLONE2020-12-28_12-35-20_2049110780.error
SEVERE : Dec 28, 2020 12:35:20 – ERROR – CLONE-20218   Cloning is not successful.
SEVERE : Dec 28, 2020 12:35:20 – CAUSE – CLONE-20218   An internal operation failed.
SEVERE : Dec 28, 2020 12:35:20 – ACTION – CLONE-20218   Provide the clone log and error file for investigation.
oracle.as.t2p.exceptions.FMWT2PCopyConfigException: java.lang.NullPointerException
        at oracle.as.clone.ohs.util.OHSCopyConfig.includeCustomisableDirectiveFiles(OHSCopyConfig.java:150)
        at oracle.as.clone.ohs.impl.OHSComponentCreateClonerImpl.doCopyConfig(OHSComponentCreateClonerImpl.java:108)
        at oracle.as.clone.cloner.component.ComponentCreateCloner.doClone(ComponentCreateCloner.java:122)
        at oracle.as.clone.cloner.Cloner.doFinalClone(Cloner.java:63)
        at oracle.as.clone.request.CreateGenericArchive.doGenericArchive(CreateGenericArchive.java:162)
        at oracle.as.clone.request.CreateGenericArchive.doGenericArchive(CreateGenericArchive.java:94)
        at oracle.as.clone.request.CreateCloneRequest._clone(CreateCloneRequest.java:69)
        at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:131)
        at oracle.as.clone.process.CloningExecutionProcess.execute(CloningExecutionProcess.java:114)
        at oracle.as.clone.client.CloningClient.executeT2PCommand(CloningClient.java:236)
        at oracle.as.clone.client.CloningClient.main(CloningClient.java:124)
Caused by: java.lang.NullPointerException
        at java.io.File.<init>(File.java:277)
        at oracle.as.clone.ohs.util.OHSCopyConfig.addFilesToJarForDirectiveType(OHSCopyConfig.java:184)
        at oracle.as.clone.ohs.util.OHSCopyConfig.includeCustomisableDirectiveFiles(OHSCopyConfig.java:137)
        … 10 more
 

 

Root Cause:-

SSL is not configured, however strong cipher configuration is implemented as documented in the following:

 

Fix:-

To resolve the issue test the following steps in a development instance and then migrate accordingly:

1. Revert the strong cipher steps in the fileopmn.xml ($IAS_ORACLE_HOME/instances/EBS_web_<sid>_ohs#/config/OPMN/opmn/opmn.xml) from ‘Section 5: Strong Cipher Configuration Instructions’.

2. Bounce FMW 11.1.1.9 WebTier server

3. Re-test the adop phase=fs_clone command and confirm it completes successfully

 

 

 

———————————————————–

Leave a Comment