WordPress.org

Ready to get started?Download WordPress

Forums

wp-cron.php request crashes IIS (10 posts)

  1. kbevington
    Member
    Posted 5 years ago #

    Hi, I have an issue here with wp-cron.php. A process apparently runs using this page with this type of request "/wp-cron.php?check=", once or twice an hour all day long without causing any problems.

    At about 5:30am edt almost like clockwork, this request starts happening 1 to 2 times a second. I typically end up having to restart the VPS container, to get things back to normal. At times (like today), I was too late, it not only took my VPS node down, it took the entire server down.

    First question, is there a way to determine what maybe calling this?

    Second question, is there a way to stop this all together until I can figure out what is causing the problem?

    WordPress is installed on Windows 2003 server, IIS 6.0, on a VPS node.

    Thx

  2. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Look in the server log. Where are the hits coming from?

    WordPress itself hits its own wp-cron.php file when it determines there is a cron job that it needs to run. wp-cron is what runs it. Usually these are pinging requests after publishing a post, or a future post needs to publish.. Things like that.

  3. kbevington
    Member
    Posted 5 years ago #

    Thx for the quick reply, and sorry for the delay but I needed to recheck those logs. Its NOT reflecting an external IP accessing this file. Its referencing the firewall IP, which is what I thought I saw before, so it seems the http request was coming from the server itself...

  4. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    Hmmm.. is there anything in particular that happens at 5:30? Do you have future posts set to publish then?

  5. kbevington
    Member
    Posted 5 years ago #

    no I do not...

    So your saying that would be the only time WP itself would access this file?

    I am assuming Plugins, can and do use this page, is this correct?

  6. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    No, WP hits wp-cron whenever there's a job to be run. This can be at various times all throughout the day.

    Look for a plugin called "WP-Crontrol". That gives you an admin screen to let you see what wp-cron jobs are waiting.

    I'm not sure what you mean by "plugins can and do use this page".

  7. ericr23
    Member
    Posted 5 years ago #

    When does wp-cron do its once-a-day tasks?

    Our site also has problems around 5:30 every morning, just when our news guy is trying to post.

  8. ericr23
    Member
    Posted 5 years ago #

    On the other hand, perhaps he's getting hit by a bunch of wp-cron tasks triggered by his being the first one on the site for a while?

    How can I run wp-cron with a cron command to clear it out before the day's work? Do I just run the wp-cron.php script?

  9. ericr23
    Member
    Posted 5 years ago #

    Duh, just request any wp page to trigger wp-cron -- right?

    Meanwhile, back to the 5:30 a.m. site problems, it suddenly occurred to me to check the root cron, since we're now on VPS. Sure enough, several tasks were scheduled around that time. I rescheduled them earlier and for good measure set up a daily reboot at 4:15 a.m. It seemed to help.

  10. Samuel Wood (Otto)
    Tech Ninja
    Posted 5 years ago #

    When does wp-cron do its once-a-day tasks?

    Doesn't work that way. wp-cron gets called when any WP Page is hit and there are expired tasks to do. There are not any "once-a-day" tasks by default.

    Duh, just request any wp page to trigger wp-cron -- right?

    Yep. If it needs to run, it'll run.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags