Hi there,
I've got a queue of 168 messages and cron isn't sending them.
I set this up last week and it seemed to run fine, but now it's not working.
Not knowing if I have exactly the right configuration, I have two set up:
cd /home/rogan42/public_html/periodic; /usr/local/bin/php -q cron.php
AND /usr/local/bin/php -q /home/rogan42/public_html/periodic/cron.php
Are either of these correct?
In settings > email templates > Send emails from queue, it happens every cron execution (5m-1h): I have "20".
|
TRY:
cd /home/rogan42/public_html/periodic; /usr/bin/php -q cron.php
|
Hi MikeMike250,
Thanks very much for your reply.
I've tried that and still the messages sit in the queue.
Any other ideas?
|
ManOfTeal.COM a Proud UNA site, six years running strong! |
/usr/local/bin/php -q /home/rogan42/public_html/periodic/cron.php
this is the only one you should have, the other should be deleted. send a message to yourself from your sites account to test that mail is being sent.
it is sometimes a problem that when you copy and paste, you add a space at the begining of the cron instruction when setting them up. make sure you dont have any extra space at the start. do not remove the spaces either side of the -q
Sammie
|
if you wish to test your cron job, and make sure you are hitting the correct binary so that the cron can fire try this moderate testing:
http://www.boonex.com/forums/#topic/Cron-Job-Setup-and-Testing-Example.htm
the other suggestion, if in the interim you wish that the emails in queu get sent, go to periodic dir, rename the .htaccess
then call the cron.php file from your browser, that will brute force the cron jobs to fire.
http://yoursite.com/periodic/cron.php
dont forget to reset your htaccess file once you have completed your testing
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Thanks for your replies.
I've tried everything there including running a manual cron job (the page loaded in no time).
The only cron I have running is
/usr/local/bin/php -q /home/rogan42/public_html/periodic/cron.php
|
There are no superfluous spaces.
I sent a message to myself through the system and I received it instantly.
Help!
|
Hi DosDawg,
I've tried doing the test and it doesn't trigger an email to my account.
Any idea what the problem could be there?
|
if you setup the cron to test, then you could possibly have an issue with crond not running.
Hi DosDawg,
I've tried doing the test and it doesn't trigger an email to my account.
Any idea what the problem could be there?
see if your host can look into why your cron jobs are not working, and this could also possibly be an issue with email settings on the server.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |
Thanks DosDawg,
I've asked them to look into it (although they keep telling me it's fine).
Hopefully I'll get it sorted soon.
|
Have you tried this one? Works fine for me.
cd /home/xxxxxx/public_html/periodic; /usr/local/bin/php -q cron.php>/dev/null 2>&1
Replace xxxxx with rogan42 and try sending to your self!
|
The host restarted it and suddenly it's started working again.
Thank yo all so much for your helpful advice.
|
well when you said you ran those cron tests, and were not getting any response from the server, that only leads to two things, either the mail server was not working, or crond was hung up on something.
The host restarted it and suddenly it's started working again.
Thank yo all so much for your helpful advice.
glad you got it going. yeah sometimes hosts will take a first glance, and things appear to be working, but when you look deeper into any given situation, sometimes the hide-a-ways- finally appear. and if they restarted a service, and things got back working, then good deal. glad its working again.
When a GIG is not enough --> Terabyte Dolphin Technical Support - Server Management and Support |