@julian said in Anyone here able to help with an NGINX config issue?:
@Joykiller We're on a pretty old version of Ghost actually 😞
0.7.1 😬
Yeah thats what I thought.
Suddenly getting a 502 Bad Gateway at my NodeBB install: community.nerdlouisville.org
Main site works fine: nerdlouisville.org
Any advice?
Is NodeBB running still? The process might have crashed.
Not sure how to tell.
@Michael-Pfaff said in Yikes - 502 Bad Gateway Nginx DigitalOcean:
Not sure how to tell.
Use sudo
as needed depending on how you are logged in.
cd /your/nodebb/dir
# look at the log
./nodebb log
# or just restart it
./nodebb restart
Log contains: error: TypeError: Request path contains unescaped characters
at new ClientRequest (_http_client.js:53:11)
Restarting: NodeBB could not be restarted, as a running instance could not be found.
I did just recently add some custom HTML (from this thread: https://community.nodebb.org/topic/9917/javascript-html-widget/8) to the header. Could that have been an issue?
Run ./nodebb start && ./nodebb log
and see if it crashes again.
That reloaded the site, but when I try to register a user, I get:
Registration Error
<html> <head><title>502 Bad Gateway</title></head> <body bgcolor="white"> <center><h1>502 Bad Gateway</h1></center> <hr><center>nginx</center> </body> </html>
Which I saw right before the full Bad Gateway.
Nothing new on the logs when that happens?
less +G ./nodebb/logs/output.log
Seems like when I disable the No Spam plugin I don't get the error.
Will need logs to debug
Will try to go to this soon! Sorry. Had a busy weekend.