Jasper report server not stopping postgres and tomcat services using stopservers.sh script

book

Article ID: 196538

calendar_today

Updated On:

Products

DX Infrastructure Management

Issue/Introduction

Installed CABI 7.1.1(Jasper Reports Server 6.4.3 ). The stopserver.sh command does not stop the tomcat and postgres processes successfully.

 

The tomcat process is not stopping when running the<jasperhome>/stopservers.sh.script. The postgress processes are successfully stopping.

 

If we run the <jasperhome>/apached-tomcat/bin/shutdown.sh script the tomcat service stops successfully. 

 

 

Cause

 

Stopservers.sh script was not grepping on the correct variable ($4 instead of $3). 

 

 

 

 

 

 

Environment

Release : 10.4.1

Component : JasperReports CABI 6.4.x /7.1.1

Resolution

Stopservers.sh script was not grepping on the correct variable ($4 instead of $3). Once the script variable updated from $4 to $3. The script stopped tomcat process successfully.

See the output below, the tomcatPort=true

Edit your stopServers.sh file, go to line/row 315, and change from $4 to $3. Save the file.



Line/row: 315 (current value)
tomcatPort=`grep "Connector " $tomcatFile | awk '{print $0;}' | grep "port" | awk -F"=" 'NR==1{print $4;}' | tr -d "\"" | awk -F" " '{print $1;}'`



Line/row: 315 (new value)
tomcatPort=`grep "Connector " $tomcatFile | awk '{print $0;}' | grep "port" | awk -F"=" 'NR==1{print $3;}' | tr -d "\"" | awk -F" " '{print $1;}

 

Attachments