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

Internal Server Error

Open Sum4196 opened this issue 4 years ago • 4 comments

This issue seems to come up when an SSL certificate is tied to proxy_host entries and the SSL certificate is removed. The text below helped me get around this issue. However, I think it would be a very simple thing to implement to warn the user or simply not allow the removal of an SSL certificate if it's in use. I hope this helps someone else or possibly starts the process to a solution for everyone. Thank you @BetterToAutomateTheWorld for your response below as it helped me get back up and running without having to start over.

""" Solution find in my case :

  • copy pasting a nmp-xx certificates folder to the one which nginx is looking at
  • nginx -t
  • restart container

(anyway, this issue in basically from the root because we don't use the certificate for a specific domain, or a domain for a specific certificate, I will guess a deletion has gone wrong somewhere)

I will guess the best way to fix it in a clean way would be to delete all domains, certificates, and recreate all from zero/root...

PS : didn't know where the occurrence of the certificate was in my configuration in my case, a find / grep -r didn't return anything

Originally posted by @BetterToAutomateTheWorld in https://github.com/NginxProxyManager/nginx-proxy-manager/issues/133#issuecomment-670184450 """

Sum4196 avatar Aug 02 '22 05:08 Sum4196

This issue is a huge headache to face in production, really poisons the water for using NPM for letsencrypt if a massive bug like this can occur. I deleted my certs because that's the only way I can seemingly get around the "another instance of certbot is running" bug and now here I am pulling my hair out at 4:30pm because for some reason today this happens can't even get to the login page because nginx refuses to start. Using NPM v2.9.19

Edit: The above workaround works, copying another site's npm certificates folder to the one that is missing but really it shouldn't come down to that. For now I'll be changing over to using a wildcard cert generated outside of NPM until the issue is closed. Hopefully maintainers are understanding that this is a show-stopping bug and refactor the SSL/Certbot components as having to manually bash into a container to just make it work is exceedingly tedious and sort-of pours water on the ease of using a UI overlay like NPM.

DerfOh avatar Feb 02 '23 21:02 DerfOh

Estou sofrendo o mesmo problema, mas por algum motivo não gera nenhum log, nem no console, e continua retornando um "500 internal server error"

andeerc avatar Jan 09 '24 12:01 andeerc

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

github-actions[bot] avatar Aug 06 '24 01:08 github-actions[bot]

Issue was closed due to inactivity.

github-actions[bot] avatar Aug 15 '25 02:08 github-actions[bot]