CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • can't get cron to fire
Pages: [1]

Author Topic: can't get cron to fire  (Read 966 times)

lesley

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 1
can't get cron to fire
August 31, 2014, 08:45:26 am
4.4.6 (but wouldn't work on 4.4.0 either
Can't run from url either (silent fail)

the command I am putting in cron (via cpanel) is
"wget -O - -q -t 1 'http://*****.org.au/contacts/sites/all/modules/civicrm/bin/cron.php?name=postie&pass=*****&key=873ad3bb646907afa91ec20ab97b7944'
which works fine for another account at same webhost

the site key is same as civisettings

my webhosting support said the following

"Also it is advised to invoke cron using curl or PHP function as mentioned in link below.

---------
https://www.digitalpacific.com.au/esupport/index.php?/Knowledgebase/Article/View/313
---------

I tried to manually run the cron and got the following error.

---------
*****@*****.asn.au [~]# curl -s http://*****.org.au/contacts/sites/all/modules/civicrm/bin/cron.php?name=postie&pass=*****&key=******646907afa91ec20ab97b7944
[1] 43071
[2] 43072
*****@*****.asn.au [~]# ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs

*****@*****.asn.au [~]# php -f /home/contacts/sites/all/modules/civicrm/bin/cron.php?name=postie&pass=****&key=*****646907afa91ec20ab97b7944
[1] 40693
[2] 40694
*****@*****.asn.au [~]# No input file specified.

[1]- Exit 255 php -f /home/contacts/sites/all/modules/civicrm/bin/cron.php?name=postie
[2]+ Done pass=****
*****@*****.asn.au [~]#
---------

Please check with your developer for better assistance on this matter.
"

the postie user has appropriate permissions (tried with super user and no good either)

error message emailed by cpanel cron =
/usr/local/cpanel/bin/jailshell: http://*****.org.au/contacts/sites/all/modules/civicrm/bin/cron.php?name=postie: No such file or directory


Additionally if I fire it manually from scheduled jobs it only sends to first one of three contacts.

hope someone can help I've been at this for hours *sigh*

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: can't get cron to fire
August 31, 2014, 11:27:27 am
Here's my cron, but I have backslash delimiters to separate name, pass and key and no quote marks around the bit starting http

wget -O - -q -t 1 http://www.blah.org.uk/sites/all/modules/civicrm/bin/cron.php?name=admin\&pass=blahblah\&key=blahblahblah    
Andy Clark

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: can't get cron to fire
August 31, 2014, 12:24:38 pm
Quote from: lesley on August 31, 2014, 08:45:26 am
Can't run from url either (silent fail)

What does that mean? The output is supposed to be nothing when you load the URL in the browser. Do you mean that no jobs are triggered?

Quote from: lesley on August 31, 2014, 08:45:26 am
Additionally if I fire it manually from scheduled jobs it only sends to first one of three contacts.

Is your email throttle set to 1 perhaps?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lesley

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 1
Re: can't get cron to fire
August 31, 2014, 06:48:46 pm
Thanks Hershel
re: run from url yes I mean that no jobs are triggered (as evinced by jog log under manage scheduled jobs and also mailing stays with status scheduled)
and throttle is set to 0

thanks clarkac but that just gives me "Sorry, unrecognized username or password."

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: can't get cron to fire
September 01, 2014, 03:50:52 am
Perhaps a module or theme in Drupal is causing the problem.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

lesley

  • I post occasionally
  • **
  • Posts: 64
  • Karma: 1
Re: can't get cron to fire
September 01, 2014, 02:21:43 pm
Update
The mailing scheduled to run "immediately" finally ran many hours later.
So it wasn't a cron problem at all - it was a timezone thing.
Once I fixed timezone in drupal all was well.
My bad!
Apologies.
So I'm adding mailing stuck on scheduled and mailing won't run here in case others hit the same issue.

But Hershel mailing is still only sending 1 of three emails. Tried with throttle on zero and 250000 - which i believe is 900 per hour (host limit is 1,000)
Should I start this as new thread?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: can't get cron to fire
September 02, 2014, 03:37:13 am
Quote from: lesley on September 01, 2014, 02:21:43 pm
Should I start this as new thread?

That's a good idea, yes.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • can't get cron to fire

This forum was archived on 2017-11-26.