Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author Bruna a11n

    (@bruberries)

    Hi @hhollick,

    I can see the cron URL is still being reviewed by Cloudflare, that’s why the connection is not successful.

    Could you please share with us the rule you’ve created to whitelist the cron URL?

    Thread Starter hhollick

    (@hhollick)

    Thanks Bruna: Here is a screen shot of the CloudFlare firewall rule. Its a URI Query String equal to the URL that I got from System Status that reported the task scheduler was not connecting. Cloudflare shows the rule as active.

    https://www.dropbox.com/s/9wyuinbliifgkh3/2022-01-19%20Cloudfare%20Firewall%20Rule%20for%20MailPoet.png?dl=0

    Plugin Author Bruna a11n

    (@bruberries)

    Hi @hhollick,

    Could you please change the selected action from “Allow” to “Bypass” so we can check if it fixes the issue?

    Thank you!

    Thread Starter hhollick

    (@hhollick)

    Done. Still no luck.

    The Bypass Firewall Rule allowed me to pick any combination of 7 parameters:
    * Hotline Protection
    * Security Level
    * Rate Limiting
    * WAF Management Rules
    * User Agent Blocking
    * Browser Integrity Check
    * Zone Lockdown

    I enabled all of them. The Task Scheduler still can’t connect and I still get the Cloudflare “Please wait while we check your browser page.”

    I also tried setting the Field to URI Full rather than URI Query String with both the Allow and Bypass options. Still no luck.

    Plugin Author Bruna a11n

    (@bruberries)

    Thanks for trying that out.

    Unfortunately, I’m not familiar enough with Cloudflare’s UIs and settings. I’ve asked my collegues for help and it seems the current rule whitelists the ping action, but maybe there should be a run action too to execute the cron.

    If there’s a “Contains” setting, it might work to delete the rest of the string after the “…&action=” portion.

    Thread Starter hhollick

    (@hhollick)

    This is helpful. I’ll open a ticket with Cloudflare and see if they can figure it out from there end.

    Thread Starter hhollick

    (@hhollick)

    Cloudflare confirms that their firewall is blocking the cron job. However, it is not as simple as creating a firewall rule to let it through.

    I identified one of their rules that might be the culprit: Ruleset Name = Bot Fight Mode for Definite Bots. They confirmed that this was the problem, and then asked me the following.

    There you go. And that one’s tough to set up a bypass for. You could try adding your server’s IP address to Firewall → Tools as an Allow, but it’s best to run such functions locally.

    How is your Task Scheduler configured? Visitors to your Site should be sufficient, as that’s how the rest of wp-cron runs.

    Unfortunately, I don’t understand the question or know how to answer it. How is Task Scheduler configured? And what does he mean when he says, “Visitors to your Site should be sufficient”?

    Plugin Author Bruna a11n

    (@bruberries)

    Thanks for sharing more information with us, @hhollick.

    I don’t understand the question or know how to answer it. How is Task Scheduler configured? And what does he mean when he says, “Visitors to your Site should be sufficient”?

    That’s the option you set for the task scheduler in MailPoet > Settings > Advanced tab.

    You can refer to this article: https://kb.mailpoet.com/article/129-what-is-the-newsletter-task-scheduler

    Thread Starter hhollick

    (@hhollick)

    Thanks Bruna. Makes sense now ??

    I tried MailPoet’s own script but to no avail. Nevertheless, that is what I needed to continue the conversation with Cloudflare’s engineer.

    Stand by…

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi again @hhollick ????

    Thanks for the update, just keep us posted if you need anything else from us.

    Cheers

    Thread Starter hhollick

    (@hhollick)

    I finally got MailPoet’s task scheduler working by turning off Cloudflare’s aggressive “Super Bot Fight Mode.” All seems to be working now.

    Thanks to all who helped along the way. I love this community.

    Heather

    Plugin Support Dani F. a11n

    (@danielinhou)

    Hi again @hhollick ????

    I just got back to the issue when you had all under control but I am glad to see that you eventually got the task schedule to work.

    Thanks for the update.

    Cheers

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Task Scheduler connection unsuccessful’ is closed to new replies.