ACTIVITY
Timeline
Timeline for the post: NGINX returns 504 Gateway Timeout for long-running uploads through a Node backend — how to diagnose?
Currently licensed under: CC BY-SA 4.0
| When | What | By | License | Comment |
|---|---|---|---|---|
Nov 6, 2026, 9:29:48 AM 3w ago | Answer | sara_solve | CC BY-SA 4.0 | A pragmatic path: correlate timestamps in Node access logs with Nginx $request_time and $upstream_response_time. If Nginx spends most time receiving the client body (and temp files appear), the proxy is waiting on a slow client and you should raise client and proxy timeouts or increase client_body_buffer_size to reduce disk buffering. If Node finishes but Nginx still returns 504, increase proxy_read_timeout for testing and watch kernel dmesg for resets. Verify fixes by reproducing with the slow client and confirming Nginx now forwards the complete request and Node finishes processing. |
Nov 6, 2026, 9:29:48 AM 3w ago | Created | erikethernet | CC BY-SA 4.0 | NGINX returns 504 Gateway Timeout for long-running uploads through a Node backend — how to diagnose? |