NginxProxyManager / nginx-proxy-manager

Docker container for managing Nginx proxy hosts with a simple, powerful interface
https://nginxproxymanager.com
MIT License
23.34k stars 2.7k forks source link

sed: couldn't open temporary file /data/nginx/proxy_host/sed08DK2 #3343

Open f1ynng8 opened 1 year ago

f1ynng8 commented 1 year ago

Checklist

Describe the bug

after configure a proxy host and restart the NPM, it reports errors like the tilte.

MacOS 12.71. when using VirtioFS, this issue appears, but when using gRPC FUSE it doesn't appear.

Nginx Proxy Manager Version

I tried 2.9.22 and the latest 2.10.4, both have this issue.

To Reproduce Steps to reproduce the behavior: try a fresh installation of NPM and configuration as follows:

  1. pull the jc21/nginx-proxy-manager:latest image
  2. docker compose up -d
  3. change the password as it notices.
  4. add a proxy host, just a http -> http
  5. docker compose down
  6. docker compose up -d
  7. you can see the error as in the title, and the NPM's admin webpage can't showup

Expected behavior

it should work fine after the NPM restart, while using VirtioFS.

Screenshots

Operating System

MacOS 12.71.

Additional context

f1ynng8 commented 1 year ago

I think I know what's going wrong.

Since Docker Desktop for Mac 4.23.0, All users on macOS 12.5 or greater now have VirtioFS turned on by default.

But the sed NPM using is 4.7 which has this bug. https://forums.docker.com/t/sed-couldnt-open-temporary-file-xyz-permission-denied-when-using-virtiofs/125473/4

sed 4.8 has fixed this bug: https://lists.gnu.org/archive/html/info-gnu/2020-01/msg00002.html

NPM's base os upgrading to Debian 11 or just updating its sed to 4.8 will be a solution.

github-actions[bot] commented 6 months ago

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