When I turn on Cloudflare keep getting 502 and 504 errors

We have a Wordpress website on Cloudflare and when it’s turned on we keep getting 502 and 504 errors.
When we turn Cloudflare off everything works fine.
Is there a checkup tool that can help me figure out what’s wrong with my setup.
Where running out of a LAMP stack with Cpanel access and we have a SSL certificate on the website.

First entry in the search :wink:

Thanks Sandro, I did read that article and other articles online about that problem, but still haven’t figured out what is wrong.
That’s why I posted this on the forum, I’ve tested the website with automated tools (GTMetrix, Pingdom, Webpagetest) and nothing major shows up on those tests (with Cloudflare off), when I turn Cloudflare on everything stops working,

To start with, whats the domain?

Right now your configuration looks all right. So when you switch your records to :orange: you get those errors?

That would most likely indicate some sort of network filter on your server which blocks Cloudflare from connecting. Make sure there is nothing of that sort in place.

Actually I just managed to load your site over Cloudflare.


Are you sure the issue is still occurring for you?

I have Cloudflare paused on the website:

Your site is paused

Web traffic to this website is no longer receiving performance and security benefits. Cloudflare continues to resolve the DNS. You can reactivate Cloudflare for this website at anytime. Resume Cloudflare on Site

I noticed that, hence the emphasis on “over Cloudflare”. Pay attention to the IP address in my screenshot.

I turned on Cloudflare and in no time a 502 error showed up: Ray Id: 4afa43308ac99d20
I did a trace of the link via Cloudflare:
uag=Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0

Have you checked if you block any Cloudflare connections? Maybe you block the Dutch datacentre for some reason.

Open a support ticket and forward the 4afa43308ac99d20 connection ID. They should be able to tell why the connection didnt work.

I can still load your site.

Sandro, Thanks for the help, I’ve contacted the ISP and asked if any of the Cloudflare IPs are blocked on the server.

Hi Sandro,
My ISP has white labeled the IP list of Cloudflare but still when I turn on Cloudflare the 502 and 504 errors keep showing up.
Any other ideas on how to solve this error?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.