Fixed My 502s Whenever Someone Uploads A Big File, And The Cause Was Embarrassingly Small

502nginxreverse-proxy1 replies · 215 views · started
  1. woke up to monitoring alerts and this lovely page on every URL:

    502 Bad Gateway

    502 Bad Gateway
    nginx
    

    its a Docker Compose stack behind Nginx, and it seems to happen whenever someone uploads a big file... the error log mentions the upstream a lot but Im not sure if thats the cause or just a symptom. I wanna fix this properly instaed of adding a cron job that restarts services every hour... where do I start? ill happily post whatever logs would help narrow this down.

    0
  2. hmmmm quick q what exactly does teh proxy error log say at the time of a 502?

    9 2 helpful

Reply to this topic

Sign in or create an account to reply.