wcc_monitor.sh / wcc_config.sh fail with "E150012 - Unexpected error occurred during processing the command." Similar error happens with telemetry.sh CAUAJM_E_40389 Telemetry data collection failed.
search cancel

wcc_monitor.sh / wcc_config.sh fail with "E150012 - Unexpected error occurred during processing the command." Similar error happens with telemetry.sh CAUAJM_E_40389 Telemetry data collection failed.

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

 

Similar error happens with telemetry.sh  CAUAJM_E_40389 Telemetry data collection failed.

Environment

AutoSys 24.1.x or above

Cause

/tmp is mounted with "noexec".

Resolution

  • Mount /tmp with "exec"

or 

  • Modify $CA_WCC_INSTALL_LOCATION/bin/wcc_config.sh and $CA_WCC_INSTALL_LOCATION/bin/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 
Original value line:
${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 look like:
${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 $@

Save the file and retest

 

  • For telemetry.sh,  identify the file $AUTOSYS/bin/telemetry.sh  and modify the $JAVA_CMD to have an additional value highlighted below:

    Original value line:
    "$JAVA_CMD" -cp "$AUTOSYS/lib/*:$NATIVEJDBCJARPATH:$ADDITIONALJARSPATH" -Xms64m -Xmx256m -Duser.home=$AUTOUSER/out $JVM_OPTION -Djava.util.logging.config.file=$AUTOUSER/telemetry/logging.properties com.ca.waae.telemetry.TelemetryUtil $@

    Modify it to look like:
    "$JAVA_CMD" -cp "$AUTOSYS/lib/*:$NATIVEJDBCJARPATH:$ADDITIONALJARSPATH" -Xms64m -Xmx256m -Djava.io.tmpdir=$AUTOUSER/out -Duser.home=$AUTOUSER/out $JVM_OPTION -Djava.util.logging.config.file=$AUTOUSER/telemetry/logging.properties com.ca.waae.telemetry.TelemetryUtil $@

Save the file and retest