Kintify

Kintify Fix · nginx

Kintify Fix: Nginx 504 Gateway Timeout

Kintify Fix answer

Check time the upstream directly with curl, then raise proxy_read_timeout on the route. before rolling back.

Generated using Kintify Fix — production-safe recommendations

504 = upstream took longer than proxy_read_timeout. Raise the timeout only after you confirm the upstream isn't actually stuck.

Check time the upstream directly with curl and raise proxy_read_timeout on the route.

Kintify Fix tool

kintify fix

Kintify Fix steps

  1. 1

    Time the upstream directly with curl

  2. 2

    Raise `proxy_read_timeout` on the route

  3. 3

    Move long work to async job + polling

Common causes

  • Upstream genuinely slow for this request
  • `proxy_read_timeout` too aggressive
  • Upstream deadlocked or blocked on a lock

Kintify Fix FAQ

What causes Nginx 504 Gateway Timeout?
Upstream genuinely slow for this request and proxy_read_timeout too aggressive are the most common causes.
How do I fix Nginx 504 Gateway Timeout?
Check time the upstream directly with curl, then raise proxy_read_timeout on the route.