Cause
This error indicates a problem with the origin server. The error is reported if the origin server does not respond to a request from ESA within 30 seconds.
Solutions
If you receive a 504 error after you use ESA to accelerate a website, troubleshoot the issue as follows:
-
Check the CPU utilization and network bandwidth of the origin server and resolve any issues that you find. For more information, see Troubleshoot and resolve high network bandwidth usage on Linux instances and Troubleshoot and resolve high CPU utilization or load on Linux instances.
-
Modify the hosts file on your local computer to map the domain name to the IP address of the origin server. For more information, see Point a domain name to an ESA origin server without changing DNS records.
-
Access the domain name. Use your browser's developer tools to open the Network tab and check whether the request Time exceeds 30 seconds. If it does, check your origin server service and reduce its response time.
-
If the origin server response time is longer than 30 seconds and you cannot reduce it, you can request to extend the default timeout for the ESA domain name. For more information, see Back-to-origin HTTP request timeout.
-