docker-nginx-proxy-manager icon indicating copy to clipboard operation
docker-nginx-proxy-manager copied to clipboard

Internal Error

Open tuccler opened this issue 3 years ago • 4 comments

I get the "Internal Error" Message when I'm trying to renew my certificates. If i want to create a new certificate i get this:

Error: Command failed: certbot certonly --config "/etc/letsencrypt.ini" --cert-name "npm-19" --agree-tos --authenticator webroot --email "[email protected]" --preferred-challenges "dns,http" --domains "test.xxx.eu" An unexpected error occurred: pkg_resources.ContextualVersionConflict: (cryptography 36.0.0 (/usr/lib/python3.8/site-packages), Requirement.parse('cryptography<4,>=0.6'), {'msal'}) Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/tmpnej7ttvj/log or re-run Certbot with -v for more details.

at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:314:20) at maybeClose (internal/child_process.js:1022:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)

I'm not using the dns challenge at all. Also Port 80 is recheable from the internet and forwarded to nginx-proxy-manager.

How can I repair this? All my certificates are going to expire soon.

tuccler avatar Nov 29 '21 19:11 tuccler

Do you have a .local directory under the directory you mapped to /config ? If yes, try to remove/rename it and restart the container.

jlesage avatar Dec 08 '21 03:12 jlesage

Here the same error when I request a certificate with http challenge authentication. "Some challenges have failed." It seems the challenge cannot be read by ACME. If I put a test challenge file in the path /config/letsencrypt-acme-challenge/.well-known/acme-challenge I cannot open it with the browser.

If a add the following line to the advanced section of the proxy host

include conf.d/include/letsencrypt-acme-challenge.conf;

I can open the test file with a browser. So the network config seems ok. Still the same internal error when reqesting a certificate. Where is the challange path configured in the nginx configuration for the proxy host?

dhover avatar Apr 05 '22 13:04 dhover

@dhover I am facing the same error: "some challenges have failed". I can renew the certificates manually if I (temporary) disable the "Force SSL" option. It seems that npm is redirecting the LE-Challenges to Port 443.

Could you solve the problem in the meantime?

Luzl1 avatar Aug 06 '22 18:08 Luzl1

Could you solve the problem in the meantime?

Yes but there was nothing wrong with npm. It was a strange problem with the router.

dhover avatar Aug 07 '22 16:08 dhover