EDR: Server Upgrade Error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm/jre-1.8.0//bin/java'
search cancel

EDR: Server Upgrade Error: FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm/jre-1.8.0//bin/java'

book

Article ID: 287401

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

  • [root@cbserver]# /usr/share/cb/cbupgrade
    
    --------------------------------------------------------------------------------
    VMWARE CARBON BLACK EDR SERVER - UPGRADE
    --------------------------------------------------------------------------------
    Thank you for installing version 7.3.0.201016.1331 of VMware Carbon Black EDR
    Server. This tool will guide you through a few setup steps which
    are necessary in order to complete the upgrade.
    
    Continue [return]:
    
    --------------------------------------------------------------------------------
    UPGRADE ABORTED
    --------------------------------------------------------------------------------
    [Errno 2] No such file or directory: '/usr/lib/jvm/jre-1.8.0//bin/java'
    Traceback (most recent call last):
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/utils/exceptions.py", line 84, in decorator
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/main.py", line 246, in main
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/main.py", line 67, in run
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/main.py", line 112, in __run_action_prereqs
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/base_action.py", line 89, in do_run_prereq
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/versions/v7_3_0.py", line 125, in run_prereq
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/versions/v7_3_0.py", line 182, in _get_java_version_from_path
      File "/usr/share/cb/virtualenv/lib/python3.8/site-packages/cb/maintenance/cbupgrade/versions/v7_3_0.py", line 192, in _get_java_version_text
      File "/usr/share/cb/virtualenv/lib64/python3.8/site-packages/gevent/subprocess.py", line 745, in __init__
        self._execute_child(args, executable, preexec_fn, close_fds,
      File "/usr/share/cb/virtualenv/lib64/python3.8/site-packages/gevent/subprocess.py", line 1637, in _execute_child
        raise child_exception
    FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/jvm/jre-1.8.0//bin/java'

     

Environment

  • EDR: All Supported Versions

Cause

  • Partial installation of JVM needs to update /etc/cb/cb.conf file to point to appropriate directory.

Resolution

  • Confirm which directory the /etc/cb/cb.conf file is looking for:
    • cat /etc/cb/cb.conf | grep CbJavaHome
  • Check to see which directories exist:
    • ls /usr/lib/jvm
  • Update /etc/cb/cb.conf file CbJavaHome parameter to the appropriate JVM directory.  In this instance the /usr/lib/jvm/jre-11/ directory exists but the /usr/lib/jvm/jre-1.8.0/ directory did not:
    • CbJavaHome=/usr/lib/jvm/jre-11/

       
  • Re-run /usr/share/cb/cbupgrade