Skip to content
Poorva Cloud

504 Gateway Timeout on your app

A 504 means a proxy waited for your app and gave up. Find out whether our proxy or a service in front of it timed out, and how to fix a slow app.

Updated 25 November 2026

Symptoms

  • The page loads for a long time, then shows 504 Gateway Timeout.
  • Sometimes you see a branded timeout page from a service you put in front of your site, for example a CDN (a content delivery network such as Cloudflare). Cloudflare shows its own code, 524.
  • The problem may affect only heavy pages, such as checkout, search or an admin screen.

Cause

The web proxy on your server passes each request to your app's web container. A 504 from our proxy means it could not open a connection to your app in time. This happens when the app is frozen or so busy that it cannot accept new connections, for example when every worker is stuck on slow pages or the app's CPU limit is fully used.

Once the connection is open, our proxy does not cut off a slow page by itself. So if the page loads for a very long time and then shows a branded timeout page, the time limit was set by a service in front of the server, such as a CDN, a firewall service or a load balancer you added. That service gave up waiting, while the app may still be working on the request.

Common reasons for slowness on our platform:

  • a slow database query, plugin or import job;
  • the app hitting its own CPU or memory limit (each app's services have fixed limits);
  • a sudden rise in traffic or bots;
  • an external service the app calls (payment, email, an API) that is slow.

How to fix

  1. Reload once. If the page opens the second time, a cache or a one-off slow request was the cause.
  2. Open the app's Logs tab and use Show lines containing with timeout, slow, error or the page address. See Read your app's logs.
  3. If the whole site is frozen, press Restart on the app page. This clears stuck workers. The app is unavailable for a short time.
  4. If only one page is slow, look at what it does: a large report, a search without limits, a plugin that calls another website. Disable or fix that part inside your app.
  5. If you use a CDN or a proxy service in front of your site, check its timeout setting and its own error page. Our proxy is not the one showing a branded page.
  6. If the app is slow all the time, it may need more resources. See Your site is slow and You need a larger server.

When to raise a ticket

Use Raise a ticket on the Support page if the 504 continues after a restart or you cannot find which part of your app is slow. Include:

  • the app name, the server name and the address that times out;
  • whether the error page is plain or branded by another service;
  • the times it happened (with your time zone);
  • any log lines that mention a timeout.

Never include passwords, private keys or API keys.

Was this helpful?

Still need help?

24/7 support from our team. Sign in to the console to raise a ticket about this.

Raise a ticket