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

SSL | Intern error

Open TheDoDoo opened this issue 3 years ago • 29 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

Describe the bug

Nginx Proxy Manager Version

Nginx Proxy Manager Version v2.10.2

To Reproduce image image image image image image

Expected behavior

ERROR form Docker Nginx Proxy Manager

[5/5/2023] [10:17:33 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_5.conf
[5/5/2023] [10:17:33 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:17:33 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-5" --agree-tos --authenticator webroot --email "@outlook.de" --preferred-challenges "dns,http" --domains "portainer.the-dodo.de" 
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.
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/5/2023] [10:29:06 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}
[5/5/2023] [10:29:06 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:29:11 PM] [SSL      ] › ℹ  info      Requesting Let'sEncrypt certificates for Cert #6: portainer.the-dodo.de
[5/5/2023] [10:29:11 PM] [SSL      ] › ℹ  info      Command: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-6" --agree-tos --authenticator webroot --email "@outlook.de" --preferred-challenges "dns,http" --domains "portainer.the-dodo.de" 
[5/5/2023] [10:29:12 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_6.conf
[5/5/2023] [10:29:12 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[5/5/2023] [10:29:12 PM] [Express  ] › ⚠  warning   Command failed: certbot certonly --config "/etc/letsencrypt.ini" --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-6" --agree-tos --authenticator webroot --email "@outlook.de" --preferred-challenges "dns,http" --domains "portainer.the-dodo.de" 
Saving debug log to /tmp/letsencrypt-log/letsencrypt.log
An unexpected error occurred:
Error creating new order :: too many failed authorizations recently: see https://letsencrypt.org/docs/failed-validation-limit/
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.

In /tmp/letsencrypt-log/letsencrypt.log is nothing

Operating System Ubuntu 20

TheDoDoo avatar May 05 '23 22:05 TheDoDoo

Git exactly the same error, here. Looking at letsencrypt.log says that let's encrypt cannot access the challenge. Very strange. @TheDoDoo : I think you see nothing in "/tmp/letsencrypt-log/letsencrypt.log" because the file is in the docker path : /var/lib/docker/overlay2/[yourcontainerID]/merged/var/log/letsencrypt/letsencrypt.log. Looke duplicate with #2881 with a interesting workaround (not working for me).

I guess it's done until a patch...

eladent avatar May 07 '23 16:05 eladent

Ive been having the same issue for a couple months now also, not sure what the problem is. Cant generate any certs only difference is im using unraid.

RobustMarker avatar May 11 '23 09:05 RobustMarker

TheDoDoo avatar May 24 '23 22:05 TheDoDoo

Can't add custom certificate either, same error.

[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf"
}
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}

then the hostfile disappear, server offline.

lxzmads avatar May 29 '23 09:05 lxzmads

This may also be the same issue described in #2873 (I am also experiencing this issue still, running unRAID, workaround from #2881 not working for me.)

Ruthalas avatar May 29 '23 21:05 Ruthalas

Can't add custom certificate either, same error.

[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf"
}
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/1.conf.err
[5/29/2023] [9:53:43 AM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/1.conf.err"
}

then the hostfile disappear, server offline.

I am getting the exact same error

cacpmw avatar Jun 19 '23 21:06 cacpmw

Has anyone solved this issue?

Duplicate relation "access_list" in a relation expression. You should use "a.[b, c]" instead of "[a.b, a.c]". This will cause an error in objection 2.0 [6/20/2023] [9:52:40 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/4.conf [6/20/2023] [9:52:40 PM] [Nginx ] › ⬤ debug Could not delete file: { "errno": -2, "syscall": "unlink", "code": "ENOENT", "path": "/data/nginx/proxy_host/4.conf" } [6/20/2023] [9:52:40 PM] [Nginx ] › ℹ info Reloading Nginx [6/20/2023] [9:52:55 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/4.conf [6/20/2023] [9:52:55 PM] [Nginx ] › ℹ info Reloading Nginx [6/20/2023] [9:54:50 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf [6/20/2023] [9:54:50 PM] [Nginx ] › ⬤ debug Could not delete file: { "errno": -2, "syscall": "unlink", "code": "ENOENT", "path": "/data/nginx/proxy_host/5.conf" }

aj1322001 avatar Jun 20 '23 22:06 aj1322001

I have the exact same problem... Don't know why this was closed since many have the same problem.

Solander avatar Jun 21 '23 19:06 Solander

@aj1322001 If you understand this enough to articulate the issue clearly, would you be willing to create a new issue mentioning this?

Ruthalas avatar Jun 22 '23 03:06 Ruthalas

I'm having exactly this issue after a clean install. I also had this issue after upgrading from an earlier version.

GitTworn avatar Jun 22 '23 07:06 GitTworn

Hello,

Same here ..

thomasbonsirven avatar Jul 02 '23 14:07 thomasbonsirven

Hi, same problem here :-(

DannenmannA avatar Jul 15 '23 20:07 DannenmannA

Is anyone not having this issue? I have done a clean install on version 2.9.22 and 2.10.3 and both have this issue. Its working without SSL.

GitTworn avatar Jul 16 '23 10:07 GitTworn

Hello @GitTworn

I think is a problem with Ubuntu/Debian, but i dont Knox why. I think this, because i try on Fedora, Centos, Alpine is work. On fresh installé Ubuntu 18.04 to 22.04 and Debian Buster not work, same problem.

So, on alpine, i have a error, with a file not deleting, but i have my ssl certificat.

If you use docker-compose, set network to host. Just for try.

thomasbonsirven avatar Jul 16 '23 18:07 thomasbonsirven

Having the same issue since i reinstalled my server today and redeployed my dockers.

Graxo avatar Jul 31 '23 20:07 Graxo

Having the same issue since i reinstalled my server today and redeployed my dockers.

What is your os ?

thomasbonsirven avatar Aug 01 '23 05:08 thomasbonsirven

For the past 2-3 days I've been having so many issues (after fresh install). Finally after setting up SSL and scrolling up in logs, I saw the same issue. Not sure what's causing this but yep, it's causing too many error after setting SSL and then adding host(s), it no longer load nginx proxy manager dashboard and throws 500 and all I see in logs is a bunch of Could not delete file (ssl) and Could not delete file (for all the host(s) I've added).

Neeham avatar Aug 02 '23 02:08 Neeham

image Same issue here with a custom SSL certificate.

ynixt avatar Aug 03 '23 05:08 ynixt

I have same problem, on Ubuntu host and Alpine. But in Alpine, it's work.

I dont now if really this the problem.

I thinks is a conf of Docker-Compose or Docker engine, maybe docker host network... i dont know

But, in Alpine, Fedora and Redhat i have same error, but the certificat ( custom or lets'encrypt) is perfect work.

thomasbonsirven avatar Aug 03 '23 05:08 thomasbonsirven

I got this error for the first time after an upgrade, however, when downgrading the error persisted, even after a fresh install of an earlier working version. So I suspect in the meantime, docker got updated and it might be a docker related issue.

GitTworn avatar Aug 03 '23 14:08 GitTworn