Reinstall of EEM fails
search cancel

Reinstall of EEM fails

book

Article ID: 216082

calendar_today

Updated On:

Products

Autosys Workload Automation

Issue/Introduction

Customer installed EEM first, uninstalled it, now attempts to reinstall EEM fail with errors.

 

/tmp/cawa_installer.log had errors like this:

2021-05-27 10:45:45,462 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.InstallEEM - EEM Installation..Executing command.../mnt/autosys/modules/EEM/setup.bin -i SILENT -f /opt/CA/WorkloadAutomationAE/autosys/EEMSilentInstall.properties
2021-05-27 10:45:45,462 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:/bin/sh
2021-05-27 10:45:45,462 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:-c
2021-05-27 10:45:45,462 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:. /etc/profile 2>&1 > /dev/null ; echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH;
2021-05-27 10:45:45,515 [main] INFO  com.ca.autosys.db.helper.Utils - Read output stream = LD_LIBRARY_PATH=
2021-05-27 10:45:45,515 [main] DEBUG com.ca.autosys.db.helper.Utils - output form process-LD_LIBRARY_PATH=

2021-05-27 10:45:45,515 [main] DEBUG com.ca.autosys.db.helper.SystemUtil - value=LD_LIBRARY_PATH=

2021-05-27 10:45:45,515 [main] DEBUG com.ca.autosys.db.helper.SystemUtil - finalValue : 
2021-05-27 10:45:45,515 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : PATH = /usr/xpg4/bin:/opt/CA/WorkloadAutomationAE/autosys/csutils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
2021-05-27 10:45:45,515 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : LD_LIBRARY_PATH = 
2021-05-27 10:45:45,515 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : IATEMPDIR = /tmp/153920.tmp
2021-05-27 10:46:13,754 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - RetVal =252
2021-05-27 10:46:13,754 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.InstallEEM - EEM Installation exit code ...252
2021-05-27 10:46:13,755 [main] WARN  com.ca.wla.ae.installer.logger.LogHelper - NonFatalException : W_AE_EEM_Failed_Installation_Error [CAUAJM_W_112133] Unable to install or upgrade the CA EEM server.
2021-05-27 10:46:13,758 [main] INFO  com.ca.wla.ae.installer.util.FileUtil - existing file /opt/CA/WorkloadAutomationAE/autosys/EEMSilentInstall.properties
2021-05-27 10:46:13,760 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier - Change EEM certificate length from to 2048 
2021-05-27 10:46:13,761 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier - Creating response file for setting Key_length in eem. 
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - AES
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - The BCFIPS JCE Provider is running in FIPS 140-2 compliant mode.
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - The BCFIPS JCE Provider is already registered.
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - In hexToBin method
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - In hexToBin method
2021-05-27 10:46:13,761 [main] DEBUG com.ca.wla.ae.sec.SecurityAlgFactory - In hexToBin method
2021-05-27 10:46:13,763 [main] INFO  com.ca.wla.ae.installer.util.FileUtil - existing file /tmp/153920.tmp/eemCertGenerator.properties
2021-05-27 10:46:13,763 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier - Updating EEM certificate Key_Length...
2021-05-27 10:46:13,763 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier - Executing command.../opt/CA/SharedComponents/EmbeddedEntitlementsManager/jre/bin/java -jar /opt/CA/SharedComponents/EmbeddedEntitlementsManager/bin/eiam-clustersetup.jar -r /tmp/153920.tmp/eemCertGenerator.properties
2021-05-27 10:46:13,763 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:/bin/sh
2021-05-27 10:46:13,763 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:-c
2021-05-27 10:46:13,763 [main] DEBUG com.ca.autosys.db.helper.Utils - exec cmd arg:. /etc/profile 2>&1 > /dev/null ; echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH;
2021-05-27 10:46:13,803 [main] INFO  com.ca.autosys.db.helper.Utils - Read output stream = LD_LIBRARY_PATH=
2021-05-27 10:46:13,804 [main] DEBUG com.ca.autosys.db.helper.Utils - output form process-LD_LIBRARY_PATH=

2021-05-27 10:46:13,804 [main] DEBUG com.ca.autosys.db.helper.SystemUtil - value=LD_LIBRARY_PATH=

