Access official resources from Carbon Black experts
Cb Response 5.2
This document describes changes made in /etc/cb/nginx/conf.d/cb.conf to assist users though the upgrade process.
The original 5.2 cb.conf file is broken into several configuration files under includes/ directory. This new cb.conf file is nothing but a set of include statements that merges all the individual configuration files:
Note: The http.conf file is in /etc/cb/nginx/conf.d/ and not the includes directory. It doesn't have an includes line in cb.conf
The Server will replace the default cb.conf configuration file with the new one with no changes needing to be made while upgrading.
mv /etc/cb/nginx/conf.d/cb.conf.rpmnew /etc/cb/nginx/conf.d/cb.conf.5.2changes
cp /etc/cb/nginx/conf.d/cb.conf /etc/cb/nginx/conf.d/cb.conf.bakDATE
To
listen [::]:80 ipv6only=off;
#listen [::]:80 ipv6only=off;
Note: For more information check here: Post Upgrade - Nginx won't start due to duplicate includes in cb.conf and http.conf
To
# Include content of custom server configuration file
include /etc/cb/nginx/conf.d/cb.server.custom;
# Include content of custom server configuration file
include /etc/cb/nginx/conf.d/includes/cb.server.custom;
If you have IPv6 disabled and are seeing the error in /var/log/cb/nginx/startup.log:
nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)
Comment out this line in /etc/cb/nginx/conf.d/http.conf:
listen [::]:80 ipv6only=off;
To
#listen [::]:80 ipv6only=off;
Note: For more information check here: Post Install - nginx won't start with (IPv6) Error: Address family not supported by protocol
Follow the steps provided in this guide to migrate over to the new multihome format. This allows for easier upgrades in the future:
Migrating to a 5.2 Multihome Configuration File
For more information on upgrades in general check here: Upgrading to a new Cb Response Version
If cb-nginx won't start, check the bottom of /var/log/cb/nginx/startup.log for errors:
tail /var/log/cb/nginx/startup.log