nginx reverse proxy not working

Started by mweis, April 12, 2020, 08:40:10 PM

Previous topic - Next topic
hey, just wanted to try out nginx reverse proxy, due limitations of ha proxy for unifi nvr. i followed the wiki guide just for a simple testing.

in the global error tab ic get this error every minute:

2020/04/12 20:37:00 notice 12293#100487 signal process started
2020/04/12 20:37:00 error 12293#100487 open() "/var/run/nginx.pid" failed (2: No such file or directory)

In System: Settings: Miscellaneous the /var RAM Disk is not checked.

maybe anyone have a hint for me? :)

thank u

The notice is normal. There is a reload every minute due to internal blacklists or something like that.

But the 2nd message is strange. Sounds like nginx is not running at all, but then the reloads wouldn't be shown every minute.
Intel(R) Xeon(R) Silver 4116 CPU @ 2.10GHz (24 cores)
256 GB RAM, 300GB RAID1, 3x4 10G Chelsio T540-CO-SR

Maybe the run directory is missing. This directory must exist as services put sockets and pid files into it.

Maybe something is wrong with your installation but you should be able to fix it using mkdir -p /var/run.