Causes
- Cloudflare is unable to establish contact with your origin web server.
Fixes
A) From your origin web server
Step 1: Ensure Origin Server Responds To Requests
Ensure the origin server responds to requests for the hostname and domain within the visitor’s URL that generated the 502 or 504 error
Step 2: Investigate
Investigate excessive server loads, crashes, or network failures.
Step 3: Identify Applications Or Services
Identify applications or services that timed out or were blocked.
B) From Cloudflare
Step 1: Contact Cloudflare Customer Support
Provide the required details below to Cloudfare Customer Support:
- Time and time zone the issue occurred.
- URL that resulted in the HTTP 502 or 504 response (for example: https://www.example.com/images/icons/image1.png)
- Output from browsing to www.example.com/cdn-cgi/trace (replace www.example.com with the domain and host name that caused the HTTP 502 or 504 error)