OPNsense Forum

English Forums => Web Proxy Filtering and Caching => Topic started by: mweis on April 12, 2020, 08:40:10 PM

Title: nginx reverse proxy not working
Post by: mweis on April 12, 2020, 08:40:10 PM
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
Title: Re: nginx reverse proxy not working
Post by: hbc on April 12, 2020, 11:15:57 PM
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.
Title: Re: nginx reverse proxy not working
Post by: fabian on April 13, 2020, 06:10:31 AM
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.