Public bug reported:

1) ubuntu release:
We are using Ubuntu 22.04 LTS:
Description:    Ubuntu 22.04.2 LTS
Release:        22.04

2) packages:
We have the following packages installed:
graphite-carbon/jammy,jammy,now 1.1.7-1 all
python3-openssl/jammy,jammy,now 21.0.0-1 all
OpenSSL: OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

3) Expected result
The carbon cache should start if all dependent packages are from the same 
repository.

4) observed issue
Since the last OpenSSL update this week via the ubuntu repository, the 
carbon-cache service is not starting any more.
The error message is:

Jun  7 09:22:59 icinga2 systemd[1]: Starting Graphite Carbon Cache...
Jun  7 09:23:00 icinga2 carbon-cache[191566]: Traceback (most recent call last):
Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File "/usr/bin/carbon-cache", 
line 28, in <module>
Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from carbon.util import 
run_twistd_plugin  # noqa
Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/lib/python3/dist-packages/carbon/util.py", line 19, in <module>
Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from OpenSSL import SSL
Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/local/lib/python3.10/dist-packages/OpenSSL/__init__.py", line 8, in 
<module>
Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from OpenSSL import crypto, 
SSL
Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/local/lib/python3.10/dist-packages/OpenSSL/crypto.py", line 3268, in 
<module>
Jun  7 09:23:00 icinga2 carbon-cache[191566]:     
_lib.OpenSSL_add_all_algorithms()
Jun  7 09:23:00 icinga2 carbon-cache[191566]: AttributeError: module 'lib' has 
no attribute 'OpenSSL_add_all_algorithms'

According to 
https://levelup.gitconnected.com/fix-attributeerror-module-lib-has-no-attribute-openssl-521a35d83769
 the python module pyopenssl needs to be > 22.1.0
Ubuntu 22.04 LTS ships with version 22.0.0.
It seems, that the python3-openssl is not working well with the most recent 
openSSL version of Ubuntu 22.04.

I could update pyopenssl with pip but this might break the update
mechanism of apt.

Any suggestions are appreciated, thanks!
If I can provide further information, just let me know.

** Affects: openssl (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to openssl in Ubuntu.
https://bugs.launchpad.net/bugs/2023165

Title:
  carbon-cache not starting because python3-openssl throws error
  _lib.OpenSSL_add_all_algorithms()

Status in openssl package in Ubuntu:
  New

Bug description:
  1) ubuntu release:
  We are using Ubuntu 22.04 LTS:
  Description:    Ubuntu 22.04.2 LTS
  Release:        22.04

  2) packages:
  We have the following packages installed:
  graphite-carbon/jammy,jammy,now 1.1.7-1 all
  python3-openssl/jammy,jammy,now 21.0.0-1 all
  OpenSSL: OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

  3) Expected result
  The carbon cache should start if all dependent packages are from the same 
repository.

  4) observed issue
  Since the last OpenSSL update this week via the ubuntu repository, the 
carbon-cache service is not starting any more.
  The error message is:

  Jun  7 09:22:59 icinga2 systemd[1]: Starting Graphite Carbon Cache...
  Jun  7 09:23:00 icinga2 carbon-cache[191566]: Traceback (most recent call 
last):
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File "/usr/bin/carbon-cache", 
line 28, in <module>
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from carbon.util import 
run_twistd_plugin  # noqa
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/lib/python3/dist-packages/carbon/util.py", line 19, in <module>
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from OpenSSL import SSL
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/local/lib/python3.10/dist-packages/OpenSSL/__init__.py", line 8, in 
<module>
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:     from OpenSSL import crypto, 
SSL
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:   File 
"/usr/local/lib/python3.10/dist-packages/OpenSSL/crypto.py", line 3268, in 
<module>
  Jun  7 09:23:00 icinga2 carbon-cache[191566]:     
_lib.OpenSSL_add_all_algorithms()
  Jun  7 09:23:00 icinga2 carbon-cache[191566]: AttributeError: module 'lib' 
has no attribute 'OpenSSL_add_all_algorithms'

  According to 
https://levelup.gitconnected.com/fix-attributeerror-module-lib-has-no-attribute-openssl-521a35d83769
 the python module pyopenssl needs to be > 22.1.0
  Ubuntu 22.04 LTS ships with version 22.0.0.
  It seems, that the python3-openssl is not working well with the most recent 
openSSL version of Ubuntu 22.04.

  I could update pyopenssl with pip but this might break the update
  mechanism of apt.

  Any suggestions are appreciated, thanks!
  If I can provide further information, just let me know.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssl/+bug/2023165/+subscriptions


-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : touch-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to