CB Response: Services fail to start with "raise TemplateNotFound(template)"
search cancel

CB Response: Services fail to start with "raise TemplateNotFound(template)"

book

Article ID: 287756

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

  • Start of Response services fails with error: 
Node[0 ] /etc/cb/datastore/logback.conf.xml.template 
Node[0 ] Traceback (most recent call last): 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/utils/ exceptions.py", line 70, in decorator 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/mainte nance/cbstartup/main.py", line 165, in main 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/mainte nance/cbstartup/main.py", line 111, in run 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/cb/mainte nance/cbstartup/actions/init_logging.py", line 28, in execute 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/jinja2/en vironment.py", line 830, in get_template 
Node[0 ] return self._load_template(name, self.make_globals(globals)) 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/jinja2/en vironment.py", line 804, in _load_template 
Node[0 ] template = self.loader.load(self, name, globals) 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/jinja2/lo aders.py", line 113, in load 
Node[0 ] source, filename, uptodate = self.get_source(environment, name) 
Node[0 ] File "/usr/share/cb/virtualenv/lib/python2.7/site-packages/jinja2/lo aders.py", line 187, in get_source 
Node[0 ] raise TemplateNotFound(template) 
Node[0 ] TemplateNotFound: /etc/cb/datastore/logback.conf.xml.template 
Node[0 ] Exec failure (1)
  • ​​​​​​Checking /etc/cb/datastore/ shows the directory is empty.
  • Other directories within /etc/cb/ are empty, such as rabbitmq, nginx, integrations, etc.

Environment

  • CB Response Server Cluster: 6.X
  • CentOS 6.9

Cause

The root cause has not been identified, but may be related to OS/System instability.

Resolution

If this occurs in a Clustered environment, the files and directories on a Minion Server can be copied over to the Master Server to replace the missing data.