It looks like this may still be a problem in 18.04
Currently running snapd 2.58+18.04
when attempting to upgrade from maas 3.2.6 to maas 3.3
sudo snap refresh --channel=3.3 maas
2023-02-09T22:34:01Z INFO Waiting for "snap.maas.supervisor.service" to stop.
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
File "/snap/maas/25850/bin/maas", line 5, in <module>
from maascli import main
File "/snap/maas/25850/lib/python3.10/site-packages/maascli/__init__.py", line 10, in <module>
from maascli.parser import get_deepest_subparser, prepare_parser
File "/snap/maas/25850/lib/python3.10/site-packages/maascli/parser.py", line 11, in <module>
from maascli import api
File "/snap/maas/25850/lib/python3.10/site-packages/maascli/api.py", line 27, in <module>
from maascli import utils
File "/snap/maas/25850/lib/python3.10/site-packages/maascli/utils.py", line 15, in <module>
from OpenSSL import crypto
File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/__init__.py", line 8, in <module>
from OpenSSL import crypto, SSL
File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/crypto.py", line 17, in <module>
from OpenSSL._util import (
File "/snap/maas/25850/usr/lib/python3/dist-packages/OpenSSL/_util.py", line 6, in <module>
from cryptography.hazmat.bindings.openssl.binding import Binding
File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 189, in <module>
Binding.init_static_locks()
File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 163, in init_static_locks
cls._ensure_ffi_initialized()
File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 151, in _ensure_ffi_initialized
_openssl_assert(
File "/snap/maas/25850/usr/lib/python3/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 77, in _openssl_assert
raise InternalError(
cryptography.exceptions.InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https://github.com/pyca/cryptography/issues with information on how to reproduce this. ([_OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=310378599, lib=37, reason=103, reason_text=b'error:12800067:DSO support routines::could not load the shared library'), _OpenSSLErrorWithText(code=126615813, lib=15, reason=786693, reason_text=b'error:078C0105:common libcrypto routines::init fail')])
-----)
It looks like this may still be a problem in 18.04
Currently running snapd 2.58+18.04
when attempting to upgrade from maas 3.2.6 to maas 3.3
sudo snap refresh --channel=3.3 maas 09T22:34: 01Z INFO Waiting for "snap.maas. supervisor. service" to stop. maas/25850/ bin/maas" , line 5, in <module> maas/25850/ lib/python3. 10/site- packages/ maascli/ __init_ _.py", line 10, in <module> subparser, prepare_parser maas/25850/ lib/python3. 10/site- packages/ maascli/ parser. py", line 11, in <module> maas/25850/ lib/python3. 10/site- packages/ maascli/ api.py" , line 27, in <module> maas/25850/ lib/python3. 10/site- packages/ maascli/ utils.py" , line 15, in <module> maas/25850/ usr/lib/ python3/ dist-packages/ OpenSSL/ __init_ _.py", line 8, in <module> maas/25850/ usr/lib/ python3/ dist-packages/ OpenSSL/ crypto. py", line 17, in <module> maas/25850/ usr/lib/ python3/ dist-packages/ OpenSSL/ _util.py" , line 6, in <module> hazmat. bindings. openssl. binding import Binding maas/25850/ usr/lib/ python3/ dist-packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", line 189, in <module> init_static_ locks() maas/25850/ usr/lib/ python3/ dist-packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", line 163, in init_static_locks _ensure_ ffi_initialized () maas/25850/ usr/lib/ python3/ dist-packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", line 151, in _ensure_ ffi_initialized assert( maas/25850/ usr/lib/ python3/ dist-packages/ cryptography/ hazmat/ bindings/ openssl/ binding. py", line 77, in _openssl_assert exceptions. InternalError: Unknown OpenSSL error. This error is commonly encountered when another library is not cleaning up the OpenSSL error stack. If you are using cryptography with another library that uses OpenSSL try disabling it before reporting a bug. Otherwise please file an issue at https:/ /github. com/pyca/ cryptography/ issues with information on how to reproduce this. ([_OpenSSLError WithText( code=310378599, lib=37, reason=103, reason_ text=b' error:12800067: DSO support routines::could not load the shared library'), _OpenSSLErrorWi thText( code=310378599, lib=37, reason=103, reason_ text=b' error:12800067: DSO support routines::could not load the shared library'), _OpenSSLErrorWi thText( code=126615813, lib=15, reason=786693, reason_ text=b' error:078C0105: common libcrypto routines::init fail')])
2023-02-
error: cannot perform the following tasks:
- Run post-refresh hook of "maas" snap if present (run hook "post-refresh":
-----
Traceback (most recent call last):
File "/snap/
from maascli import main
File "/snap/
from maascli.parser import get_deepest_
File "/snap/
from maascli import api
File "/snap/
from maascli import utils
File "/snap/
from OpenSSL import crypto
File "/snap/
from OpenSSL import crypto, SSL
File "/snap/
from OpenSSL._util import (
File "/snap/
from cryptography.
File "/snap/
Binding.
File "/snap/
cls.
File "/snap/
_openssl_
File "/snap/
raise InternalError(
cryptography.
-----)