0
Answered

504 Gateway error

Anselm 9 months ago in Server / Connectivity updated by JT S. (Technical Writer) 5 days ago 5 2 duplicates

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

Answer

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

Duplicates 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.

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 

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.

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