mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-26 01:45:54 +03:00
[GH-ISSUE #3111] GoDaddy DNS Challenge: ImportError: cannot import name 'ClientBase' from 'acme.client' #2107
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#2107
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 @alexsalex on GitHub (Aug 11, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3111
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Nginx Proxy Manager Version
2.10.4
@alexsalex commented on GitHub (Aug 14, 2023):
Took it from here:
https://community.letsencrypt.org/t/problem-when-adding-a-certificate-on-nginx/194596
Yes, the issue is that Certbot was installed using global pip on this server. Installing Python packages globally like this is very brittle and we strongly recommend that you don't do it.
Alternative installation methods are:
The Certbot snap 18
Installing using pip via a virtual environment 19
More precisely, the versions of these Python modules need to be in sync:
acme
certbot
certbot-nginx
@GDowning14 commented on GitHub (Aug 16, 2023):
This appears to be the same issues as noted in #3103
@alexsalex commented on GitHub (Oct 4, 2023):
Fixed with updated certbot-dns-godaddy
Login to the docker container and run:
pip install --upgrade certbot certbot-dns-godaddy@NetRat88 commented on GitHub (Oct 24, 2023):
This workaround unfortunately doesn't fix the problem :-(
I also tried one of the latest github-pr images (jc21/nginx-proxy-manager:github-pr-3263) from docker hub but still have the error after trieing to add a GoDaddy SSL certificate:
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)
@alexsalex commented on GitHub (Nov 13, 2023):
Try this:
pip install --upgrade certbot==2.1.0 certbot-dns-godaddyworks for me.