2021-05-27 10:46:13,804 [main] DEBUG com.ca.autosys.db.helper.SystemUtil - finalValue : 
2021-05-27 10:46:13,804 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : EIAM_HOME = /opt/CA/SharedComponents/EmbeddedEntitlementsManager
2021-05-27 10:46:13,804 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : PATH = /opt/CA/SharedComponents/EmbeddedEntitlementsManager/../Directory/dxserver/bin:/usr/xpg4/bin:/opt/CA/WorkloadAutomationAE/autosys/csutils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/xpg4/bin:/opt/CA/WorkloadAutomationAE/autosys/csutils/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin
2021-05-27 10:46:13,804 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - Command Env : LD_LIBRARY_PATH = 
2021-05-27 10:46:13,805 [main] INFO  com.ca.wla.ae.installer.util.CommandUtil - Read error stream = Error: Unable to access jarfile /opt/CA/SharedComponents/EmbeddedEntitlementsManager/bin/eiam-clustersetup.jar
2021-05-27 10:46:13,806 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - RetVal =1
2021-05-27 10:46:13,806 [main] INFO  com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier -  exit code ...1
2021-05-27 10:46:13,806 [main] DEBUG com.ca.wla.ae.installer.mm.action.eem.EEMCertModifier - EEM Certificate KeyLength could not be updated.
2021-05-27 10:46:13,806 [main] WARN  com.ca.wla.ae.installer.logger.LogHelper - NonFatalException : W_AE_EEM_CERT_LENGTH_UPDATE_FAILED [CAUAJM_W_119034] Unable to configure the CA EEEM certificate with a key length of 2048. For more information, refer to the online documentation.
2021-05-27 10:46:13,828 [main] INFO  com.ca.wla.ae.installer.mm.action.ConfigureVirtualPorts - Configure all required ports for SSA
2021-05-27 10:46:13,840 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - assign file permissions
2021-05-27 10:46:13,840 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - InstallMode from installer -FRESH_CUSTOM
2021-05-27 10:46:13,841 [main] DEBUG com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - Enter in processFilePermissions
2021-05-27 10:46:13,841 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - rootDir for permission assignment : /opt/CA/WorkloadAutomationAE
2021-05-27 10:46:13,843 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - skipped file : /opt/CA/WorkloadAutomationAE/Logs
2021-05-27 10:46:13,843 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - skipped file : /opt/CA/WorkloadAutomationAE/uninstaller
2021-05-27 10:46:13,843 [main] INFO  com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - skipped file : /opt/CA/WorkloadAutomationAE/jre
2021-05-27 10:46:13,845 [main] DEBUG com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - processFilePermissions : allFiles.size()92
2021-05-27 10:46:13,851 [main] DEBUG com.ca.wla.ae.installer.util.CommandUtil - RetVal =0
2021-05-27 10:46:14,086 [main] DEBUG com.ca.wla.ae.installer.mm.action.AssignUnixFilePermissions - Exit from processFilePermissions
2021-05-27 10:46:14,099 [main] INFO  com.ca.wla.ae.installer.mm.action.service.CreateService - InstallDir/opt/CA/WorkloadAutomationAE
2021-05-27 10:46:14,868 [main] INFO  com.ca.wla.ae.installer.mm.action.GlobalVarsfileGenerator - Update the globalVars file with the properties
2021-05-27 10:46:14,870 [main] INFO  com.ca.wla.ae.installer.util.FileUtil - existing file /opt/CA/WorkloadAutomationAE/autosys/globalVars
2021-05-27 10:46:15,623 [main] INFO  com.ca.wla.ae.installer.mm.action.service.StartService - Enter in StartService
2021-05-27 10:46:15,645 [main] INFO  com.ca.wla.ae.installer.customaction.AEComposePostInstallMessage - Composing post install message
2021-05-27 10:46:15,646 [main] DEBUG com.ca.wla.ae.installer.customaction.AEComposePostInstallMessage - msg:
Encountered below warnings during installation:
[CAUAJM_W_112133] Unable to install or upgrade the CA EEM server.
[CAUAJM_W_119034] Unable to configure the CA EEEM certificate with a key length of 2048. For more information, refer to the online documentation.
You can access the following services using the corresponding URL.
Note: It may take several minutes for the server to be up and running.

CA Embedded Entitlements Manager (CA EEM): 
    https://hostname:5250/spin/eiam

Post-installation logs will be written to:
    /opt/CA/WorkloadAutomationAE/Logs/AutoSys_Workload_Automation_<Install_time_stamp>.log
    /opt/CA/WorkloadAutomationAE/Logs/cawa_installer_27_05_2021_10_43_31.log
2021-05-27 10:46:15,647 [main] INFO  com.ca.wla.ae.installer.customaction.AEComposePostInstallMessage - Done composing post install message
2021-05-27 10:46:42,485 [main] INFO  com.ca.wla.ae.installer.customaction.AEBackUpLogs - Backing up the logs

 

 

Environment

Release : 12.0

Component : WORKLOAD CONTROL CENTER

Cause

EEM install failed during the configuration of CA Directory to create DSAs.

 

/tmp/eiam-install.log has below error:

 

27 May 2021 14:49:31 INFO  DXServer - Installing the itechpoz DSA
27 May 2021 14:49:31 INFO  DXServer - ----------------------------------------------------
27 May 2021 14:49:31 INFO  DXServer - /opt/CA/SharedComponents/CADirectory/dxserver/install/.dxprofile: line 18: /etc/profile.CA: Permission denied

27 May 2021 14:49:31 INFO  DXServer - Command [dxserver install itechpoz] exit code [1]
27 May 2021 14:49:31 ERROR DXServer - Command [dxserver install itechpoz] failed with error code [1]
27 May 2021 14:49:31 FATAL ConfigureCADirectoryAction - CA Directory configuration failed
java.io.IOException: Command [dxserver install itechpoz] failed with error code [1]
        at com.ca.eiam.common.dsa.DXServer.runDxTools(DXServer.java:295)
        at com.ca.eiam.common.dsa.DXServer.install(DXServer.java:162)
        at com.ca.eiam.installer.customcodeaction.ConfigureCADirectoryAction.install(ConfigureCADirectoryAction.java:139)
        at com.zerog.ia.installer.actions.CustomAction.installSelf(Unknown Source)
        at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
        at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
        at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
        at com.zerog.ia.installer.GhostDirectory.install(Unknown Source)
        at com.zerog.ia.installer.InstallablePiece.install(Unknown Source)
        at com.zerog.ia.installer.Installer.install(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.consoleInstallMain(Unknown Source)
        at com.zerog.ia.installer.LifeCycleManager.executeApplication(Unknown Source)
        at com.zerog.ia.installer.Main.main(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.zerog.lax.LAX.launch(Unknown Source)
        at com.zerog.lax.LAX.main(Unknown Source)

Resolution

1) chmod 644 /etc/profile.CA

2) uninstall any existing EEM / CA Directory folder structures   in /opt/CA/SharedComponents folder  (If Uinstalling them does not work, rename that component's folder)

3) umask 0022

4) re-run the installer again, this time EEM should install successfully