WCC_MONITOR.SH and WCC_CONFIG.SH are failing with "E150012 - Unexpected error occurred during processing the command."
search cancel

WCC_MONITOR.SH and WCC_CONFIG.SH are failing with "E150012 - Unexpected error occurred during processing the command."

book

Article ID: 425435

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

When running the batch interface "wcc_config.sh" to import/export  WebUI configuration settings, or "wcc_monitor.sh" for views, it can fail with following error:

E150012 - Unexpected error occurred during processing the command.

The following error is found in $CA_WCC_INSTALL_LOCATION/log/application/cli/out.txt

Exception in thread "main" java.lang.RuntimeException: Setup of cluster client connection failed.
        at com.ca.wcc.cluster.resources.WccClusterProviderClientFactory.getClientInstance(Unknown Source)
        at com.ca.wcc.cluster.resources.WccClusterProviderClientFactory.getClientInstance(Unknown Source)
        at com.ca.wcc.monitoring.cli.Main.initJndi(Unknown Source)
        at com.ca.wcc.monitoring.cli.Main.main(Unknown Source)
Caused by: java.lang.RuntimeException: java.lang.UnsatisfiedLinkError: /tmp/bc-fips-jni_6763530731586037/libbc-probe.so: /tmp/bc-fips-jni_6763530731586037/libbc-probe.so: failed to map segment from shared object
        at com.ca.wcc.dbresource.datasource.WccDataSource.setPrefix(Unknown Source)
        at com.ca.wcc.dbresource.datasource.SetupDatasource.<init>(Unknown Source)
        at com.ca.wcc.cluster.resources.WccClusterProviderClientFactory.getDatasourceInstanceForInitialization(Unknown Source)
        at com.ca.wcc.cluster.resources.WccClusterProviderClientFactory.getClientInstance(Unknown Source)
        ... 3 more
Caused by: java.lang.UnsatisfiedLinkError: /tmp/bc-fips-jni_6763530731586037/libbc-probe.so: /tmp/bc-fips-jni_6763530731586037/libbc-probe.so: failed to map segment from shared object
        at java.base/jdk.internal.loader.NativeLibraries.load(Native Method)
        at java.base/jdk.internal.loader.NativeLibraries$NativeLibraryImpl.open(Unknown Source)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
        at java.base/jdk.internal.loader.NativeLibraries.loadLibrary(Unknown Source)
        at java.base/java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.base/java.lang.Runtime.load0(Unknown Source)
        at java.base/java.lang.System.load(Unknown Source)
        at org.bouncycastle.crypto.fips.NativeLoader$1.run(Unknown Source)
        at java.base/java.security.AccessController.doPrivileged(Unknown Source)
        at org.bouncycastle.crypto.fips.NativeLoader.loadDriver(Unknown Source)
        at org.bouncycastle.crypto.fips.FipsStatus.isReady(Unknown Source)
        at org.bouncycastle.crypto.fips.FipsDRBG$Builder.<init>(Unknown Source)
        at org.bouncycastle.crypto.fips.FipsDRBG$Base.fromEntropySource(Unknown Source)
        at com.ca.wcc.encrypt.Cryptor.<clinit>(Unknown Source)
        at com.ca.wcc.dbresource.datasource.WccDataSource.setPrefix(Unknown Source)
        ... 6 more

Environment

WCC 24.x
Linux

Cause

/tmp is mounted with "noexec".

Resolution

1) Mount /tmp with "exec"

or 

2) Modify wcc_config.sh and wcc_monitor.sh by specifying another temporary directory thru the following parameter

-Djava.io.tmpdir=/opt/CA/lWorkloadAutomationAE/wcc/tomcat/temp

 Look for the following line , it is at the end of the file

${CA_WCC_INSTALL_LOCATION}/jre/bin/java -cp "${CA_WCC_INSTALL_LOCATION}/bin/lib/*:${CA_WCC_INSTALL_LOCATION}/jars/*" "-Djavax.net.ssl.trustStore=${CA_WCC_INSTALL_LOCATION}/data/config/.keystore" -Djava.security.egd=file:/dev/./urandom -Dorg.bouncycastle.rsa.allow_multi_use=true -Dorg.bouncycastle.fips.approved_only=true com.ca.wcc.monitoring.cli.Main $@

    Modify it to the following

${CA_WCC_INSTALL_LOCATION}/jre/bin/java -cp "${CA_WCC_INSTALL_LOCATION}/bin/lib/*:${CA_WCC_INSTALL_LOCATION}/jars/*" "-Djavax.net.ssl.trustStore=${CA_WCC_INSTALL_LOCATION}/data/config/.keystore" -Djava.security.egd=file:/dev/./urandom -Dorg.bouncycastle.rsa.allow_multi_use=true -Dorg.bouncycastle.fips.approved_only=true -Djava.io.tmpdir=/opt/CA/WorkloadAutomationAE/wcc/tomcat/temp com.ca.wcc.monitoring.cli.Main $@