NGINX 502 Bad Gateway: Gunicorn
This article discusses troubleshooting NGINX 502 Bad Gateway errors when using Gunicorn as the application server for Python applications. The common causes of these errors include Gunicorn not running, NGINX being unable to communicate with Gunicorn, and Gunicorn timing out. To resolve these issues, the article provides guidance on checking if Gunicorn is running, ensuring that both Gunicorn and NGINX are configured to use the same socket, and adjusting timeouts as necessary. Additionally, it emphasizes the importance of collecting logs and application performance monitoring (APM) data for effective troubleshooting.
Company
Datadog
Date published
March 16, 2020
Author(s)
Evan Mouzakitis, David Lentz
Word count
1904
Language
English
Hacker News points
None found.