NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.38k stars 2.71k forks source link

Why I have this error when create certificate #895

Open Jamyz opened 3 years ago

Jamyz commented 3 years ago
Error: Command failed: /usr/bin/certbot certonly --non-interactive --config "/etc/letsencrypt.ini" --cert-name "npm-20" --agree-tos --email "j***************@gmail.com" --preferred-challenges "dns,http" --domains "haproxy.mydomain.com" 
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator webroot, Installer None
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for haproxy.mydomain.com
Using the webroot path /data/letsencrypt-acme-challenge for all unmatched domains.
Waiting for verification...
Challenge failed for domain haproxy.mydomain.com
http-01 challenge for haproxy.mydomain.com
Cleaning up challenges
Some challenges have failed.

    at ChildProcess.exithandler (child_process.js:308:12)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1051:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
ragaimeena commented 3 years ago

I have the same issue. The container becomes nonfunctional then. No one is answering this question, it has been posted so many times in different forums/threads.

patricklind commented 3 years ago

Traceback (most recent call last): File "/usr/bin/certbot", line 11, in load_entry_point('certbot==1.4.0', 'console_scripts', 'certbot')() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 490, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2862, in load_entry_point return ep.load() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2462, in load return self.resolve() File "/usr/lib/python3.8/site-packages/pkg_resources/init.py", line 2468, in resolve module = import(self.module_name, fromlist=['name'], level=0) File "/usr/lib/python3.8/site-packages/certbot/main.py", line 2, in from certbot._internal import main as internal_main File "/usr/lib/python3.8/site-packages/certbot/_internal/main.py", line 16, in from certbot import crypto_util File "/usr/lib/python3.8/site-packages/certbot/crypto_util.py", line 30, in from certbot import util File "/usr/lib/python3.8/site-packages/certbot/util.py", line 23, in from certbot._internal import constants File "/usr/lib/python3.8/site-packages/certbot/_internal/constants.py", line 6, in from acme import challenges File "/usr/lib/python3.8/site-packages/acme/challenges.py", line 11, in import requests File "/usr/lib/python3.8/site-packages/requests/init.py", line 113, in from . import packages File "/usr/lib/python3.8/site-packages/requests/packages.py", line 7, in locals()[package] = import(package) File "/usr/lib/python3.8/site-packages/idna/init.py", line 2, in from .core import * File "/usr/lib/python3.8/site-packages/idna/core.py", line 1, in from . import idnadata ImportError: cannot import name 'idnadata' from partially initialized module 'idna' (most likely due to a circular import) (/usr/lib/python3.8/site-packages/idna/init.py)

jessyxavier commented 3 years ago

@Jamyz @ragaimeena I ran in the same problem and I ended up creating a SSL wildcard certificate and works out fine. Just follow the instructions here at time 4:35 https://www.youtube.com/watch?v=TBGOJA27m_0&t=343s I hope this helps

github-actions[bot] commented 8 months ago

Issue is now considered stale. If you want to keep it open, please comment :+1: