504 Gateway error

Avatar
  • updated
  • Answered

We are getting a 504 Gateway error on all our hosted websites. What could be the problem?

Duplicates 2
WPMU DEV Snapshot fails to backup

When trying to do a WPMU DEV Snapshot backup. I always get this error and backup fails

504 GATEWAY TIMEOUT

The backend service failed to respond within the expected amount of time.

504 Gateway Timeout

I tried to open my website and it shows "504 Gateway Timeout The backend service failed to respond within the expected amount of time."

How can i fix this?

Pinned replies
Avatar
IMH Support Agent 1
  • Answer
  • Answered

Hello Anselm,

Thank you for contacting us about a 504 gateway error. This error often happens when Apache or PHP-FPM take too long to respond. This typically relates to a long-running PHP script. For example, attempting to perform a large import operation, big file upload, etc. By default, NGINX will wait up to 60 seconds for PHP and Apache to send back a response— if it does not receive anything in that time, it returns a 504 status. If you get this error and have not performed any sort of long-running operation, you may want to look at your plugins. Poorly-written plugins or long-running database queries can trigger this error since the page has to wait for these operations to complete before sending a response.

Thank you,

John-Paul

Avatar
IMH Support Agent 2

Hello Mizo.z,

Sorry for any continued issues with your website. We need a little more information from you to investigate the problem.  Can you please provide us with a domain name or error message?  If you provide us some specifics then we can look further into the error that you're seeing.  If you contact our live technical support team they would be able to help you in real time and privately.  All issues on the Support Center are public domain


If you have any further questions or comments, please let us know.


Kindest Regards,

Arnel C.

Avatar
anonymous
  • Answered

Hi mizo.z.1989, 

I'm sorry that your website is producing a 504 error. You can try the solutions in this article, but it may be best if you reach out to live support if you're still experiencing the issue. 

Kindest regards,
Stormy 

Avatar
IMH Support Agent 1
Quote from RobertBarajas

Hello, i need process a biggest request but  is blocked by error 504.

i need help!

I recommend reviewing your server's error logs for additional clues into the cause, or contacting your system administrator for assistance.

Avatar
RobertBarajas

Hello, i need process a biggest request but  is blocked by error 504.

i need help!

Avatar
IMH Support Agent 1
  • Answer
  • Answered

Hello Anselm,

Thank you for contacting us about a 504 gateway error. This error often happens when Apache or PHP-FPM take too long to respond. This typically relates to a long-running PHP script. For example, attempting to perform a large import operation, big file upload, etc. By default, NGINX will wait up to 60 seconds for PHP and Apache to send back a response— if it does not receive anything in that time, it returns a 504 status. If you get this error and have not performed any sort of long-running operation, you may want to look at your plugins. Poorly-written plugins or long-running database queries can trigger this error since the page has to wait for these operations to complete before sending a response.

Thank you,

John-Paul