NginxProxyManager / nginx-proxy-manager

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

lets encrypt broken, no logs, no error message #2787

Open PavelNiedoba opened 1 year ago

PavelNiedoba commented 1 year ago

Checklist

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 "pavel@simplecoin.eu" --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 "pavel@simplecoin.eu" --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

ashimov commented 1 year ago

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

PavelNiedoba commented 1 year ago

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.

github-actions[bot] commented 9 months ago

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

sirjager commented 9 months ago

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

github-actions[bot] commented 4 days ago

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