Author Topic: Error 520 from Cloudflare  (Read 8606 times)

0 Members and 1 Guest are viewing this topic.

Offline
**
Error 520 from Cloudflare
« on: September 07, 2020, 02:38:44 PM »
Ok, first I hope I'm in the right forum to post this.


For the last days I'm getting complaints from my customer hosting their site on my server that they're getting Error 520 from Cloudflare when loading their site, but refreshing the page loads the site normally.
So at start I thought they were imaging these. But when more clients complained, I went into one of them and simply clicking links. And after 20-30 clicks I got a 520 error myself.

Here's a screenshot of the error: https://pasteboard.co/JpZsAZG.png

So I've tried lowering PHP versions, rebuilding the webservers, looking at the logs (couldn't find something relevant) and more... but it didn't help. Yesterday I rebooted the server and I could swear the issue was gone.
But just a few minutes again a client complained about this again. I've went to the site an encountered it myself.


By the way, yesterday before rebooting I've simply paused the use of CF for those complaining customers (coloring the cloud Gray instead of Orange) and it seemed to have fixed the issue. BUT! Then we've found out that iOS based devices got a can't load site permanently, so that wasn't a good solution either.

Trying to search some information, I've found on CF's forums the following solution:
Quote
My host had to whitelist cloudflares IP address range in order for everything to work, after they did this everything functioned normally


Any idea if that might be the solution for CWP too and how to do it? If not, any idea what might be wrong with my CWP?

FYI, my system information is (taken from CWP Pro dashboard):
Hosted on: Hetzner
CPU Model: AMD EPYC Processor (with IBPB)
CPU Details: 4 Core (2495 MHz)
Distro Name: CentOS Linux release 7.8.2003 (Core) [updated all updates]
Kernel Version: 3.10.0-1127.19.1.el7.x86_64
Platform: x86_64
CWPpro version: 0.9.8.1006

Apache version: Apache/2.4.39
PHP version: 7.3.18
MySQL version: 10.1.46-MariaDB
« Last Edit: September 07, 2020, 02:43:38 PM by ring_c »

Re: Error 520 from Cloudflare
« Reply #1 on: September 07, 2020, 08:31:50 PM »
Check your CSF setting with respect to Cloudflare. IF you have the official CSF GUI installed then it is much more obvious where to find this.

Offline
**
Re: Error 520 from Cloudflare
« Reply #2 on: September 08, 2020, 02:22:00 PM »
Check your CSF setting with respect to Cloudflare. IF you have the official CSF GUI installed then it is much more obvious where to find this.
Nothing seems to be wrong with CSF.


Offline
**
Re: Error 520 from Cloudflare
« Reply #3 on: September 09, 2020, 05:27:58 PM »
Ok, I've fixed it.
It seems I've installed HTTP/2 both in Nginx and Apache. Removing it from Apache - fixed the issue.
Actually, I've emptied the http2.conf file and recompiled Apache.

Offline
*
Re: Error 520 from Cloudflare
« Reply #4 on: September 13, 2020, 06:08:39 PM »
Ok, I've fixed it.
It seems I've installed HTTP/2 both in Nginx and Apache. Removing it from Apache - fixed the issue.
Actually, I've emptied the http2.conf file and recompiled Apache.

where i can find that file in file manager please guide me the right path sir...

Offline
**
Re: Error 520 from Cloudflare
« Reply #5 on: September 13, 2020, 06:18:43 PM »

where i can find that file in file manager please guide me the right path sir...

/usr/local/apache/conf/httpd.conf

Offline
*
Re: Error 520 from Cloudflare
« Reply #6 on: September 14, 2020, 01:12:01 PM »

where i can find that file in file manager please guide me the right path sir...

/usr/local/apache/conf/httpd.conf

https://i.imgur.com/u9otWZQ.jpg

there is no http2.conf file available only one httpd.conf file is available, my some domains are giving 520 from many days.. :(