NginxProxyManager / nginx-proxy-manager

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

Log errors: unknown user 'npm' #3685

Open DrEVILish opened 6 months ago

DrEVILish commented 6 months ago

Checklist

Describe the bug

Installed using: https://github.com/tteck/Proxmox/raw/main/ct/nginxproxymanager.sh

Running a standard instance of NginxProxyManager, getting the following error message.

In 'journalctl -xe'

Apr 06 14:25:04 nginxproxymanager node[148]: [4/6/2024] [2:25:04 PM] [Setup ] <80> <9A> CommandError: error: /etc/logrotate.d/nginx-proxy-manager:2 unknown user 'npm' Apr 06 14:25:04 nginxproxymanager node[148]: error: found error in /data/logs/_access.log /data/logs//access.log , skipping Apr 06 14:25:04 nginxproxymanager node[148]: error: /etc/logrotate.d/nginx-proxy-manager:16 unknown user 'npm' Apr 06 14:25:04 nginxproxymanager node[148]: error: found error in /data/logs/_error.log /data/logs//error.log , skipping Apr 06 14:25:04 nginxproxymanager node[148]: at /app/lib/utils.js:16:13 Apr 06 14:25:04 nginxproxymanager node[148]: at ChildProcess.exithandler (node:child_process:410:5) Apr 06 14:25:04 nginxproxymanager node[148]: at ChildProcess.emit (node:events:513:28) Apr 06 14:25:04 nginxproxymanager node[148]: at maybeClose (node:internal/child_process:1100:16) Apr 06 14:25:04 nginxproxymanager node[148]: at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)

rmonteremal commented 3 months ago

I have the exact same issue after updating my nginx proxy manager LXC using ttkeck's update script. Have you managed to solve it?

navels commented 3 months ago

root cause and workaround: https://github.com/tteck/Proxmox/issues/2745#issuecomment-2138811196

rmonteremal commented 3 months ago

root cause and workaround: tteck/Proxmox#2745 (comment)

Thanks, I had notice this and already replaced those lines, but now it's the openresty service that doesn't seem to run: "nginx: [emerg] open() "/run/nginx/nginx.pid" failed (2: No such file or directory)", seems like the PID file for nginx doesn't get created for whatever reason

I'll keep on digging