My site shows Error 524 Timeout

I need to solve my timeout issue, It is happening very often and the site shows error 524 timeout. Can you please check what is causing this issue?

  • Kasia Swiderska
    • Support nomad

    Hello Stan ,

    I’m very sorry about this issue with downtime on your site.

    Our developers checked logs in the time of the event but there was nothing unusual there. I would like to gather more information that could help us. Do you recall on which page this error showed up exactly – like is it always home page or store page? Or maybe there was specific action running when this showed? Like plugin update?

    kind regards,
    Kasia

  • Stan
    • Design Lord, Child of Thor

    Hi Kasha,

    Today I’m working all day long with my website, just graphic adjustment, and..I ave found that actually time out always appears around a full hour. But each hour!!! That’s a lot ..at 10am, 11am,12am…..till now 4pm…..Please find the connection to it. I have deleted 2 plugins yesterday which was slowing my page down a bit, but the issue today continues. It is not connected to any plugin. I have anyway just a good plugin, mainly premium.
    Cloudflare runs perhaps as it should. I just checked there everything.
    I just know that at my previous hosting this never actually happened to me…
    Please investigate more.

  • Zafer Oz
    • Staff

    Hey Stan,

    I am sorry that you are experiencing this issue.

    Timeout Error 524 is more related to Cloudflare side and occurs when it has trouble in establishing a connection with the website when the process takes a bit longer and has different allowances in accordance with the type of membership.

    For more information please read below link
    https://support.cloudflare.com/hc/en-us/articles/115003011431#524error

    You can try either disabling Railgun or test & select a working connection from the list of options in Cloudflare by going to the Cloudflare dashboard -> Speed -> Railgun and and see if it helps.

    For further details and the tips please see below link
    https://community.cloudflare.com/t/community-tip-fixing-error-524-a-timeout-occurred/42342

    Please also give us more details about your previous hosting provider specifications if they were the same with the Bronze plan that you are using at the moment and with the same plugins.

    Kind Regards,
    Zafer

  • Stan
    • Design Lord, Child of Thor

    Hi Zafer,

    Thanks for your response.
    After carefully read the content you have shared with me (the links), this came up:

    1.I’m not running Railgun
    2. This issue wasn’t happening, for example, 2months ago and before with your hosting so there must be certain connection to some aspect. Either database, Ram, CPU..
    3. A timeout occurs in exact intervals…at 8:55, 9:55, 10:55…we need to be sure to what is it related.
    4. On this Thursday there wasn’t almost no timeout…why? I have absolutely no idea.
    5. What I know for sure, there must be solution to get rid of this issue. It wasn’t here before and I want to kindly ask you again to find the cause and professional solution.

    On my previous, shared hosting I was using Cloudflare as well and nothing never appeared for 1year.

    Thank you.

  • Promise
    • Recruit

    Hi Stan

    Thank you for your patience while we investigated this issue.

    As rightly mentioned above, Cloudflare times out after connecting to an origin server and waiting for 100s.

    Using the timestamps you shared with us, I checked the logs.

    In Nginx for instance, I could see errors related to ModSecurity blocking suspicious access, an example snippet:

    2020/06/23 14:29:42 [error] 21247#21247: *743054 [client 187.148.127.152] ModSecurity: Access denied with code 403 (phase 2)

    Also in the shared timeframe, in PHP FPM, I could see warnings that you have hit limits and you should consider raising it.

    So Cloudflare connected to your server and in one of those times, PHP hit its limit and was slow to respond, causing Cloudflare to return the 524 Error.

    Checking your Audit Log in Hosting, I can see you have upgraded to Silver plan on June 28, 2020.

    Please let me know if you are still facing the 524 Timeout error with Cloudflare after the upgrade.

    Best regards,
    Promise