522 Error after using cloudflare for a while

Hi guys, so i got the 522 error, i wasnt making any changes from server side, when it happened i used elementor, but i dont think that it has something i common. What could be the issue ?
40 Replies
Aniqu
AniquOPā€¢5mo ago
My host is A2Hosting and also tried turning the cloudflare off and clearing the cache, it also didnt helped, when i turn it on, i still get the error 522. But when i leave it turned off, my website is works like a charm...
Idle
Idleā€¢5mo ago
check if you are being served a cached status
Aniqu
AniquOPā€¢5mo ago
how do i do that ? i mean my website is not cached by the cloudflare or my host at the moment. What do you have in mind ?
Idle
Idleā€¢5mo ago
you said that the error goes away if you turn off cloudflare?
Aniqu
AniquOPā€¢5mo ago
right
Idle
Idleā€¢5mo ago
so either your server is not responding to cloudflare, or you are being served a cached 522 error
Idle
Idleā€¢5mo ago
for example check your network tab for the response and see if it's being loaded from your local cache
No description
Idle
Idleā€¢5mo ago
also, what encryption mode are you using?
Aniqu
AniquOPā€¢5mo ago
sorry im not following, im new on this stuff šŸ˜„ encryption mode on cloudflare ?
Idle
Idleā€¢5mo ago
Aniqu
AniquOPā€¢5mo ago
Full
Aniqu
AniquOPā€¢5mo ago
No description
Idle
Idleā€¢5mo ago
does your origin server listen on port 443?
Aniqu
AniquOPā€¢5mo ago
how do i check that ?
Idle
Idleā€¢5mo ago
your server is running linux i assume?
Aniqu
AniquOPā€¢5mo ago
yes
Idle
Idleā€¢5mo ago
sudo netstat -tulpn | grep LISTEN run this in your console
Idle
Idleā€¢5mo ago
No description
Idle
Idleā€¢5mo ago
in the 4th column at the 4th row you can see i have a service listening at port 443
Aniqu
AniquOPā€¢5mo ago
If you know where i can find console on cpanle that would be great, if not im wont be able to answer you that šŸ˜„
Idle
Idleā€¢5mo ago
um sec i don't use a2hosting, so this is the only link i found on the topic: link
Aniqu
AniquOPā€¢5mo ago
well i tried to search if a2hosting gives ssh credentials but i havent found anything
Idle
Idleā€¢5mo ago
well i'm not quite sure how you are running and configuring your server since i haven't used a2hosting
Aniqu
AniquOPā€¢5mo ago
well its kinda automated, didn't had to do much, i will try to reach out for a2hosting support if my server listen on port 443 and comeback with the answers
Idle
Idleā€¢5mo ago
if you disable cloudflare and connect to your website, is your connection still over https?
Aniqu
AniquOPā€¢5mo ago
yes
Idle
Idleā€¢5mo ago
would you mind sharing the url of your site? well, now i'm confused šŸ˜… might be best to ask your provider about this
Aniqu
AniquOPā€¢5mo ago
what the problem ?
Idle
Idleā€¢5mo ago
No description
Idle
Idleā€¢5mo ago
it seems like your server is not responding on port 443 set cloudflare's encryption mode to flexible and re enable it that should be a temporary workaround
Aniqu
AniquOPā€¢5mo ago
okay i will try, thanks
Idle
Idleā€¢5mo ago
let me know if it works
Aniqu
AniquOPā€¢5mo ago
i reached out for a2hosting support, they are already checking on this
Idle
Idleā€¢5mo ago
did you try flexible encryption in the meantime?
Aniqu
AniquOPā€¢5mo ago
yeah but nothing happened yet
Idle
Idleā€¢5mo ago
i'm checking your domain and it's still resolving to your origins ip
Aniqu
AniquOPā€¢5mo ago
it should be on now, well i hope i took affect so the cloudflare took effect and my website is broken again @Idle
Idle
Idleā€¢5mo ago
No description
Idle
Idleā€¢5mo ago
i noticed
Aniqu
AniquOPā€¢5mo ago
xD
Want results from more Discord servers?
Add your server