During the application of the patch 13.5.0.8 or 13.5.0.9, the following error may occur:
As seen from the OMSPatcher log file
[Sep 20, 2022 5:25:00 PM] /u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-core_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-core.jar is failed to run
[Sep 20, 2022 5:25:00 PM] [SystemCall.ExecReturn: systemCommand= ("/u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-core_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-core.jar"), errMsg= , normalMsg= Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Deploying Library ... Started
Deploying library ... Failed. Check the log /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
, return code= 1, exec. ok= false]
[Sep 20, 2022 5:34:31 PM] /u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-core_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-core.jar is failed to run
[Sep 20, 2022 5:34:31 PM] [SystemCall.ExecReturn: systemCommand= ("/u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-core_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-core.jar"), errMsg= , normalMsg= Oracle Enterprise Manager Cloud Control 13c Release 5
Copyright (c) 1996, 2021 Oracle Corporation. All rights reserved.
Deploying Library ... Started
Deploying library ... Failed. Check the log /u01/app/oracle/gc_inst/em/EMGC_OMS1/sysman/log/emctl.log
, return code= 1, exec. ok= false]
Or from the emctl.log
2022-09-20 17:34:31,387 [main] INFO util.EmctlUtil logp.251 - Exit code: 1
2022-09-20 17:34:31,388 [main] INFO util.EmctlUtil logp.251 - error messages of the command : No messages
2022-09-20 17:34:31,388 [main] INFO oms.DeployLibrary doDeployLibrary.153 - Done deploying library with wlst exit code=1
2022-09-20 17:34:31,388 [main] INFO oms.DeployLibrary doDeployLibrary.159 - Deployment of library failed with exit code 1
2022-09-20 17:34:31,388 [main] ERROR oms.DeployLibrary main.116 - Failed to deploy library : Deployment of library failed.
java.lang.Exception: Deployment of library failed.
at oracle.sysman.emctl.config.oms.DeployLibrary.doDeployLibrary(DeployLibrary.java:160) ~[emCoreConsole.jar:?]
at oracle.sysman.emctl.config.oms.DeployLibrary.main(DeployLibrary.java:98) [emCoreConsole.jar:?]
The workaround is run the command manually, as follow:
export WLST_PROPERTIES="-Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.security.TrustKeyStore=DemoTrust"
cd $ORACLE_HOME
#/u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-core_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-core.jar
/u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-bridge_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-1.2-api.jar
/u01/app/oracle/gcc/bin/emctl config oms deploy_library -library_name log4j-api_jar#2.17.1@2.17.1 -jar_name /u01/app/oracle/gcc/sysman/jlib/log4j-api.jar
was
/u01/app/oracle/gcc/cfgtoollogs/omspatcher/2022-09-20_17-22-00PM_SystemPatch_34471058_12/text_output