[GH-ISSUE #3111] GoDaddy DNS Challenge: ImportError: cannot import name 'ClientBase' from 'acme.client' #2107

Closed
opened 2026-02-26 07:34:03 +03:00 by kerem · 5 comments
Owner

Originally created by @alexsalex on GitHub (Aug 11, 2023).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3111

Checklist

  • Have you pulled and found the error with jc21/nginx-proxy-manager:latest docker image?
    • Yes
  • Are you sure you're not using someone else's docker image?
    • Yes
  • Have you searched for similar issues (both open and closed)?
    • Yes

Describe the bug

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-12" --agree-tos --email "piu@piu.com" --domains "*.piu.red,piu.red" --authenticator dns-godaddy --dns-godaddy-credentials "/etc/letsencrypt/credentials/credentials-12" --dns-godaddy-propagation-seconds 120
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)

    at ChildProcess.exithandler (node:child_process:402:12)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Socket. (node:internal/child_process:458:11)
    at Socket.emit (node:events:513:28)
    at Pipe. (node:net:301:12)

Nginx Proxy Manager Version

2.10.4

Originally created by @alexsalex on GitHub (Aug 11, 2023). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3111 **Checklist** - Have you pulled and found the error with `jc21/nginx-proxy-manager:latest` docker image? - Yes - Are you sure you're not using someone else's docker image? - Yes - Have you searched for similar issues (both open and closed)? - Yes **Describe the bug** <!-- A clear and concise description of what the bug is. --> ``` Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-12" --agree-tos --email "piu@piu.com" --domains "*.piu.red,piu.red" --authenticator dns-godaddy --dns-godaddy-credentials "/etc/letsencrypt/credentials/credentials-12" --dns-godaddy-propagation-seconds 120 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) at ChildProcess.exithandler (node:child_process:402:12) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1100:16) at Socket. (node:internal/child_process:458:11) at Socket.emit (node:events:513:28) at Pipe. (node:net:301:12) ``` **Nginx Proxy Manager Version** <!-- What version of Nginx Proxy Manager is reported on the login page? --> 2.10.4
kerem 2026-02-26 07:34:03 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@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

<!-- gh-comment-id:1678069049 --> @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](https://certbot.eff.org/instructions?ws=other&os=snap) [Installing using pip via a virtual environment 19](https://certbot.eff.org/instructions?ws=other&os=pip) More precisely, the versions of these Python modules need to be in sync: acme certbot certbot-nginx
Author
Owner

@GDowning14 commented on GitHub (Aug 16, 2023):

This appears to be the same issues as noted in #3103

<!-- gh-comment-id:1680758879 --> @GDowning14 commented on GitHub (Aug 16, 2023): This appears to be the same issues as noted in #3103
Author
Owner

@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

<!-- gh-comment-id:1747501527 --> @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`
Author
Owner

@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)

<!-- gh-comment-id:1776870774 --> @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 <module> from certbot.main import main File "/opt/certbot/lib/python3.7/site-packages/certbot/main.py", line 6, in <module> from certbot._internal import main as internal_main File "/opt/certbot/lib/python3.7/site-packages/certbot/_internal/main.py", line 28, in <module> from certbot import crypto_util File "/opt/certbot/lib/python3.7/site-packages/certbot/crypto_util.py", line 42, in <module> from certbot import interfaces File "/opt/certbot/lib/python3.7/site-packages/certbot/interfaces.py", line 21, in <module> from acme.client import ClientBase ImportError: cannot import name 'ClientBase' from 'acme.client' (/opt/certbot/lib/python3.7/site-packages/acme/client.py)
Author
Owner

@alexsalex commented on GitHub (Nov 13, 2023):

Try this:
pip install --upgrade certbot==2.1.0 certbot-dns-godaddy
works for me.

<!-- gh-comment-id:1808760195 --> @alexsalex commented on GitHub (Nov 13, 2023): Try this: `pip install --upgrade certbot==2.1.0 certbot-dns-godaddy` works for me.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2107
No description provided.