I have come across a problem when my MailInABox installation tries to create a TLS certificate for a new site, or when I try to create the certificate from the ‘Provision’ button on /admin. I have followed the ‘Something Went Wrong’ section. I have got the ‘all clear’ from the system status checks. This is the first time that I have had this problem. The last time a certificate was renewed for older sites was before the latest version of MiaB (v0.26) was installed two days ago.
The message found at the end of the output when running ‘sudo mailinabox’ and before the ‘Your Mail-in-a-Box is running’ is:
Installing Mail-in-a-Box system management daemon…
Installing Munin (system monitoring)…
Incorrect username or password
Incorrect username or password
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 331, in provision_certificates
logger=my_logger)
File “/usr/local/lib/mailinabox/env/lib/python3.4/site-packages/free_tls_certificates/client.py”, line 64, in issue_certificate
agree_to_tos_url, validation_method, acme_server, logger)
File “/usr/local/lib/mailinabox/env/lib/python3.4/site-packages/free_tls_certificates/client.py”, line 112, in validate_domain_ownership
acme_server=acme_server)
File “/usr/local/lib/mailinabox/env/lib/python3.4/site-packages/free_tls_certificates/client.py”, line 314, in create_client
key = load_or_generate_private_key(account_key_file, log)
File “/usr/local/lib/mailinabox/env/lib/python3.4/site-packages/free_tls_certificates/client.py”, line 337, in load_or_generate_private_key
from acme import jose
ImportError: cannot import name 'jose’
The management daemon refused access. The API key file may be out of sync. Try ‘service mailinabox restart’.
I tried ‘service mailinabox restart’ without success.
When I try to create the certificate from the ‘Provision’ button on /admin there is a message in syslog that ends in the same ImportError from the same function as above.
I have searched this discussion forum without finding anything similar. I’d appreciate help in finding the solution to this problem.