Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not delete file on 2.11.1 & 2.10.4 #3647

Open
peterge-misoft opened this issue Mar 22, 2024 · 11 comments
Open

Could not delete file on 2.11.1 & 2.10.4 #3647

peterge-misoft opened this issue Mar 22, 2024 · 11 comments

Comments

@peterge-misoft
Copy link

peterge-misoft commented Mar 22, 2024

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

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:

[3/22/2024] [1:31:28 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "syscall": "unlink",
  "code": "ENOENT",
  "path": "/data/nginx/proxy_host/84.conf"
}

I went down to 2.10.4 and the same thing happened.

cat data/nginx/proxy_host/84.conf 
# ------------------------------------------------------------
# hassio.misoft.local
# ------------------------------------------------------------

server {
  set $forward_scheme http;
  set $server         "172.16.1.64";
  set $port           8123;
...

The file does show the content that i just added as new host.
When I visit the site I just see 400: Bad Request on 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:

  1. Go to Hosts
  2. Click on Add host
  3. Enter details
  4. See error in docker logs -f

Expected behavior

Add a new host and display its site.

Screenshots

Operating System

debian 11 lxc

Additional context

@peterge-misoft
Copy link
Author

@peterge-misoft
Copy link
Author

Downgraded to 2.10.4 bc of could not delete file error :(

@thebino
Copy link

thebino commented 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

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.200      # Add the IP address of the proxy server

@peterge-misoft
Copy link
Author

I already fount this. But the could not delete file error persited, thats why I downgraded to 2.10.4.

@XiovV
Copy link

XiovV commented Apr 12, 2024

Downgraded to 2.10.4, still getting the same issue:

nodeproxymanager-app-1  | [4/12/2024] [8:05:32 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
nodeproxymanager-app-1  |   "errno": -2,
nodeproxymanager-app-1  |   "syscall": "unlink",
nodeproxymanager-app-1  |   "code": "ENOENT",
nodeproxymanager-app-1  |   "path": "/data/nginx/proxy_host/1.conf"
nodeproxymanager-app-1  | }

@peterge-misoft peterge-misoft changed the title Could not delete file/Bad Request 400 on 2.11.1 & 2.10.4 Could not delete file on 2.11.1 & 2.10.4 Apr 13, 2024
@IUxp8xz9
Copy link

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
Copy link

focher commented 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
Copy link

s0mm3rb commented Apr 25, 2024

relates to #3678

Copy link

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

@github-actions github-actions bot added the stale label Oct 26, 2024
@wakawakaaa
Copy link

same issue. nginx proxy manager is broken v2.12.1

@nnasirzada
Copy link

+1 v2.12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants