EDR: cbupgrade fails with error: ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory
search cancel

EDR: cbupgrade fails with error: ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory

book

Article ID: 288044

calendar_today

Updated On:

Products

Carbon Black EDR (formerly Cb Response)

Issue/Introduction

During an upgrade, the cbupgrade script fails with on-screen errors:
# /usr/share/cb/cbupgrade
Traceback (most recent call last):
  File "/usr/share/cb/cbupgrade", line 5, in <module>
    from cb.maintenance.cbupgrade import main
  File "/usr/share/cb/virtualenv/lib/python3.10/site-packages/cb/maintenance/cbupgrade/main.py", line 4, in <module>
  File "/usr/share/cb/virtualenv/lib/python3.10/site-packages/cb/utils/monkey.py", line 7, in patch_all
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/monkey.py", line 1279, in patch_all
    patch_ssl(_warnings=_warnings, _first_time=first_time)
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/monkey.py", line 200, in ignores
    return func(*args, **kwargs)
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/monkey.py", line 1044, in patch_ssl
    gevent_mod, _ = _patch_module('ssl', _warnings=_warnings)
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/monkey.py", line 462, in _patch_module
    gevent_module, target_module, target_module_name = _check_availability(name)
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/monkey.py", line 448, in _check_availability
    gevent_module = getattr(__import__('gevent.' + name), name)
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/ssl.py", line 32, in <module>
    from gevent import _ssl3 as _source # pragma: no cover
  File "/usr/share/cb/virtualenv/lib64/python3.10/site-packages/gevent/_ssl3.py", line 11, in <module>
    import ssl as __ssl__
  File "/usr/lib64/python3.10/ssl.py", line 99, in <module>
    import _ssl             # if we can't import it, let the error propagate
ImportError: libssl.so.1.1: cannot open shared object file: No such file or directory

 

Environment

  • EDR: 7.x and Higher

Cause

The 'openssl11-libs' package is missing.

Resolution

  1. Install the 'openssl11-libs' package:
# yum install openssl11-libs
  1. Re-run the cbupgrade script.