Community Tip - Fixing Error 522: Connection timed out

Error
Try the suggestions in this Community Tip to help you fix Error 522 “ERR CONNECTION TIMED OUT” in Google Chrome or “The connection has timed out” in Firefox.

Background
A 522 error happens when a TCP connection to the web server could not be established. This typically happens when Cloudflare requests to the origin (your webserver) get blocked. When this happens, you’ll see “ERR_CONNECTION_TIMED_OUT”.

Quick Fix Ideas

  1. Make sure that you’re not blocking Cloudflare IPs in .htaccess, iptables, or your firewall.

  2. Make sure your hosting provider isn’t rate limiting or blocking IP requests from the Cloudflare IPs and ask them to whitelist the IP addresses here: https://www.cloudflare.com/ips. If the IPs that fail are consistent each time, that indicates some of the IPs in Cloudflare’s IP ranges are either being rate-limited or blocked by a network device at your hosting provider. Because Cloudflare operates as a reverse proxy the IP address your server will see is one of a limited number of Cloudflare IPs. In that sense, many actual visitors may all come from the same IP address, which can cause firewalls or security software that is not appropriately whitelisting the Cloudflare IP ranges to block this traffic as it may see it as excessive or malicious

  3. If you are seeing 522 errors in certain locations only, it means you likely forgot to whitelist one of our ranges that corresponds to these locations, so double check to ensure all our IPs are whitelisted appropriately.

  4. Please reach out to your hosting provider or site administrator to confirm if there are any load problems on your infrastructure.

  5. It may be there was a temporary problem on the path or at your origin preventing connections from completing. If they are no longer happening, here are two actions to take: a) Check with your hosting provider to see if they had any issues with packet loss or if your server was under load at the time the errors happened and b) Have your hosting provider or server administrator confirm that all Cloudflare IP ranges are fully whitelisted from any rate limits.

  6. If your firewall is configured to DROP packets rather than refuse connections, it will cause a 521; meaning an incorrectly configured firewall can actually masquerade as a connection timeout 522 error.

Lite Reading

Background Resources
Help Center
YouTube

Research The Issue
Community
Google

If You Need More Help
This community of other Cloudflare users may be able to assist you, login to Cloudflare and post your question to the Community. When you post on the Community make sure to include as much of this information as possible: the specific error message you are seeing, the URLs this is happening on, screen shot of the error, and the steps to reproduce the error. Please indicate what troubleshooting steps you’ve tried in order to help us help you.

This is a Cloudflare Community Tip, to review past tips click here.

Çevirmek…traduzir…翻译…traducir…Traduire…Übersetzen…:greyg: Translate this Tip

FXCTCT 101119

