Threat Report: Exposing Malware in Linux-Based Multi-Cloud Environments | Download Now

Post Upgrade - Nginx won't start due to duplicate includes in cb.conf and http.conf

Post Upgrade - Nginx won't start due to duplicate includes in cb.conf and http.conf

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

  1. Make a backup of your nginx configuration
    cp /etc/cb/nginx/conf.d/cb.conf /etc/cb/nginx/conf.d/cb.conf.bakDATE
  2. Comment out the line in /etc/cb/nginx/conf.d/cb.conf by changing:
    listen [::]:80 ipv6only=off;
    To:
    #listen [::]:80 ipv6only=off;
  3. Restart Services
    1. For standalone implementations
      service cb-enterprise restart
    2. For clusters
      /usr/share/cb/cbcluster stop
      /usr/share/cb/cbcluster start
Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎10-06-2016
Views:
1096
Contributors