Upgraded to 23a version, admin console doesnt load css anymore

Hi everyone, I just updated mailinabox from 16 to 23a. After updating, the admin console became broken::

Any ideas on how to resolve this? I also opened the console just in case it can help. Thanks!

Jayce

This has todo with this commit:

Did you get any error messages during the setup?
Can you try running the setup again?
Is there anything in this directory /usr/local/lib/mailinabox/vendor/assets

That showed the network connections, but not the console log. When my css is broken, there is often something that shows up in the console log. Click on that Console button right below that “This is MIAB” link in your picture, then reload the page.

hi, after re running the upgrade, getting this error:

Installing Munin (system monitoring)…
cffi library ‘_openssl’ has no function, constant or global variable named ‘Cryptography_HAS_SCT’

500 Internal Server Error

Internal Server Error

The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there is an error in the application.

Traceback (most recent call last): File "management/ssl_certificates.py", line 803, in provision_certificates_cmdline() File "management/ssl_certificates.py", line 446, in provision_certificates_cmdline status = provision_certificates(env, agree_to_tos_url=agree_to_tos_url, logger=my_logger, force_domains=force_domains, show_extended_problems=show_extended_problems) File "management/ssl_certificates.py", line 265, in provision_certificates import requests.exceptions File "/usr/local/lib/python3.4/dist-packages/requests/__init__.py", line 84, in from urllib3.contrib import pyopenssl File "/usr/local/lib/python3.4/dist-packages/urllib3/contrib/pyopenssl.py", line 46, in import OpenSSL.SSL File "/usr/local/lib/python3.4/dist-packages/OpenSSL/__init__.py", line 8, in from OpenSSL import rand, crypto, SSL File "/usr/local/lib/python3.4/dist-packages/OpenSSL/rand.py", line 10, in from OpenSSL._util import ( File "/usr/local/lib/python3.4/dist-packages/OpenSSL/_util.py", line 6, in from cryptography.hazmat.bindings.openssl.binding import Binding File "/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 156, in Binding.init_static_locks() File "/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 137, in init_static_locks cls._ensure_ffi_initialized() File "/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 124, in _ensure_ffi_initialized cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES) File "/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py", line 84, in build_conditional_library if not getattr(lib, condition): AttributeError: cffi library '_openssl' has no function, constant or global variable named 'Cryptography_HAS_MEM_FUNCTIONS'

Your Mail-in-a-Box is running.

Please log in to the control panel for further instructions at:

Traceback (most recent call last):
File “management/status_checks.py”, line 993, in
ssl_certificates = get_ssl_certificates(env)
File “/root/mailinabox/management/ssl_certificates.py”, line 46, in get_ssl_certificates
pem = load_pem(load_cert_chain(fn)[0])
File “/root/mailinabox/management/ssl_certificates.py”, line 763, in load_pem
return load_pem_x509_certificate(pem, default_backend())
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/backends/init.py”, line 15, in default_backend
from cryptography.hazmat.backends.openssl.backend import backend
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/backends/openssl/init.py”, line 7, in
from cryptography.hazmat.backends.openssl.backend import backend
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/backends/openssl/backend.py”, line 53, in
from cryptography.hazmat.bindings.openssl import binding
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 156, in
Binding.init_static_locks()
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 137, in init_static_locks
cls._ensure_ffi_initialized()
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 124, in _ensure_ffi_initialized
cls.lib = build_conditional_library(lib, CONDITIONAL_NAMES)
File “/usr/local/lib/python3.4/dist-packages/cryptography/hazmat/bindings/openssl/binding.py”, line 84, in build_conditional_library
if not getattr(lib, condition):
AttributeError: cffi library ‘_openssl’ has no function, constant or global variable named ‘Cryptography_HAS_EVP_PKEY_DHX’
https://my.ip.address/admin

You will be alerted that the website has an invalid certificate. Check that

There were some update instructions for going to .21, see Version 0.21 is posted

1 Like

Thats it! Thanks now it works!

I encounter the same problem, what exactly did the trick for you?
There are some failure scenarios with different fixes described at the linked thread.

Best,
kamillo

Doing this specifically:

sudo rm -rf /usr/local/lib/python3.4/dist-packages/cryptography*
sudo mailinabox

After that it worked as expected.