CB Response: Upgrade fails with error in cb-pgsql startup log: "could not access directory "/var/cb/data/pgsql": No such file or directory.
search cancel

CB Response: Upgrade fails with error in cb-pgsql startup log: "could not access directory "/var/cb/data/pgsql": No such file or directory.

book

Article ID: 288249

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

  • Cb Response server upgrade fails.
  • /tmp is on a small partition (i.e. 1.8 GB free)
  • During cluster startup, cb-pgsql fails to start.
  • Temporary cb-pgsl folder exists (i.e /var/cb/data/pgsql.93)
  • error in cb-pgsql startup log: "could not access directory "/var/cb/data/pgsql": No such file or directory

 

Environment

  • CB Response Server: 6.0.1 and higher

Cause

The partition that /tmp resides on is too small to fit temporary working space for pgsql upgrading.

    Resolution

    To fix, 

    1. Allow for larger working space by creating a symbolic link for /tmp to a larger partition
    2. # lsof /tmp   <-  close any processes with open files in /tmp
    3. # umount /tmp
    4. # ln -s /tmp /big/tmp
    5. Now follow the solution in Article Related Content to re-run the cbupgrade process.