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!

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

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

Environment

  • EDR: 7.x and Higher

Symptoms

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

 

Cause

The 'openssl11-libs' package is missing.

Resolution

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

Related Content


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