[GH-ISSUE #3647] Could not delete file on 2.11.1 & 2.10.4 #2415

Open
opened 2026-02-26 07:35:28 +03:00 by kerem · 14 comments
Owner

Originally created by @peterge-misoft on GitHub (Mar 22, 2024).
Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3647

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

Originally created by @peterge-misoft on GitHub (Mar 22, 2024). Original GitHub issue: https://github.com/NginxProxyManager/nginx-proxy-manager/issues/3647 <!-- Are you in the right place? - If you are looking for support on how to get your upstream server forwarding, please consider asking the community on Reddit. - If you are writing code changes to contribute and need to ask about the internals of the software, Gitter is the best place to ask. - If you think you found a bug with NPM (not Nginx, or your upstream server or MySql) then you are in the *right place.* --> **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** <!-- A clear and concise description of what the bug is. --> 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** <!-- What version of Nginx Proxy Manager is reported on the login page? --> 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** <!-- A clear and concise description of what you expected to happen. --> Add a new host and display its site. **Screenshots** <!-- If applicable, add screenshots to help explain your problem. --> **Operating System** <!-- Please specify if using a Rpi, Mac, orchestration tool or any other setups that might affect the reproduction of this error. --> debian 11 lxc **Additional context** <!-- Add any other context about the problem here, docker version, browser version, logs if applicable to the problem. Too much info is better than too little. -->
Author
Owner

@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

<!-- gh-comment-id:2015527525 --> @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
Author
Owner

@peterge-misoft commented on GitHub (Mar 26, 2024):

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

<!-- gh-comment-id:2020142637 --> @peterge-misoft commented on GitHub (Mar 26, 2024): Downgraded to 2.10.4 bc of could not delete file error :(
Author
Owner

@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

http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 10.0.0.200      # Add the IP address of the proxy server
<!-- gh-comment-id:2051427095 --> @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 ``` http: use_x_forwarded_for: true trusted_proxies: - 10.0.0.200 # Add the IP address of the proxy server ```
Author
Owner

@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.

<!-- gh-comment-id:2051526777 --> @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.
Author
Owner

@XiovV commented on GitHub (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  | }
<!-- gh-comment-id:2052453896 --> @XiovV commented on GitHub (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 | } ```
Author
Owner

@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.

<!-- gh-comment-id:2053941272 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:2071238684 --> @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.
Author
Owner

@s0mm3rb commented on GitHub (Apr 25, 2024):

relates to #3678

<!-- gh-comment-id:2077140200 --> @s0mm3rb commented on GitHub (Apr 25, 2024): relates to #3678
Author
Owner

@github-actions[bot] commented on GitHub (Oct 26, 2024):

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

<!-- gh-comment-id:2439175000 --> @github-actions[bot] commented on GitHub (Oct 26, 2024): Issue is now considered stale. If you want to keep it open, please comment :+1:
Author
Owner

@wakawakaaa commented on GitHub (Nov 19, 2024):

same issue. nginx proxy manager is broken v2.12.1

<!-- gh-comment-id:2486680983 --> @wakawakaaa commented on GitHub (Nov 19, 2024): same issue. nginx proxy manager is broken v2.12.1
Author
Owner

@nnasirzada commented on GitHub (Nov 23, 2024):

+1 v2.12.1

<!-- gh-comment-id:2495497788 --> @nnasirzada commented on GitHub (Nov 23, 2024): +1 v2.12.1
Author
Owner

@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:

[2/10/2025] [7:48:50 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf
[2/10/2025] [7:48:50 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf.err
[2/10/2025] [7:48:50 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/5.conf.err"
}
[2/10/2025] [7:48:50 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:48:50 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[2/10/2025] [7:48:50 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload
[2/10/2025] [7:48:55 PM] [SSL      ] › ℹ  info      Requesting Let'sEncrypt certificates for Cert #8: subdomain.domain.com
[2/10/2025] [7:48:55 PM] [SSL      ] › ℹ  info      Command: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-8" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" 
[2/10/2025] [7:48:55 PM] [Global   ] › ⬤  debug     CMD: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-8" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" 
[2/10/2025] [7:48:58 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_8.conf
[2/10/2025] [7:48:58 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:48:58 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[2/10/2025] [7:48:58 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload
[2/10/2025] [7:48:58 PM] [Express  ] › ⚠  warning   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.

And here a couple of minutes later after changing the DNS settings at my provider:

[2/10/2025] [7:55:13 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf
[2/10/2025] [7:55:13 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf.err
[2/10/2025] [7:55:13 PM] [Nginx    ] › ⬤  debug     Could not delete file: {
  "errno": -2,
  "code": "ENOENT",
  "syscall": "unlink",
  "path": "/data/nginx/proxy_host/5.conf.err"
}
[2/10/2025] [7:55:13 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:55:13 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[2/10/2025] [7:55:13 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload
[2/10/2025] [7:55:18 PM] [SSL      ] › ℹ  info      Requesting Let'sEncrypt certificates for Cert #9: subdomain.domain.com
[2/10/2025] [7:55:18 PM] [SSL      ] › ℹ  info      Command: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-9" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" 
[2/10/2025] [7:55:18 PM] [Global   ] › ⬤  debug     CMD: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-9" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" 
[2/10/2025] [7:55:28 PM] [SSL      ] › ✔  success   Requesting a certificate for subdomain.domain.com

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/npm-9/fullchain.pem
Key is saved at:         /etc/letsencrypt/live/npm-9/privkey.pem
This certificate expires on 2025-05-11.
These files will be updated when the certificate renews.
NEXT STEPS:
- The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions.

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
 * Donating to EFF:                    https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

[2/10/2025] [7:55:28 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/temp/letsencrypt_9.conf
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:55:28 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -subject -noout
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -issuer -noout
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -dates -noout
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:55:28 PM] [Nginx    ] › ⬤  debug     Deleting file: /data/nginx/proxy_host/5.conf
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -t -g "error_log off;"
[2/10/2025] [7:55:28 PM] [Nginx    ] › ℹ  info      Reloading Nginx
[2/10/2025] [7:55:28 PM] [Global   ] › ⬤  debug     CMD: /usr/sbin/nginx -s reload

In both cases, NPM complains that the file could not be deleted.

Maybe this helps somebody out there :)

<!-- gh-comment-id:2649089060 --> @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: ``` [2/10/2025] [7:48:50 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf [2/10/2025] [7:48:50 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf.err [2/10/2025] [7:48:50 PM] [Nginx ] › ⬤ debug Could not delete file: { "errno": -2, "code": "ENOENT", "syscall": "unlink", "path": "/data/nginx/proxy_host/5.conf.err" } [2/10/2025] [7:48:50 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:48:50 PM] [Nginx ] › ℹ info Reloading Nginx [2/10/2025] [7:48:50 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload [2/10/2025] [7:48:55 PM] [SSL ] › ℹ info Requesting Let'sEncrypt certificates for Cert #8: subdomain.domain.com [2/10/2025] [7:48:55 PM] [SSL ] › ℹ info Command: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-8" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" [2/10/2025] [7:48:55 PM] [Global ] › ⬤ debug CMD: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-8" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" [2/10/2025] [7:48:58 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/temp/letsencrypt_8.conf [2/10/2025] [7:48:58 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:48:58 PM] [Nginx ] › ℹ info Reloading Nginx [2/10/2025] [7:48:58 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload [2/10/2025] [7:48:58 PM] [Express ] › ⚠ warning 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. ``` And here a couple of minutes later after changing the DNS settings at my provider: ``` [2/10/2025] [7:55:13 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf [2/10/2025] [7:55:13 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf.err [2/10/2025] [7:55:13 PM] [Nginx ] › ⬤ debug Could not delete file: { "errno": -2, "code": "ENOENT", "syscall": "unlink", "path": "/data/nginx/proxy_host/5.conf.err" } [2/10/2025] [7:55:13 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:55:13 PM] [Nginx ] › ℹ info Reloading Nginx [2/10/2025] [7:55:13 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload [2/10/2025] [7:55:18 PM] [SSL ] › ℹ info Requesting Let'sEncrypt certificates for Cert #9: subdomain.domain.com [2/10/2025] [7:55:18 PM] [SSL ] › ℹ info Command: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-9" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" [2/10/2025] [7:55:18 PM] [Global ] › ⬤ debug CMD: certbot certonly --config '/etc/letsencrypt.ini' --work-dir "/tmp/letsencrypt-lib" --logs-dir "/tmp/letsencrypt-log" --cert-name "npm-9" --agree-tos --authenticator webroot --email 'myuser@domain.com' --preferred-challenges "dns,http" --domains "subdomain.domain.com" [2/10/2025] [7:55:28 PM] [SSL ] › ✔ success Requesting a certificate for subdomain.domain.com Successfully received certificate. Certificate is saved at: /etc/letsencrypt/live/npm-9/fullchain.pem Key is saved at: /etc/letsencrypt/live/npm-9/privkey.pem This certificate expires on 2025-05-11. These files will be updated when the certificate renews. NEXT STEPS: - The certificate will need to be renewed before it expires. Certbot can automatically renew the certificate in the background, but you may need to take steps to enable that functionality. See https://certbot.org/renewal-setup for instructions. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - If you like Certbot, please consider supporting our work by: * Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate * Donating to EFF: https://eff.org/donate-le - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [2/10/2025] [7:55:28 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/temp/letsencrypt_9.conf [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:55:28 PM] [Nginx ] › ℹ info Reloading Nginx [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -subject -noout [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -issuer -noout [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: openssl x509 -in /etc/letsencrypt/live/npm-9/fullchain.pem -dates -noout [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:55:28 PM] [Nginx ] › ⬤ debug Deleting file: /data/nginx/proxy_host/5.conf [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -t -g "error_log off;" [2/10/2025] [7:55:28 PM] [Nginx ] › ℹ info Reloading Nginx [2/10/2025] [7:55:28 PM] [Global ] › ⬤ debug CMD: /usr/sbin/nginx -s reload ``` In both cases, NPM complains that the file could not be deleted. Maybe this helps somebody out there :)
Author
Owner

@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.

<!-- gh-comment-id:2703381803 --> @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.
Author
Owner

@github-actions[bot] commented on GitHub (Oct 4, 2025):

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

<!-- gh-comment-id:3367761283 --> @github-actions[bot] commented on GitHub (Oct 4, 2025): Issue is now considered stale. If you want to keep it open, please comment :+1:
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/nginx-proxy-manager-NginxProxyManager#2415
No description provided.