Support » Plugin: Cloudflare » 522 error happening on site

  • Today I received a 522 error on the site. Seems like CloudFlare was not communicating to my site in a timely manner eventually throwing up a 522 error page. For the moment I have disabled CloudFlare to serve directly off the site server and this seems to fixed the current 522 error. Having researched this further it seems like it could just be a firewall not letting the requests through so have asked my hosts to whitelist CFs IPs to see if that fixes the issue. If not then it seems like I will have to see if there is a plugin causing too many requests somewhere.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Hi @g-olly,

    You’re in the correct path. If you continue to encounter this issue feel free to contact.

    @thellimist Thanks for getting back to me. I’m still awaiting responses off my hosts but if the IPs are not the cause, how will I check for plugins throwing out too many MySQL requests? There is a plugin called P3 that seems like it would have been perfect but it has not been updated for a year and so is unsupported. Also I have read in many posts that people have found that CFs page rules were the main culprits of this error. How would you suggest I go through testing these and the best way of checking?

    @g-olly The most probably reason would be firewall. I’d recommend to wait their response. Mean while if you have other questions you can checkout https://support.cloudflare.com/hc/en-us

    Hi thellimist, OK so my hosts have said that they did blacklist the CloudFlare IPs as they were seeing them as an attack, and also the amount of requests was making the server unstable. For the time being I have thought that I might have to use LiteSpeed to sort this out. But I also wonder if there is a way within this plugin of letting the server receive the visitors IPs rather than CFs IPs as this amount from a small range can be seen as an attack by some hosts. I don’t won’t my hosts to relax their good work in keeping attacks under control but I would also like to be able to use CloudFlare without this again becoming an issue. Cheers

    The plugin should rewrite CF IP’s. Is your server using Nginx or Apache?

    @g-olly,

    Sometimes what happens is Cloudflare users will do a full cache purge and if their site has a lot of traffic the requests from Cloudflare to the origin to get to cache the updated content are seen as an attack but this subsides after all the content is in cache again.

    If your host is seeing a legitimate attack coming from Cloudflare IPs we would ask that they file a support ticket with us so we can investigate.

    Thanks,
    John

    @thellimist,

    The server is running Apache. So the plugin should rewrite to origin IPs?

    @jwineman,

    I’ll ask if they are seeing a legitimate attack and contact CF if they are.

    Thanks,
    Olly

    @g-olly,

    The IP rewrite functionality in WordPress only works at the application level, meaning only WordPress and its plugins will see the rewritten IP. If you need server wide IP rewrite for applications other than WordPress (like awstats etc) then you need to use mod_cloudflare.

    Thanks,
    John

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘522 error happening on site’ is closed to new replies.