Version
Cb Response 5.x to 5.2
Issue
After performing an upgrade, the Nginx web server service (cb-nginx) fails to start.
Symptoms
The following error message is written to /var/log/cb/nginx/startup.log when starting the services:
nginx: [emerg] duplicate listen options for [::]:80 in /etc/cb/nginx/conf.d/http.conf:5
Cause
The issue occurs because this line is declared twice:
listen [::]:80 ipv6only=off; |
In these files:
/etc/cb/nginx/conf.d/cb.conf
/etc/cb/nginx/conf.d/http.conf
Solution
- Make a backup of your nginx configuration
cp /etc/cb/nginx/conf.d/cb.conf /etc/cb/nginx/conf.d/cb.conf.bakDATE |
- Comment out the line in /etc/cb/nginx/conf.d/cb.conf by changing:
listen [::]:80 ipv6only=off; |
To:
#listen [::]:80 ipv6only=off; |
- Restart Services
- For standalone implementations
service cb-enterprise restart |
- For clusters
/usr/share/cb/cbcluster stop /usr/share/cb/cbcluster start |