• Resolved Kay Belardinelli

    (@kangabell)


    I’ve set up the cron jobs as instructed on my hosting account cpanel (with Hostgator). According to Hostgator support, the crons are successfully executing, and in the logs I can see it. For example:

    May 30 00:30:02 gator3261 CROND[914817]: (koolpop) CMD (/usr/bin/GET https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=trigger)
    May 30 00:45:02 gator3261 CROND[965018]: (koolpop) CMD (/usr/bin/GET https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=processing)

    However, the import does not seem to be triggering. In my import history, only “manual run”s are there. I’ve also confirmed that the “Manual Scheduling” checkbox is checked on the import. I only have a single import saved in “Manage Imports” so I know it is the correct one. The import is of a csv file located remotely.

    How can I get the cron job to trigger an import?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Kay Belardinelli

    (@kangabell)

    Update: Interestingly, within the past 10 minutes the import did run. Is it possible that the cron import is tied to using the site? I did not work on or visit the site for almost a week, during which the cron did not run, but it seems that right after I finally went into the admin of the site to make updates it did run…

    Plugin Author WP All Import

    (@wpallimport)

    Hi @kangabell

    According to Hostgator support, the crons are successfully executing, and in the logs I can see it.

    Your cron commands should be using “wget” or “curl” to fetch the trigger and processing URLs. Here’s an example of how it should look in cPanel: https://d.pr/i/2fbrtQ. Is that what your cron jobs look like?

    Is it possible that the cron import is tied to using the site?

    This would be the case if you were using cron events in WordPress, but it should not be the case for server cron jobs that are running at a set time and fetching the trigger/processing URLs.

    Thread Starter Kay Belardinelli

    (@kangabell)

    Hello,

    With hostgator I believe it is /usr/bin/GET instead of wget? Documentation here: https://support.hostgator.com/articles/cpanel/what-do-i-put-for-the-cron-job-command

    The cron job did successfully trigger the import, but only once for some reason (despite the cron job running many times).

    My cron jobs look like this:
    /usr/bin/GET https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=trigger
    /usr/bin/GET https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=processing
    each running every 15 minutes (the most frequent Hostgator allows)

    I’ve also tried wget instead of /usr/bin/GET.

    Plugin Author WP All Import

    (@wpallimport)

    Hi @kangabell

    With hostgator I believe it is /usr/bin/GET instead of wget? Documentation here

    Looks like you’re right.

    My cron jobs look like this

    Can you please try wrapping your URLs in quotes? For example:

    /usr/bin/GET "https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=trigger"
    /usr/bin/GET "https://gator3261.temp.domains/~koolpop/rishows.com/wp-cron.php?import_key=PJNu-WhDnt&import_id=5&action=processing"

    If that doesn’t help, try visiting the URLs in your browser – if that works, then you’ll just need to work with HostGator support to figure out why the URLs aren’t being fetched properly. If it doesn’t work, contact us at https://www.wpallimport.com/support/ so that we can look into this further.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Scheduled Cron Import Not Working’ is closed to new replies.