Get answers quicker by searching

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion

Cron job not running
  • Please see the screenshot here: The cron job is not running even once in 10 minutes (I'd earlier set it up to run once in five min). I'm having to run it manually and it's such a pain.

    The Sendy is on a shared Dreamhost plan.

    I spoke with the customer support guy who confirmed that the jobs are running as expected. What should I do now?

  • Vote Up0Vote Down BenBen
    Posts: 3,646Sendy support


    Please update to the latest version of Sendy →

    Also, you manually run the scheduled.php script and it works, then your cron job is the issue as it's not executing the scheduled.php script to run the campaign.

    Best regards,

  • Hi Ben,

    I've updated Sendy to the latest version.

    The campaign is in Preparing start for more than 10 min (longer than my cron job configuration).

    Can you please check if I've configured the cron job properly? Screenshot here:

    Sendy is hosted on a shared Dreamhost server, and the customer support confirms that the cron job runs once in 5 min but I'm not so sure.

    Thank you.

    Warm regards, Prabu Rajasekaran

  • Vote Up0Vote Down BenBen
    Posts: 3,646Sendy support


    I can't see if all intervals of 5 minutes are selected in the minutes selection field. Can you make sure 5,10,15,20,25,30,35,40,45,50,55,00 are all selected?

    Best regards,

  • I confirm that all the intervals you've mentioned are selected.

  • Vote Up0Vote Down BenBen
    Posts: 3,646Sendy support

    Is your cron job executing every 10mins instead of 5mins or is your cron job not working at all? Can you let your hosting support know again that your cron job isn't working, they should be responsible for making sure your cron job is running.

  • My cron is not executing at all. The hosting support has sent me several logs (which I don't understand anyway) proving that indeed it is working and sending mails.

    Oct 26 11:45:56 alc-shared-relay1 postfix/smtpd[25061]: 908D1782166:[] Oct 26 11:45:56 alc-shared-relay1 postfix/cleanup[25411]: 908D1782166: Oct 26 11:45:56 alc-shared-relay1 postfix/qmgr[8707]: 908D1782166:, size=1511, nrcpt=1 (queue active) Oct 26 11:45:57 alc-shared-relay1 postfix/smtp[25193]: 908D1782166:,[]:25, delay=1.4, delays=0.05/0/0.09/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1414349154 s3si8658150pda.246 - gsmtp) Oct 26 11:45:57 alc-shared-relay1 postfix/qmgr[8707]: 908D1782166: removed

    But the mails are being sent only if I run scheduled.php from the browser.

    How do I proceed?

  • Boom - found out the problem. Dreamhost had recently updated their OS of shared servers to Ubuntu, which doesn't support PHP 5.2 and older. So we had to update the command line to php53. One DH support guy quickly found the issue and suggested I update the version. Once that was done the cron started to run.

    Thank you for all the help, Ben.

This discussion has been closed.
All Discussions