I can't resolve a new problem on my production server.
I actually got an intermittent nginx 502 Bad Gateway page on my website, at any page.
If i refresh the same page 10 times it will show up once or none, it's totally random.
My server run nginx to serve static files and act as global proxy.
I have tried to change to buffer size, but without effects.
Have you an idea about that ?
The message in the error log :
2013/06/08 17:40:56 [error] 18404#0: *361 connect() failed (111: Connection refused) while connecting to upstream, client: 85.1.118.39, server: xxx.com, request: "GET /random?c=1&l=fr HTTP/1.1", upstream: "http://127.0.0.1:3000/random?c=1&l=fr", host: "xxx.com", referrer: "http://xxx.com/movie/xxx"
Thanks for your help
It looks like a node problem, not nginx, since the error thrown is "failed (111: Connection refused)".
You will neet to debug your nodejs stack first, then tweak nginx if necessary.