How to configure Fapolicyd in order to start and stop CABI Services?
search cancel

How to configure Fapolicyd in order to start and stop CABI Services?

book

Article ID: 260717

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

How to configure Fapolicyd in order to start and stop CABI Services? When trying to start the CABI services, we receive the below error:

./startServers.sh
No CA Business Intelligence servers are runnning
Default Postgres database user is: postgres
Default Postgres database port is: 5432
bash: postgresql/bin/pg_ctl: Operation not permitted

Environment

Release: All Supported Releases

Component: SPCJSP - Jaspersoft for Spectrum

Resolution

Run the ID command to get the UID of the postgres user:

[[email protected]]# id postgres
uid=1007(postgres) gid=1009(postgres) groups=1009(postgres)

Create a /etc/fapolicyd/rules.d/39-cabi.rules file with the following (in this example, the install directory is /opt/CABI/)

#Install directory
allow perm=any uid=1007 : dir=/opt/CABI
allow perm=any uid=0 : dir=/opt/CABI

#/tmp for any temp files needed during execution
allow perm=any uid=1007 : dir=/tmp
allow perm=any uid=0 : dir=/tmp

Save the file and restart the service.

systemctl stop fapolicyd
systemctl start fapolicyd

Now the services will start successfully.

[[email protected]]# ./startServers.sh
No CA Business Intelligence servers are runnning
Default Postgres database user is: postgres
Default Postgres database port is: 5432
waiting for server to start.... done
server started
Default Postgres database started successfully
Default Postgres database started successfully
Default Tomcat server port is 8080
/opt/CABI/java
Using CATALINA_BASE: /opt/CABI/apache-tomcat
Using CATALINA_HOME: /opt/CABI/apache-tomcat
Using CATALINA_TMPDIR: /opt/CABI/apache-tomcat/temp
Using JRE_HOME: /opt/CABI/java
Using CLASSPATH: /opt/CABI/apache-tomcat/bin/bootstrap.jar:/opt/CABI/apache-tomcat/bin/tomcat-juli.jar
Using CATALINA_OPTS:
Using CATALINA_PID: ./apache-tomcat/temp/catalina.pid
Tomcat started.
Default Tomcat server started successfully