mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 17:35:52 +03:00
[GH-ISSUE #2081] When adding a new (http:80) proxy I get a SSL error in the log #1498
Labels
No labels
awaiting feedback
bug
cannot reproduce
dns provider request
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
need more info
no certbot plugin available
product-support
pull-request
question
stale
troll
upstream issue
v2
v2
v2
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nginx-proxy-manager-NginxProxyManager#1498
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jicho on GitHub (May 30, 2022).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/2081
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
When I add a new proxy, without SSL, I get the following error in my docker console output:
The fact that NPM can't find the fullchain.pem in the given folder (and the folder) is correct since this certificate isn't available anymore. I've deleted that certificate yesterday using the NPM GUI.
Nginx Proxy Manager Version
v2.9.18
To Reproduce
Steps I did before:
The result is that I now have
/etc/letsencrypt/live/npm-2/*and/etc/letsencrypt/live/npm-1/isn't on disk anymoreSteps to reproduce the behavior:
And on the docker CLI I get the error:
Expected behavior
I would expect that NPM created the proxy without any issues
Operating System
Additional context
I'm using NPM in combination with SQLite.
A little addition... I just thought about restarting the container, when I do that I get the following in the logs:
@jicho commented on GitHub (May 30, 2022):
I have some more info :)
I've looked into the configuration files and discovered that
/data/nginx/redirection_host/1.confstill had a link to the old certificate.Funny thing is that I've never added a certificate to that redirect. This is a www.example.com redirect to example.com.
So I assume that after deleting the
npm-1certificate this redirect wasn't updates/changed. Or some checks didn't discover this change?I've changed the config file by hand, restarted the container.
After that my the warnings on the CLI where gone for the certificate and the GUI allowed to add a new proxy (as expected)
@the1ts commented on GitHub (May 30, 2022):
I know of this issue having seen it myself. I'm not sure that software can fix this without human intervention since there are a few options that could be called a fix for the SSL cert removal from a current host:
At the moment, there doesn't appear to be any logic behind the warning dialogue, I get the same warning if the Cert is unused or used. I guess a nice way to fix would be some more logic behind that dialogue.
The flow could be:
If SSL cert is used in one or more hosts:
If SSL cert is not used in any hosts:
Any chance you can change the label to Enhancement?
@jicho commented on GitHub (May 30, 2022):
@the1ts happy to "hear" that I'm not the only one experiencing this. Your proposal sounds like a nice upgrade to the logic!
I can't change the label into Enhancement, but I assume the project owner can do for us 🤞
@scob7 commented on GitHub (Nov 18, 2022):
There is definitely a serious bug here. After initial setup I created a wild-card lets encrypt cert with no issue. Then I deleted the wildcard as I wanted to replace it. Boom! Proxy manager errors on any operation that attempts to edit the nginx conf files.
Based on the hint from @jicho I ssh'd into the Proxy manager docker instance and deleted old references from the nginx conf files. Normal uses would be totally stuck and need to reinstall proxy manager.
@tajnymag commented on GitHub (Jan 23, 2023):
Can confirm having the same problem even now on the latest image tag (2.9.19)
For me, the old references were not in
/data/nginx/redirection_host/1.confbut instead in/data/nginx/proxy_host/1.conf@WisManue commented on GitHub (Jan 19, 2024):
I can confirm the Bug too. I use the latest Image 2.10.4. :(
In my case the old reference were in /data/nginx/proxy_host/3.conf and in /data/nginx/proxy_host/13.conf.
In both conf-Files there are my Proxy-Hosts, on those i had configured the SSL-Certificate i have removed later. It seems so, that NPM deletes the global DNS-SSL but not the SSL-Certificates on the hosts...
@IsaacShoebottom commented on GitHub (Jun 14, 2024):
Affecting me here, clearing out and SSL cert in the webui does not remove it from proxy hosts actual config files. Needed to remove manually and then restart container
@CoolDouble commented on GitHub (Jun 19, 2024):
Me too.
@github-actions[bot] commented on GitHub (Jan 27, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍
@IsaacShoebottom commented on GitHub (Jan 28, 2025):
Bump
@github-actions[bot] commented on GitHub (Oct 12, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