JasperReports 7.1.1 SP1 installation failure while configuring postgres

book

Article ID: 206662

calendar_today

Updated On:

Products

CA Spectrum CA Infrastructure Management CA Performance Management - Usage and Administration DX Infrastructure Management

Issue/Introduction

A fresh installation of CABI 7.1.1 SP1 on RHEL 7.8 is failing.

The following error is logged in the CABusinessIntelligence_install_yyyy_mm_dd_hh_mm_ss.log file:

2021-01-14 11:25:48 INFO  ComponentInstall.configurePostgres():480 - Go to ConfigurePostgresql cpost = new ConfigurePostgresql();
2021-01-14 11:25:48 INFO  ComponentInstall.configurePostgres():482 - Go to cpost.initializePostgres(this.jasperInstallerLocation, this, cib);
2021-01-14 11:25:48 INFO  CABIProcessBuilder.cabiProcess():56 - cabiProcess method invoked with arguments- command and process path
2021-01-14 11:25:48 INFO  CABIProcessBuilder.createProcessArgList():98 - createProcessArgList method is invoked with arguments- command string array
2021-01-14 11:25:48 INFO  CABIProcessBuilder.createProcessArgList():111 - Adding /bin/shto arraylist
2021-01-14 11:25:48 INFO  CABIProcessBuilder.createProcessArgList():111 - Adding -cto arraylist
2021-01-14 11:25:48 INFO  CABIProcessBuilder.createProcessArgList():111 - Adding su postgres -s /bin/sh -c "./bin/initdb -D ./data -U postgres -E UTF8"to arraylist
2021-01-14 11:25:48 INFO  CABIProcessBuilder.createProcessArgList():122 - Process Argument List returned: [/bin/sh, -c, su postgres -s /bin/sh -c "./bin/initdb -D ./data -U postgres -E UTF8"]
2021-01-14 11:25:48 INFO  CABIProcessBuilder.cabiProcess():68 - Command ArrayList: [/bin/sh, -c, su postgres -s /bin/sh -c "./bin/initdb -D ./data -U postgres -E UTF8"]
2021-01-14 11:25:48 DEBUG CABIProcessBuilder.cabiProcess():70 - Creting the processbuilder object
2021-01-14 11:25:48 DEBUG CABIProcessBuilder.cabiProcess():74 - Setting the processbuilder directory to /opt/application/CA/cabi/postgresql
2021-01-14 11:25:48 DEBUG CABIProcessBuilder.cabiProcess():78 - Starting the process
2021-01-14 11:25:48 DEBUG CABIProcessBuilder.cabiProcess():80 - Waiting for the process to finish
2021-01-14 11:25:48 DEBUG CABIProcessBuilder.cabiProcess():82 - Process exit value is 1
2021-01-14 11:25:48 INFO  CABIProcessBuilder.cabiProcess():86 - cabiProcess method returned with value-1
2021-01-14 11:25:48 ERROR ConfigurePostgresql.initializePostgres():77 - Error in configuring postgresql database
2021-01-14 11:25:48 ERROR ComponentInstall.configurePostgres():486 - com.ca.bicoe.cajasperserver.install.preinstall.utils.CABIException
2021-01-14 11:25:48 DEBUG ProgressThread.run():88 - Error code from component install is: 1
2021-01-14 11:25:48 DEBUG ProgressThread.run():90 - Getting the error codes list from CABIInstallException object
2021-01-14 11:25:48 INFO  ProgressThread.run():93 - Error code is: 19031
2021-01-14 11:25:48 ERROR CABIUtil.printCABIException():109 - ErrorCode : 19031   ErrorMessage :
2021-01-14 11:25:48 ERROR CABIUtil.printCABIException():109 - ErrorCode : 19033   ErrorMessage :
2021-01-14 11:25:48 DEBUG ProgressThread.run():95 - Error key is: ERROR_CONFIGURE_POSTGRESQL
2021-01-14 11:25:48 DEBUG ProgressThread.run():97 - Error message is:
2021-01-14 11:25:48 INFO  ProgressThread.run():103 - 1
2021-01-14 11:25:48 DEBUG RollBackInstallation.install():98 - Getting the error codes list from CABIInstallException object
2021-01-14 11:25:48 DEBUG RollBackInstallation.install():104 - Error code occured during the installation is: 19031
2021-01-14 11:25:48 INFO  RollBackInstallation.triggerRollbackForInstallation():141 - Starting rollback operation
2021-01-14 11:25:48 INFO  RollBackInstallation.triggerRollbackForInstallation():143 - error code is: 19031

Cause

The problem is with the permission of the /opt/application directory.

When running the command as postgres account it cannot search dynamic libraries in the /opt/application/CA/cabi folder because it cannot access the /opt/application directory.

The CABI source (installer) files are located at /opt/application/CA

The CABI target directory is: /opt/application/CA/cabi

[[email protected]_server CA]# ls -la /opt
drwxr-xr-x.  7 root   root    107 Sep  9 12:00 .
dr-xr-xr-x. 17 root   root    244 Jan 13 15:26 ..

[[email protected]cabi_server CA]# ls -la /opt/application
drwx------   4 root root   32 Sep  9 12:00 .
drwxr-xr-x.  7 root root  107 Sep  9 12:00 ..

[[email protected]cabi_server CA]# ls -la /opt/application/CA
drwxr-xr-x 14 root root       4096 Jan 14 13:14 .
drwx------  4 root root         32 Sep  9 12:00 ..

[[email protected]cabi_server CA]# ls -la /opt/application/CA/cabi
drwxrwxr-x  4 root root   70 Jan 14 13:32 .
drwxr-xr-x 14 root root 4096 Jan 14 13:14 ..

 

In the response file:

#Installer Launch Directory
#--------------------------
INSTALLER_LAUNCH_DIR=/opt/application/CA/ca_install/GUI_Install/Linux/Disk1/InstData/VM

#InstallationDirectory
#---------------------
USER_INSTALL_DIR=/opt/application/CA/cabi

#Destination directory
#---------------------
DESTINATION_DIR=/opt/application/CA/cabi

 

Environment

Release : 10.4.1

Component : Jaspersoft for CA Spectrum

Resolution

Please set the appropriate permission.

chmod 755 /opt/application

Also, export the following environment variable:

export LC_ALL=en_US.UTF-8

Then rerun the installation.

./setup.sh -f responsefile.properties -i silent