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!

Multiple versions of python preventing successful service startup

Multiple versions of python preventing successful service startup

Version
This solution applies to all Carbon Black versions.


Issue

The Carbon Black services experience start up issues with multiple versions of Python installed.

 

Symptoms
The following message may be observed when retrieving a status for the 'cb-datastore' service:

[root@cb-server ~]# /etc/init.d/cb-datastore status

/usr/local/bin/python: No module named cb.maintenance.cbquery

/usr/local/bin/python: No module named cb.maintenance.cbquery

PID file exists, but process is not running [FAILED]


Cause
With multiple versions of Python installed, the newer version updates the system's $PATH.

Solution

Remove the newer version of Python so that the only version provided by Carbon Black's repository (/etc/yum.repos.d/CarbonBlack.repo) exists:

[root@cb-server ~]# yum --disablerepo="*" --enablerepo="CarbonBlack" info python
Labels (1)
Was this article helpful? Yes No
No ratings
Article Information
Author:
Creation Date:
‎05-11-2015
Views:
634
Contributors