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

lets encrypt broken, no logs, no error message

Open PavelNiedoba opened this issue 1 year ago • 4 comments

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

After fresh install, i logged in on port 81, changed password. Then i created proxy host (domain 4.level proxy.saas.mydomain.com) and enabled https:

image

I got error message, tried to debug it. All log files are empty:

image

docker logs gives:

[3/31/2023] [7:52:02 PM] [SSL      ] › ℹ  info      Requesting Let'sEncrypt certificates for Cert #2: proxy.sc.chainblock.it
[3/31/2023] [7:52:02 PM] [SSL      ] › ℹ  info      Command: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-2" --agree-tos --authenticator webroot --email "[email protected]" --preferred-challenges "dns,http" --domains "proxy.sc.chainblock.it" 
[3/31/2023] [7:52:05 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_2.conf
[3/31/2023] [7:52:05 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[3/31/2023] [7:52:11 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-2" --agree-tos --authenticator webroot --email "[email protected]" --preferred-challenges "dns,http" --domains "proxy.saas.domain.com" 
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
Some challenges have failed.
Ask for help or search for solutions at https://community.letsencrypt.org. See the logfile /tmp/letsencrypt-log/letsencrypt.log or re-run Certbot with -v for more details.

lets encrypt log files should be persistent outside container

Nginx Proxy Manager Version latest as of today

Operating System ubuntu 22.04

Additional context i liked npm, because it could do letsencrypt out of the box

PavelNiedoba avatar Mar 31 '23 20:03 PavelNiedoba

Hello!I have same problem Ubuntu 20.04 latest version of Nginx Proxy Manager

ashimov avatar Apr 03 '23 11:04 ashimov

I figured out, that 4th level domain is cloudflare problem. Missing logs are NPM problems. Fixing docker and compose files is not difficult. Good software should produce reasonable logs.

PavelNiedoba avatar Apr 03 '23 14:04 PavelNiedoba

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

github-actions[bot] avatar Jan 23 '24 01:01 github-actions[bot]

I have same problem, Ubuntu 20.04 latest version of Nginx Proxy Manager

sirjager avatar Feb 02 '24 11:02 sirjager