520 error randomly appearing never happened before

What is the name of the domain?

liquidrp.info

What is the error number?

520

What is the error message?

Web server is returning an unknown error

What is the issue you’re encountering

Randomly started experiencing a 520 error today out of nowhere. It’s very random and happens when visiting any part of the domain. There is nothing in logs at all. Sometimes the error will happen, sometimes it doesn’t. If it does, and you refresh twice - it quite literally fixes and you can use the site again as normal until you refresh again.

What steps have you taken to resolve the issue?

Everything Cloudflare recommends on their support docs and I’ve also viewed this community forum and tried things others have recommended. Nothing has worked.

What are the steps to reproduce the issue?

Visit the site

fl=793f277
h=liquidrp.info
ts=1725424821.911
visit_scheme=https
uag=Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36
colo=LHR
sliver=none
http=http/3
loc=GB
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off
rbi=off
kex=X25519Kyber768Draft00

Cloudflare Ray ID: 8bdb4d79ec4dd1fa

I also have a HAR file as well

If you are still using Google for hosting, check that they are not trying to validate your domain for renewal of the origin SSL certificate. Set the Cloudflare DNS record to “DNS only” instead of “Proxied”, or pause Cloudflare, so you can see what the origin is actually returning for your domain and, if it is an SSL certificate issue, if that allows it to renew.

Once the origin is working with SSL, you can re-enable Cloudflare.

1 Like

So, we’re not using Google for hosting and I believe Cloudflare provides us with an SSL certificate

The SSL certificate is fine, the problem is with your origin…
https://cf.sjr.org.uk/tools/check?f2321bf502dd4cfd90d6c6cde22bb6a1#connection-server-https

Still do this anyway to find out what the response is that Cloudflare sees :point_down:

1 Like

I have set the Cloudflare DNS records to “DNS only”. This is what I got https://cf.sjr.org.uk/tools/check?6e221b0fa809457c9f9f6cbd008aac08

The IPv6 addresses returned for your domain point to Google, the IPv4 address to another host.

Check you have the correct IP addresses.

1 Like

I have removed the IPv6 records since we are not using IPv6 and are only using an IPv4. I assume it takes a few hours as it needs to propagate and cache the changes, could you let me know if it has fixed? I appreciate your help

Your site is returning 520 so you have re-enabled the proxy. You need to see what your web server is returning to fix the issue so switch back to “DNS only” until your site is working properly.

Changed back to “DNS only”

Now the site doesn’t load at all - can you check what you’re seeing on your end?

If the site is not loading, and the Cloudflare DNS is set to “DNS only”, then either…

  • the DNS record is not as your host needs it to be, or
  • there is a problem with your configuration at your host.

In both cases you would need to verify with your host. Cloudflare isn’t doing anything with your site other than returning the DNS records you have told it to, currently as here…
https://cf.sjr.org.uk/tools/check?89774d97b2694a849b248794beca982c#dns

1 Like

The thing is the setup and everything was fine, just out of nowhere started getting this 520 error. Nothing has changed, so how has what you’ve mentioned caused the issue when it never started happening at the beginning of this setup?

Could you walk me through what I need to exactly do? Anything related to DNS, I cannot stand.

I appreciate your help with everything so far

Also after some messing around, http:// loads fine, https:// doesn’t load. Seems like not having a valid SSL doesn’t allow the site to load.

https://cf.sjr.org.uk/tools/check?89774d97b2694a849b248794beca982c

After some further messing around, https://liquidrp.info now comes back without SSL and loads fine. As http://liquidrp.info works fine now as well - no longer getting a 520 but I need to now acquire SSL for the domain without using Cloudflare as using Cloudflare gives us the 520