Nerdy Drunk

Drunk on technology

User Tools

Site Tools


ubiquiti:uisp

Ubiquiti UISP

Let's Encrypt SSL Certificate

When attempting to renew the Let's Encrypt SSL certificate I received an error message similar to the following.

Traceback (most recent call last):
  File "/usr/bin/certbot", line 5, in <module>
    from certbot.main import main
  File "/usr/lib/python3.8/site-packages/certbot/main.py", line 2, in <module>
    from certbot._internal import main as internal_main
  File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 28, in <module>
    from certbot._internal import account
  File "/usr/lib/python3.8/site-packages/certbot/_internal/account.py", line 19, in <module>
    from acme.client import ClientBase  # pylint: disable=unused-import
ImportError: cannot import name 'ClientBase' from 'acme.client' (/usr/lib/python3.8/site-packages/acme/client.py)

I resolved this by connecting to the UISP nginx docker container and updating the certbot and acme python packages.

host
docker container ls
docker exec -it unms-nginx sh
container
python3 -m pip list
python3 -m pip install --upgrade certbot

After updating I no longer received the error message and was able to successfully renew my Let's Encrypt SSL certificate.

ubiquiti/uisp.txt · Last modified: 2023/01/30 18:04 by tingalls