Why my site keep making 520 error

@user9392 @anuj1 the issues you are seeing are most likely related to this Cloudflare incident that’s currently still ongoing/being monitored:

2 Likes

@cloonan The outage page says that the issue is resolved but that is not what we are seeing. This is really problematic as our entire product is down because of this.

1 Like

If you are still seeing issues now that issue is resolved, it is most likely an error on your server’s side.

A 520 error occurs when the connection started on the origin web server, but that the request was not completed. The most common reason why this would occur is that either a program, cron job, or resource is taking up more resources than it should causing the server not to be able to respond to all requests properly.

Review the Quick Fix Ideas in this Community Tip for troubleshooting suggestions.

2 Likes

Nothing has changed on our end at all and no errors on our server either.

Are you seeing the 520’s on a particular page or from a particular location? I tried a few dozen locations and don’t see any 520s.

Here’s an example: https://shuffle.do/@anuj Everything on our domain both the APIs and front-end are returning 520. Thanks for checking!

Hi
While I’m trying to access for my sitemap
https://www.appsscope.com/sitemap_index.xml
I got the error 520
Cloudflare Ray ID: 67d7a6da88300843

Hey there I can confirm your situation

Here is the trace
https://www.appsscope.com/cdn-cgi/trace

fl=368f100
h=www.appsscope.com
ip=x
ts=1628750221.252
visit_scheme=https
uag=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.131 Safari/537.36
colo=MIA
http=http/3
loc=CO
tls=TLSv1.3
sni=plaintext
warp=off
gateway=off

The weird thing here is that it mostly happens on websites that starts with www. domains if you go to your domain without www. the server respond accordingly and redirects to www. but when it redirects and reach the destination then appears the error in a random way this is happening not only on free plan users as a stated before by CF but also on paid plans users.

Also this occurs more frequently on sites with SSL TLS 1.3 and QUIC enabled and less frequently on sites with those options disabled (but still happens) you should merge all recents 520 errors post into one.

1 Like

What i should do please?
Open new ticket and post what output from that trace with the cf id?

That must be always the first thing you should do in these situations, You should include the same information (Ray ID from the error page) dates, hour, your IP, and the trace data from the /cdn-cgi/trace and also of course the URL that shows the error.

On the community the help is sometimes limited because there are logs and information that its only available to you and can not be disclosed so the only way that CF team has to check your case is with a support ticket so they can check personally according to your site and CF settings and answer you personally.

However if you find the solution or the root of the problem please share it with the community so everyone can benefit from it.

The ticket system offer you more tools and also offer a way to attach screenshots etc however if you can’t open a ticket (for example if you are on a free plan) then you have to write an email directly or wait for a forum moderator here.

1 Like

Hi! I hope you are doing well. Actually I am a lawyer and I own a website https://mandslawyers.com.au/. The website is pretty mature but it’s been a few days i am facing the same problem. When I open my site on cloud flare it keeps loading and eventually shows 502 errors. I have checked everything from my end but didn’t understand the root cause.
Please help me resolve this issue.
Thanks!

This is definitely a problem that is ongoing. I saw on another threat that has closed that this issue was solved but it hasn’t been solved for everyone. I doubt it is a server issue on my side but of course I am checking my logs now. The issue is, it started around the same time it was reported and this is the first time EVER that I have had such errors on my domain(s).

I will try to purge my cache on all my sites, lets see if that does anything first. I have already tried to enable and disable the DNS on one site(testing) but it didn’t change anything after I enabled cloudflare, I wait about 10 minutes.

I am sure if CloudFlare checks their logs, they will still see an increase in 520 errors.

Yes, there is an issue without a fix currently. It happened around WordPress 5.8 update. GoDaddy Managed WordPress are randomly affected. Some of my sites work fine and others are nonstop 52X errors.

It is not good. I was booted from Google Adsense. There is no chance of getting back Adsense, especiallywith their new violation policy that rolled out last month.

I spent 2 weeks troubleshooting and banging my head into the desk 14 hours a day. I knew better, but didn’t trust myself and paid the price.

Cloudflare is aware and will have a fix soon, I hope.

My recommendation, if you move your site over to Cloudflare DNS with default settings, and it gets 520 errors after waiting 48 hours for propagation, don’t beat yourself to death troubleshooting. Go back to GoDaddy lame CDN and DNS for a.little bit longer. Btw, it has taken that long to propagate in the past 2 weeks.

Don’t waste your time, energy, or precious SEO loss, just a wait on Cloudflare to fix, whatever GoDaddy broke.( Only thing that stands out to me, Securi implemented a new network with new IP ranges).

Good luck.

After years of using Cloudflare I started having the same problem with at least two of my sites on WPEngine. I found out when someone I was talking to on the phone couldn’t get to my site.

I upgraded Cloudflare to get support but that was not helpful. Cloudflare suppport and WPEngine support think it’s the other’s problem.

Rather than moving my sites from WPEngine, I paused Cloudflare for the two sites and I thought I would just stop using Cloudflare.

I have a third site also on WPEngine and all three use the same theme. I am not aware of errors on the third site but I really don’t know if it is giving errors. The third site is still on Cloudflare for the moment. Can someone tell me how I can find out if that third site is giving errors?

I also have other sites with different themes and I wonder if they are giving errors.

I posted a link to all 3 of my sites mentioned but the post was flagged as spam even though another post in this thread has a link to his site.

@phil4, welcome to the club! Here’s the main thread dedicated to the problem: Sometimes a CF 520 error

Cloudflare Ray ID is different everytime you visit the site, it’s never the same!

Same it loads for me too!

Could you tell me, what steps can trigger the 520 error, cause I’m not getting it

Also, follow these steps to fix the 520 error
Error 520 occurs when the origin server returns an empty, unknown, or unexpected response to Cloudflare.

Resolution

A quick workaround while further investigating 520 errors is to either grey cloud the DNS record in the Cloudflare DNS app or temporarily pause Cloudflare.

Contact your hosting provider or site administrator and request a review of your origin web server error logs for crashes and to check for these common causes:

  • Origin web server application crashes
  • Cloudflare IPs not allowed at your origin
  • Headers exceeding 32 KB (typically due to too many cookies)
  • An empty response from the origin web server that lacks an HTTP status code or response body
  • Missing response headers or origin web server not returning proper HTTP error responses

520 errors are prevalent with certain PHP applications that crash the origin web server.

If 520 errors continue after contacting your hosting provider or site administrator, provide the following information to Cloudflare Support:

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

Cloudflare Status - Elevated 520 errors on Free Zones is now resolved.

If you are still receiving 520s, they are likely caused by an issue on your origin server. Please follow the guidance in the #CommunityTip and Support Center.