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

CB Response: postgresql93 failed after upgrade

CB Response: postgresql93 failed after upgrade

Environment

  • Carbon Black Response Server: 6.2.4 and above
  • Carbon Black Response Server 7.x

Symptoms

The following error messages are seen during the /usr/share/cb/cbupgrade process
The cb-enterprise postgresql93 dependencies are required for this upgrade.
Please ensure postgresql93, postgresql93-libs, and postgresql93-server are installed, and try again.

--------------------------------------------------------------------------------
UPGRADE ABORTED
--------------------------------------------------------------------------------
'rpm -q postgresql93 postgresql93-libs postgresql93-server' failed(2)

For Server 7.x upgrades, yum -list | grep postgresl shows these packages installed:
postgresql10.x86_64                     10.10-1PGDG.rhel6           @CarbonBlack
postgresql10-contrib.x86_64             10.10-1PGDG.rhel6           @CarbonBlack
postgresql10-libs.x86_64                10.10-1PGDG.rhel6           @CarbonBlack
postgresql10-server.x86_64              10.10-1PGDG.rhel6           @CarbonBlack
postgresql93-libs.x86_64                9.3.11-1PGDG.rhel6          @CarbonBlack


 

Cause

1. clean_requirements_on_remove is enabled in /etc/yum.conf
2. For Server 7.x, both postgresql10 and postgresql93 packages are needed for install only.

Resolution

  1. In the terminal/ssh session navigate to /etc/yum.repos.d/CarbonBlack.repo
  2. Add the baseurl for 6.2.3, comment out the stable line
    #baseurl=https://yum.distro.carbonblack.io/enterprise/stable/$releasever/$basearch/
    baseurl=https://yum.distro.carbonblack.io/enterprise/6.2.3-1/$releasever/$basearch/
    1. Save and exit. Run "yum clean all"
    2. Download the postgresql93 package
      yum install postgresql93 postgresql93-server postgresql93-libs postgresql93-contrib
      1. Complete the upgrade process
        /usr/share/cb/cbupgrade
        1. After service have started successfully, remove postgresql93 to clean up
          yum remove postgresql93*
          1. Remove the 6.2.3 line from /etc/yum.repos.d/CarbonBlack.repo and uncomment the stable line for next upgrade

          Additional Notes


          Related Content


          Labels (1)
          Tags (2)
          Was this article helpful? Yes No
          No ratings
          Article Information
          Author:
          Creation Date:
          ‎12-10-2018
          Views:
          875
          Contributors