[Bug 2023165] Re: carbon-cache not starting because python3-openssl throws error _lib.OpenSSL_add_all_algorithms()
Simon Chopin
2023165 at bugs.launchpad.net
Wed Jun 7 15:30:16 UTC 2023
Quoting Thomas Hoffmann (2023-06-07 16:39:03)
> The repo file /usr/lib/python3/dist-packages/OpenSSL/crypto.py has the same
> reference to OpenSSL_add_all_algorithms but it doesn't seem to cause a problem.
That's because it uses the distro python3-cryptography, which provides
the problematic function.
> @Simon: I also removed "cryptography" via pip because it was installed from the Repo and by pip.
> Not sure which program caused it, but everything is fine now.
>
> Thank you very much for your quick help!
> Much appreciated!
You're welcome :)
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, 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:
Invalid
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
More information about the foundations-bugs
mailing list