@shlomi said in Getting 502 Bad Gateway:
A new installation fron a few days ago - I restarted the server and I get an error 502
I would very much appreciated your help to understand what's wrong here
Thanks you
On systemctl status nginx.service & systemctl status nodebb.service
May 26 00:47:02 test.wewp.net systemd[1]: Can't open PID file /var/run/nginx.pid (yet?) after start: No such file or directory
May 26 00:15:32 test.wewp.net systemd[1]: Can't open PID file /var/www/nodebb/pidfile (yet?) after start: No such file or directory
Why not? I've not scrutinized the rest of your stuff but a couple quick questions:
What is the value of "User" in your nodebb.service? Does it match your nodebb user?
What is the value of "PIDFile" in your nodebb.service config?
What are the permissions for that directory and file?
What is the ownership for that directory and file?