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!

Psql errors on startup following a backup restore or upgrade (Cluster)

Psql errors on startup following a backup restore or upgrade (Cluster)

Version

All Versions of Cb Response

Cause

There is a new psql database with a new password. This password was updated on the master configuration file cb.conf, but not the minions.

Symptoms

OperationalError: (OperationalError) FATAL:  password authentication failed for user "cb"

Solution

  1. Open cb.conf configuration file on the master
    vi /etc/cb/cb.conf
  2. Search for DatabaseURL
    / DatabaseURL
  3. Complete steps 1 and 2 on Minions.
  4. Replace cb password on minions to match psql password from master
    # SQLAlchemy DB URL to be used when connecting to PostgreSQL
    DatabaseURL=postgresql+psycopg2://cb:PASSWORDHERE@localhost:5002/cb
  5. Restart the cluster
    /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:
‎09-30-2016
Views:
832
Contributors