3 Likes
522 error but my server is showing no requests... HELP
Again And Again The Same Problem
522 errors on certain files
Error 522 in Toronto area only
Network DNS and A
Error 522: connection timed out
Error 522 Connection timed out host-domain
Error 522 - Connection Timed Out
When using CDN, sites become very very slow. even sometimes return 522 error
Cant Log-in to my site
Visitors get Error 522
Error 522 website down
Error 522 when using Digi telco, no problem for Wifi and other telco
Https://www.casinocashjourney.com/box24-casino.htm
522 Connection Timeout Error
Site getting error 522 after changing nameserver as told by cloudflare
Error 522 on sub-domain
Web server error timeout (522)
After some times .js files not loading, 2 month i look on this and its still not fixed
SSL Active, but https give 522 (time out)
Can't open my site without WWW
Error 522 on Wordpress Multisite
Help! I whitelisted all CF ips, still not able to pass error 522
Lost website access minutes after switching to Cloudflare
How can I remove cloudflare from my computer? Error 522
Не работает сайт!
Client met Error 522
Error 522 Unable to see one website only when connecting through specific ISP
Error 522 on specific CDN
Problems with some files 522 Error
My site bug error 552
Cant connect to my domain
JS and CSS shows error 522 when Caching is on
For my another site
Connection Time Out 522 and 527 Errors!
Error 522 Connection Timeout
Ошибки сайта
Error 522 Ray ID: 4a3eb2d10adb3fd7 • 2019-02-04 17:01:49 UTC Connection timed out
Getting 522 error when attempting to visit my website
I'm getting this error
Error 522 - Still getting after upgrading Google Cloud trial ended
Error 522 connection time out . server working fine and IP not blocked :(
522 Error Report
Error 522 Connection Timeout CloudFlare
Error 522 Connection Timeout CloudFlare
I got Error 522: Connection timed out on some resources
What's The Best Method To Get Help With Technical Support On Cloudflare?
All Domains Down
Error 522 Issue on Korbscraft.com
Cloudflare is not pointing to my host in my websites!
522 error - trying to host on android phone termux nginx mobile connection with ipv6
522 Error while using CloudFlare proxy (works fine when not)
Site too slow or Error 522
Godaddy website goes down constantly with Cloudflare SSL
Only a few files gives 522 Errors, from only some locations
Website images showing in Europe but not in the US
Want subdomain pointing towards external IP
I m getting error 522
Wordpress plugins dont work (functionality not showing) when cloudflare cache is activated but works fine when using a vpn!
My website is showing Not Secure in browser
Page currently offline error
Help required again
Still Blog Not able to view the blog
Still Blog Not able to view the blog
Domain responding with 522 error
Domain responding with 522 error
Suretrader 522 errors online brokerage
DNS will not resolve to IPv4
WordPress Featured Image is Getting Crashed
Js and Css doesn't work
Consta que já tenho email adicionado, porém não consigo adicionar meu site no cloudflare, por favor preciso de ajuda. Após entrar com o meu email aparece está informação o nome do site "lucianesilvabnfimadvogada.com...... e pending Nameserver Update
My.acentus365.com NOT Working - please help
Error 522 , 2019.04.30
How to tackle 522 errors?
Community Tip - All Published Tips
Error 522 - Can't login in from backend either
Error 522 issues
522 error trying to move to Cloudflare
Error 522 - I cannot see my website
SSL subdomain pointing to another server
How to Fix Error 522
Error 522. Showing its currently offline
Can't Install Wordpress update
Help Error 522: connection timed out problem
A lot of 522 errors on back-end
Para o suporte (erro 522)
Help! Error 522, Connection timed out
Not quite sure what is happening
Issue to connect CF to AWS Load Balancer Error 522
522 error only in china
How do I know what’s my domain nameserver?
Caching and Always Online Issues
All websites in The Netherlands getting 520 & 522 error
522 Error time out
How do I add another domain to my account?
Error 522 occurs although the settings are all correct.
Error 522 from EU locations only
Error 522 on a handful of files
522: Connection Timed Out
Getting 522 errors on random times only
Cloudflare SSL Error
Failed to load resource: the server responded with a status of 522 ()
522 error for site - help!
Unable to reach two websites or their respective email servers
Fail July 2 - not all sites work
522 error in my site
SSl error 522,only los angeles
Error 522 cant fix
Lost HTTPS due to new IP address for my website. How to get a new certificate?
An issue with A record in the DNS config
Another outage today (4th in 20 days)
Error 522 board.ksivi.bz
Facing SSL certificate problem and Error 522
Cloutbucks
Problem with the SSL installation
Problem with the SSL installation
Site was working secured now cant access it
Cloudflare is giving 523 Error! Really!
Problem with https without www
Status code 522
Retry for a live version while using Divi Builder
CloudFlare reporting 522 from various regions
Problema em carregar alguns arquivo e imagens
Error 522 from Europe, but works in Asia and America
Intermittent Error 522 in the same country
522 Error, why this error?
Cloudflare blocks Gutenberg editor and slows down website icons
WAAA Another Problem?!
Why I am getting "This site can’t be reached" in my website
I am not able to login to my cpanel account
Googlebot smartphone HTTP 522
Point CNAME to Static website on S3 is not working
I need help with Error 522(host Error)
Cloudflare website ip
Unexpected 522 error
Error 522 on website -
Error 522 via cloudflare, but sites are working
Domain pointing error 522
How set subdomain to point to different IP address from main domain
Error 522 connection timed out on some sites
Error 1003
Getting more request in apache
522 error after installing Cloudflare
The site began to generate error 522
Error 522 : occurs to only few of my customers
Fixing a 522 error
Hi help web server is not completing requests. An Error 522 means that the request was able to connect to your web server, but that the request didn't finish. The most likely cause is that something on your server is hogging resources.
Https:// problem
Need help internet mobile(TH) cannot connect web
Community Tip - Helpful Links, on Display
Changing A Record for Google Hosting site, causes 522 Error
Website only working on Tor
Error 522 connection error
Subdomain Setup Problem
Directly accessing server (by IP) works fine but accessing through Cloudflare sometimes timeouts
Website no longer working 522 Error
Error 526 Invalid SSL certificate (running nginx)
Error 522 connection timed out only on cloudflare
Can you reach my domain and what error do u get?
522 on port 80 but 443 is fine
522 Error on my website from some networks
Do I add my cloudflare origin certificate to my router to enable access?
Not able to connect to website
Invalid SSL certificate - chain breaks somewhere
104.16.0.0/12 522 errors South Africa, SITES ARE UP
Please help, my site is down by err 522, but I have no idea
Bigmine.io error 522
Wordpress Website Error 521 - cloudflare connected to Google cloud
Site extremely slow - 522 Errors (ddos)
Error 522 connection timeout(host error)
Error 522 on some files and sometimes
Incomplete Whois Verification Issues
Site down after set up
Connection timed out Error 522 with Bitwarden
Several http 522 error
Disable Cloudflare on site, Error 522 disappears
522 Error through Singapore but no error via VPN to Australia
Can we ipv6 only server?
Endless error 522 at zotac store
Error 522 on my web site
'Proxied' - 522, DNS Only - OK
Random timeouts error 522
Error 522 prestashop
Slow loading and 522 errors
522 and 523 time out errors
522 Error after every 3rd page
Cannot setup Full SSL on port 443 but can on port 8443
Keep getting "Error 522" on my domain
Inquiries about resolution for 521 error
Slow Google Maps and Error 522 when cache is on
My website is down, err522
522 Errors on some images and JS files
Trenpedia.com.com/wp-admin/customize
Error 522, I can't reach my webserver
Err_quic_protocol_error
White page or error 522 on Edit Page option
Suddenly website shows This site can’t be reached
Https://www14.animeultima.eu/
Loading problem from Cloudflare
Domain broken
Setting up Cloudflare, "DNS only" works but not "Proxied"
522 Errors in recent days
Site keeps getting 522, 524 Errors
Local Error 522
Error 522 Connection Time Out
Errors 525/522 but only to my IP
Gigantic problem - Cloudflare not working in Denmark at all!
My site won't connect?
Error 522 Connection timed out(Help....)
Error 1000 DNS points to prohibited IP (Help..)
Error 522 - Can't find the problem
Error 522 when proxied | no problem when DNS Only
Cloudflare CDN on my domain
DNS Ayarlarım
Error 522 on my website
http://www.loffertadelmese.com/affiliateproject/tracker/click/tPG
Error 522 only in wp-admin
Error 522 Ray ID: 58149b52ed85d21c • 2020-04-09 13:34:38 UTC Connection timed out
Website assets not loading (error 522) on multiple domains
Switching to Cloudflare causes my site to stop loading
Error 522- clear website cache from cloudflare end
Error 522 on few files
522 problem
AWS EC2 + Cloudflare
522 problem
Error 522 when proxy is turned on
Kemp Load Balancer
Error 522 from Russia
Igvagas.com
Help! I have problems with cloudflare
522 error in two US states
Images missing/not loading - wordpress website
Error 522 Cannot connect to server
Can't access a website
There’s another problem that I am having when doing that
File not cache in certain Cloudflare Data Center
Error 522 Ray ID: 5933738aebbfe9a7 • 2020-05-14 09:04:53 UTC Connection timed out
Error 522 Ray ID: 5935c2a98f4c9bd9
Trying to fix error 522
CF does not support ipv6 proxy?
Error 522 onnection timed out
CF IP v4 Ranges not up-to-date?
522 Error on 000webhost+Cloudflare
Problem with Fruition - Notion Website
I can log into my cpanel or website - i get error
DNS for second domain name not working for some odd reason
Working everywhere but not at home
522 errors - ukraine hosting provider AS200000
522 errors - ukraine hosting provider AS200000
Unable to access website when Cloudflare cache is enabled
Page Responding with error 522
Website alway appear "Error 522 Connection Timed out"
Wordpress admin panel blocked
Https://pakexsolutions.com/wp-admin/
New DNS record not showing in records list
Long loading time when Cache is ENABLED
Error 522 Website
Fix Cloudflare errors
Fix Cloudflare errors
Optimal Cloudflare settings for my website
Constant error 522
Error 522 - packets
Caching makes my WordPress webshop unresponsive or slow at best
My website doesn’t work on Mobile but it does on desktop
Error 522 ( I got mad )
Issue with 522 Errors
Error 522 ! How To Fix?
Please send algorithm for fixing error 522 please
Ssl not working if i am pointing my dns to cloudflare
New wordpress theme and 522 error (wp-admin)
Error 522 with GoDaddy
Can't Resolve server IP address
Getting error 524
Some times i recive error 522
522 error while visiting website
I cant reach to my website
Error 522 on sub-domain
Site works from USA/CANADA, everywhere else receiving partial or full 521/520 errors
Arbitrary 522 Timeout Error Instantly Generated
Sudden error 522
My domain is not working & getting error 502
Erreur 522 Mettre en pause CloudFlare?
Connection timed out Error 522
Error 521 - Unable to have support
Please help - website down - Error 522
Some images returned 522 errors
Cloudflare 522 connection timed out only single Region
[email protected]
Experiencing 522 timeouts
Error : 522 Connection timed out
Website is showing Error 522- Please help
Jquery and 522 errors
522 Error for selective Adresses/Areas for 5+ Minutes
Problem with site - Error 522 Connection timed out
Error 522 Website not working?
Error 522 (tiempo expirado)
Error 522(host Error)
Some resources sometimes don't load - 520 Error code
Throwing a 522, first time using this DNS and can't access my website
Error 522 on my website
Website Error 522
Fixing Error 522 / Connection timed out
522 error with my site
Increase greatly Response time
522 Error - Connection Timeout on Google Cloud Hosting
What can I do with Error 522?
New Subdomain
Socket Fehler 10060 Zeitüberschreitung
Error 522: Connection time out
Error 522 not connecting
522 Error (connection timed out)
DNS is showing cloudflare, but I'm having issues
Host Error522
What am I doing wrong with SSL (full strict)?
Error 522 when trying to access origin server(Kemp load balancer)
Error 522 a huge headache
Domain expired and renewed but cloudflare not work any more
Error 522 just started happening when I hadn't changed anything on the site in a couple of weeks
Can't fix error 522
Error 522 troubleshoot
They tried to attack my website, but instead of putting it down, only the freedom DNS doesn't work
Error 522 - All sites
Website Offline Several Times a Day Recently
Cloudflare proxy ipv6 not working?
Down in Buenos Aires, Argentina - (EZE)?
Wrong Cloudflare DNS Resolver
CloudFlare Certificate on my server
Nextcloud: I can connect to my domain but cannot connect on external devices
Erro 522 não consigo abrir o elementor
Having problems with site - all giving 522 error
Full SSL/TLS is not working, and my origin is secure (HTTPS)
522 Error Connection timed out
522 Error frequent
522 Error frequent
Our Webserver is not reachable sometimes
SSL Error 522 after IP change
522 error and domain not resolving to IP
I transfer my domain register from hostinger to cloudflare, how I set up nameserver in cloudflare domainregister
Wordpress an 522 Errors
Https://danipradofitness.com.br/
Strange situation
Error 522 Connection timed out Ray ID: 60acf54cdec91750 • 2021-01-01 14:33:56 UTC
Slow load site when enable Cloudflare
Some svg images are not loading properly
Cloudflare proxied DNS not working with docker port
Website errors and slowness
Is This Error From Cloudflare?
Cloudflare not loading WordPress scripts
Live version does not load, but host is working
Error 522 two domain
Error 522 : https://dmptrick.com/
Mywebsite is facing
Check my site
Error 522 Ray ID: 61f68b676ef4dd32 • 2021-02-10 14:33:19 UTC Connection timed out
Error 522 host
Bestpost.ga
Cloudflare website is unavailable
Help me pls, error 522
Error 522!
Www.mumblit.com
Error 522 please help
Need help with connection timed out 522 on Pi web server
SSL Encryption Mode: Error 522 on subdomains or ERR_TOO_MANY_REDIRECTS on main domain
Error 522, problem caused by cloudflare
Connection time out
Getting random Error 522
Does Warp Timeout cause 522
Error 522 Issue Server response too long / not response
Error 522 on ec2 amazon aws
Error 522: connection timed out problem
Error 522, Connection timed out
Error 522: Connection
Cloudflare can't connect to my he.net tunnelbroker IPv6 server
522 error every 2 clicks
Https://sitename.com only works sometimes, usually fails but other URLs with http & https loads fine
Slow Initial Load
The Site is very slow after installing SSL certificate with Full (strict) mode
Website is not loading when cloudflare name server is used
The website is not opening when "Always Use HTTPS" enabled
Some Error 522
How can I configure ssl on odoo website? Is for free or I have to contract something?
Changing hosting IP address gives 522 error connection timeout