mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #3245] Cannot import 'ClientBase' from 'acme.client' when trying to renew cert(s) #2193
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#2193
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @phillipmcmahon on GitHub (Oct 7, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3245
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
When trying to renew existing certs after updating to 2.10.4 get an internal error. Logs show the following
[10/7/2023] [10:53:22 AM] [SSL ] › ℹ info Renewing Let'sEncrypt certificates via ClouDNS for Cert #17: *.phillipmcmahon.com, phillipmcmahon.com
[10/7/2023] [10:53:22 AM] [SSL ] › ℹ info Command: certbot renew --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-17" --disable-hook-validation --no-random-sleep-on-renew
[10/7/2023] [10:53:22 AM] [Express ] › ⚠ warning Command failed: certbot renew --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-17" --disable-hook-validation --no-random-sleep-on-renew
Traceback (most recent call last):
File "/usr/bin/certbot", line 5, in
from certbot.main import main
File "/opt/certbot/lib/python3.7/site-packages/certbot/main.py", line 6, in
from certbot._internal import main as internal_main
File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 28, in
from certbot import crypto_util
File "/opt/certbot/lib/python3.7/site-packages/certbot/crypto_util.py", line 42, in
from certbot import interfaces
File "/opt/certbot/lib/python3.7/site-packages/certbot/interfaces.py", line 21, in
from acme.client import ClientBase
ImportError: cannot import name 'ClientBase' from 'acme.client' (/opt/certbot/lib/python3.7/site-packages/acme/client.py)
Nginx Proxy Manager Version
2.10.4
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Certificate renews as expected
Screenshots
Operating System
via Docker
Additional context
N/A
@decole commented on GitHub (Oct 9, 2023):
I have this bug too.
@NetRat88 commented on GitHub (Oct 24, 2023):
Also same bug for me. Found out on reddit a possible workaroung. Replace acme==1.32.0 seems to make it work on Godaddy DNS but don'nt know exactly where and how and how I can made this change persistant?! Any idea?
@ghost commented on GitHub (Oct 26, 2023):
I also have this issue. I'm also using ClouDNS with NginxProxyManager in a docker container on my unraid
@mfslena commented on GitHub (Oct 30, 2023):
Anyone found a solution? I'm having the same problem.
@Syirrus commented on GitHub (Nov 13, 2023):
I have this same error. Is there a solution for the issue?
@ismxilxrif commented on GitHub (Dec 9, 2023):
for those using the direct setup, not docker, this might work
i don't know what's the issue, i created a new virtual environment inside my home directory (non-root), and link /usr/bin/certbot to that new venv, and the problem's solved, note bcs of wildcard issue, i used certbot-dns-godaddy==2.6.0
it's just my 2 cents, but it might help some folks out there, good luck!
this works for godaddy, so it might work or break other dns plugins, so be careful from here, haven't tested other plugins but it should work, plugins that are directly supported by certbot eg. cloudflare, shouldn't be an isssue, it's just that 3rd party plugins are having these problems i assume
here we go.
as non root, execute:
then re run the cert process again
@SNR-Tech-Bytes commented on GitHub (Dec 16, 2023):
for those of you in docker I seem to have fixed this using some information I found on reddit
Note I'm using godaddy DNS challenge
run the following
docker compose pswhich will will spit out your list of dockers, whatever your nginx proxy manager is named put that in the following command
docker exec [your_docker_name_no_Braces] /bin/sh -c "/opt/certbot/bin/pip install acme==1.32.0"@Ragziesoft commented on GitHub (Dec 21, 2023):
I have a Godaddy registered domain. I am hosting a webpage of this domain on my home Raspberry pi using nginx proxy manager. While getting ssl with letsencrypt i get an "internal error". For the same setup when i tried with duckdns.org i successfully got the ssl certificates.
So to resolve this i tried the above mentioned solution.
First i got an error
I get this message "/bin/sh: /opt/certbot/bin/pip: not found".
Then i checked pip, i get message python3-pip is installed and is latest version.
Then i retry this command
docker exec 3d7e9aa4aaaa pip install acme==1.32.0 . the command is executed successfully. (nginx container id)
Then i try to reinstall ssl from letsencrypt for godaddy registered domain.
but i am still getting internal error even though the acme was changed to 1.32.0
@github-actions[bot] commented on GitHub (Jul 19, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@github-actions[bot] commented on GitHub (Aug 9, 2025):
Issue was closed due to inactivity.