mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-04-25 09:25:55 +03:00
[GH-ISSUE #3647] Could not delete file on 2.11.1 & 2.10.4 #2415
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#2415
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 @peterge-misoft on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3647
Checklist
jc21/nginx-proxy-manager:latestdocker image?Describe the bug
Everything worked just fine after i upgraded to 2.11.1 last week. But when I add a new host, this message shows up in docker logs -f:
I went down to 2.10.4 and the same thing happened.
The file does show the content that i just added as new host.
When I visit the site I just see
400: Bad Requeston 2.11.1, a SSL warning shows up on 2.10.4 but the docker logs message is the same.Nginx Proxy Manager Version
2.11.1
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Add a new host and display its site.
Screenshots
Operating System
debian 11 lxc
Additional context
@peterge-misoft commented on GitHub (Mar 22, 2024):
I was facing the same error as https://community.home-assistant.io/t/getting-400-when-accessing-home-assistant-through-a-reverse-proxy-dockerized-nginx/373526
@peterge-misoft commented on GitHub (Mar 26, 2024):
Downgraded to 2.10.4 bc of could not delete file error :(
@thebino commented on GitHub (Apr 12, 2024):
You need to add the reverse proxy to home-assistant in the configuration file.
https://www.home-assistant.io/integrations/http#reverse-proxies
@peterge-misoft commented on GitHub (Apr 12, 2024):
I already fount this. But the could not delete file error persited, thats why I downgraded to 2.10.4.
@XiovV commented on GitHub (Apr 12, 2024):
Downgraded to 2.10.4, still getting the same issue:
@IUxp8xz9 commented on GitHub (Apr 14, 2024):
This hit me as well. As soon as I try to edit a proxy host, this error pops up and the host is no longer reachable.
I checked on the file system and the files are correctly being deleted, I even created some empty dummy files named according to the error and they are correctly deleted. Looks like NPM is not getting correct feedback on the deletion.
Reverting back to 2.10.4 did not make the error go away but did make my site come back online. Reverting back to 2.9.22 made everything work again.
@focher commented on GitHub (Apr 23, 2024):
I got the same issue even after downgrading to 2.9.22
As a test, I completely rebuilt my nginx configuration. It's only a single proxy host that gets this error and won't go online. However, I removed all of the Custom Locations and saved. This allowed it to enter Enabled state. The delete error went away. I added four Custom Locations, adding them individually and saving before adding the next. Still no delete error and eventually it was running again.
@s0mm3rb commented on GitHub (Apr 25, 2024):
relates to #3678
@github-actions[bot] commented on GitHub (Oct 26, 2024):
Issue is now considered stale. If you want to keep it open, please comment 👍
@wakawakaaa commented on GitHub (Nov 19, 2024):
same issue. nginx proxy manager is broken v2.12.1
@nnasirzada commented on GitHub (Nov 23, 2024):
+1 v2.12.1
@JulesRenz commented on GitHub (Feb 10, 2025):
+1 v2.12.3
Edit: ok, I have the impression, that the error message is misleading. I was able to fix the issue for me but the error was unrelated:
I'm moving servers and forgot to update the DNS record, so I assume, that when NPM tried to get the certificate from Let'sEncrypt, it failed.
Here is the log of the failed run:
And here a couple of minutes later after changing the DNS settings at my provider:
In both cases, NPM complains that the file could not be deleted.
Maybe this helps somebody out there :)
@isomeruk commented on GitHub (Mar 6, 2025):
In case this helps anyone else facing this issue - I was getting the same error and the status reporting as 'Offline'. In my case it ended up being a typo in the 'Advanced' section in the proxy config. Fix the typo, host back online!
My guess is that the "Could not delete" error is actually a non-event and the real problem is that because of the typo it never actually created the file in the first place which, if that is the case, could do with some better logging.
@github-actions[bot] commented on GitHub (Oct 4, 2025):
Issue is now considered stale. If you want to keep it open, please comment 👍