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•10mo 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•10mo ago
check if you are being served a cached status
Aniqu
AniquOP•10mo 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•10mo ago
you said that the error goes away if you turn off cloudflare?
Aniqu
AniquOP•10mo ago
right
Idle
Idle•10mo ago
so either your server is not responding to cloudflare, or you are being served a cached 522 error
Idle
Idle•10mo 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•10mo ago
also, what encryption mode are you using?
Aniqu
AniquOP•10mo ago
sorry im not following, im new on this stuff šŸ˜„ encryption mode on cloudflare ?
Idle
Idle•10mo ago
Aniqu
AniquOP•10mo ago
Full
Aniqu
AniquOP•10mo ago
No description
Idle
Idle•10mo ago
does your origin server listen on port 443?
Aniqu
AniquOP•10mo ago
how do i check that ?
Idle
Idle•10mo ago
your server is running linux i assume?
Aniqu
AniquOP•10mo ago
yes
Idle
Idle•10mo ago
sudo netstat -tulpn | grep LISTEN run this in your console
Idle
Idle•10mo ago
No description
Idle
Idle•10mo ago
in the 4th column at the 4th row you can see i have a service listening at port 443
Aniqu
AniquOP•10mo 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•10mo ago
um sec i don't use a2hosting, so this is the only link i found on the topic: link
Aniqu
AniquOP•10mo ago
well i tried to search if a2hosting gives ssh credentials but i havent found anything
Idle
Idle•10mo ago
well i'm not quite sure how you are running and configuring your server since i haven't used a2hosting
Aniqu
AniquOP•10mo 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•10mo ago
if you disable cloudflare and connect to your website, is your connection still over https?
Aniqu
AniquOP•10mo ago
yes
Idle
Idle•10mo 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•10mo ago
what the problem ?
Idle
Idle•10mo ago
No description
Idle
Idle•10mo 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•10mo ago
okay i will try, thanks
Idle
Idle•10mo ago
let me know if it works
Aniqu
AniquOP•10mo ago
i reached out for a2hosting support, they are already checking on this
Idle
Idle•10mo ago
did you try flexible encryption in the meantime?
Aniqu
AniquOP•10mo ago
yeah but nothing happened yet
Idle
Idle•10mo ago
i'm checking your domain and it's still resolving to your origins ip
Aniqu
AniquOP•10mo 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•10mo ago
No description
Idle
Idle•10mo ago
i noticed
Aniqu
AniquOP•10mo ago
xD

Did you find this page helpful?