IMPORTANT ANNOUNCEMENT: On May 6, 2024, Carbon Black User eXchange (UeX) and Case Management will move to a new platform!
The Community will be in read-only mode starting April 19th, 7:00 AM PDT. Check out the blog post!
You will still be able to use the case portal to create and interact with your support cases until the transition, view more information here!

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:
1218
Contributors