Diagnosing an HTTP 504 Gateway Timeout Error Print

  • 504, http, timeout, troubleshooting
  • 0

An HTTP 504 response means a gateway or proxy did not receive a timely response from an upstream server required to complete the request.

  1. Determine whether a simple/static page responds normally while a dynamic request times out.
  2. Check application logs for a long database query, remote API call, import, export, or PHP process that runs longer than expected.
  3. Review Resource Usage for CPU, memory, process, I/O, or entry-process faults at the same time.
  4. Check whether the failure began after changing PHP, a plugin, a theme, or application code.
  5. Reduce the failing operation into smaller work units when the application supports it.

Increasing a timeout can mask a slow or stuck operation. Identify why the upstream response is late before treating a larger timeout as the solution.


Was this answer helpful?

« Back