Anyone else get temporary fleeting 502 server errors on AWS Linux instances?

I have a Django app that works fine on an AWS Linux instance.

Every once in a while I’ll get a 502 server error. It only sticks around for a little while

then disappears.

Sound familiar? Possible to avoid these?

Thanks,

Chris

I think the first thing to do would be to try to identify the root cause of the errors.

If your web server (nginx? Apache?) is returning a 502, then there should be something in the error log providing some more detailed information. You may also find something in syslog or your wsgi container (gunicorn? uwsgi?) logs showing the problem. You can also check your db logs in case there’s something interfering with the connection by the project.

At a minimum, you’ll want to collect more specific information about how frequently this is occuring and if there is any pattern to those events.

Ken

Thanks. I don’t see anything in Nginx error logs now but when it happens again
I’ll look again.