Revision as of 19:27, 23 January 2025 by KazVee (talk | contribs) (Add reason for different restart methods & add link to 502 Bad Gateway page)

504 Gateway Timeout

504 Gateway Timeout

If a server takes too long to complete a request (such as loading a webpage), it will sometimes display the HTTP 504 Gateway Timeout error. This timeout limit is in place to protect the server from slowing down for all users or even crashing due to long-running processes.

Apache Restarts

Apache restarts happen every 2 hours on the shared hosting servers. During the restarts on the Morty and Tommy servers, your site may display a 504 error to visitors. On the and Johnny server, a 502 error may display. These errors typically last no longer than a couple of minutes and is resolved once Apache has finished restarting.

The difference in error messages (502 vs. 504) is due to the restart method used. A hard restart interrupts Apache abruptly, leading to a 502 (Bad Gateway), and a graceful restart will give the 504 (Gateway Timeout). The restart approach on Johnny is different in order to minimize downtime and address user concerns about longer wait times for the server to come back up. Because the wait time for restarts on Morty and Tommy is much quicker, the graceful approach is used on these servers.

To check the status of our servers, please visit the visit the HelioHost Services Status Page. The status page provides a real-time overview of your server’s status and includes a history of past incidents.

If you prefer not to have Apache restart, you can sign up for a VPS, where you can leave Apache or Nginx running for months without a restart. We offer a range of VPS plans, and a 10% discount when you pay for 6 months upfront.

Software Installation

If you receive a 504 Gateway Timeout error while trying to install software, the installer might be taking longer than the default server timeout settings allow. In this case, you can request that the server execution time limits be extended temporarily. This would give your software installer more time to finish. After installation, HelioHost admins would need to reduce the execution time limits back to their original settings.

Request Temporary Extension of Server Execution Time Limits

To request a temporary extension of the server execution time limits to install software, please post a topic in the Customer Support forum. Make sure you provide your username, domain name, the software you are trying to install, and any applicable error message(s) received.

References

This page is adapted from this post on the HelioNet forum.


This page was last edited on 23 January 2025, at 19:27.