ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

CABI - JasperReports 7.1.1.1 (7.1.1 SP1) fresh installation not running on IPv4 address (only binds to IPv6) on Linux server

book

Article ID: 212374

calendar_today

Updated On:

Products

CA Performance Management - Usage and Administration

Issue/Introduction

After a fresh install of CABI JasperReports 7.1.1.1 (7.1.1 SP1) for Performance Management on a Linux server (without certificate) which should run on port 8080, we noticed the installation only binds to IPv6 address and not to IPv4 so the website is unreachable on IPv4:

[email protected] ~]$ netstat -tulpn
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp6    0          0           :::8080                       :::*                               LISTEN   84626/java

Cause

ipv6 forwarding not enabled in the sever:

sysctl -a | grep net.ipv6.conf.all.forwarding
net.ipv6.conf.all.forwarding = 0

Environment

CABI 7.x

Resolution

As a workaround the following line should be added in the ../CA_Business_Intelligence/apache-tomcat/binsetenv.sh script to force IPv4 usage:
 export JAVA_OPTS="$JAVA_OPTS -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Addresses=true