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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
Pages: 1 2 [3]

Author Topic: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur  (Read 12023 times)

garkalulu

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
June 20, 2012, 10:41:20 pm
I am using Joomla 2.5 with CiviCRM 4.1.3

Could there be anything wrong with my PHP settings or my server setting that prevented it from working?

I had no problem with the URL trigger before moving to consolidated cornjob (i.e. in 4.0.x version)
In Civi4.1, I have no problem executing it manually from "scheduled Jobs" page

The problem is only when triggering using the cron.php URL trigger. The trigger is logged by no action occur.

would appreciate your help.
« Last Edit: June 20, 2012, 10:49:43 pm by garkalulu »

jimurl

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 0
  • CiviCRM version: 3.4.6
  • CMS version: drupal 6.22
  • MySQL version: 5+
  • PHP version: 5+
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
June 29, 2012, 12:11:56 pm
I have been struggling to get the Consolidated Cron Jobs to work as well. I did figure out one problem, and it might be your issue as well, Garkalulu.

I could run /bin/cron.php?alltheparameters=thishere from the browser, but from the cron job it failed. I had only one job, process_mailing, enabled. When I visited CiviMails "scheduled and completed mailings" page, it showed any mailing which had been queued as "Running", but it never got to "Complete" (with a very small, test bulk mailing).

I was calling it in the cron job like this:
Code: [Select]
*/3 * * * * wget -O - -q -t 1 http://mysite/sites/all/modules/civicrm/bin/cron.php?user=drupalusername&pass=password&key=site-key
but the ampersands in the request parameter were breaking it. Rather, ONE NEEDS QUOTES AROUND the url in the wget COMMAND like this:

Code: [Select]
*/3 * * * * wget -O - -q -t 1 "http://mysite/sites/all/modules/civicrm/bin/cron.php?user=drupalusername&pass=password&key=site-key"
Without the quotes, the ampersand is interpreted to mean "run the previous command in the background" , and the remaining part of the line is interpreted as a new command or something.

Anyway, don't be like me- use quotes before beating head against the wall.
« Last Edit: June 29, 2012, 01:12:42 pm by jimurl »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
June 29, 2012, 01:11:17 pm

hey jim:

can you update the wiki docs on this and remind folks with your tip. I think there is a wiki page for managing and running scheduled jobs

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

dhoogmoed

  • I’m new here
  • *
  • Posts: 11
  • Karma: 0
  • CiviCRM version: 4.1.1
  • CMS version: Joomla 2.5.2
  • MySQL version: 5.1.56-log
  • PHP version: 5.2.17
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
July 01, 2012, 11:47:17 pm
Hi Gents,

The addition of quotes seemed to have helped, but in my wget statement I also had backslashes just before the ampersands. These were left over from the line which I used before the upgrade to 4.1 and worked. I noted that there were no backslashes in JIMURLs line so I removed them and presto: No more username/password error.

Running the line separately in a browser window, results in a blank page being returned. (i.e. NO error)

However despite all this, my scheduled jobs STILL don't run. It is much the same as before. CRON job runs but no individual schedules are fired off.

Any help appreciated.

Dik

garkalulu

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.1.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.0.92
  • PHP version: 5.2.17
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
July 08, 2012, 09:27:34 pm
Thanks Jimurl,

but my problem is still there. The same as dhoogmoed.

I have set mailing in the scheduled job as enabled.
I manage to run the cron.php file both on browser and through cronjob but the jobs just won't get completed.

hope someone could help..

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
July 08, 2012, 10:45:30 pm
My experience is that some jobs are fine - but enabling the membership one causes it to break. Try with just mail enabled & see if it's job-specific.
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

usr238496

  • I post occasionally
  • **
  • Posts: 85
  • Karma: 0
  • CiviCRM version: latest
  • CMS version: joomla2.5
  • PHP version: 5 something
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
July 10, 2012, 03:21:03 pm
Quote from: garkalulu on July 08, 2012, 09:27:34 pm
Thanks Jimurl,

but my problem is still there. The same as dhoogmoed.

I have set mailing in the scheduled job as enabled.
I manage to run the cron.php file both on browser and through cronjob but the jobs just won't get completed.

hope someone could help..

The jobs do not complete, i.e they can be viewed from the scheduled mailings screens as started but never complete. Or they do not start at all?

I finally got this working today after hours of headbanging against the wall, you can read me talking to myself here http://forum.civicrm.org/index.php/topic,24926.15.html :)


If they do not start, have you actived scheduled jobs? An obvious one, but it got me.
Administer > System settings > scheduled jobs

I also had trouble with:
line 10 in /root/libraries/joomla/environment/uri.php
Code: [Select]
defined('JPATH_PLATFORM') or die;
which not being set, is killing the page.
That can be "fixed" by adding the following above the above line(both values appear to be the same thing in my tests)
Code: [Select]
if(!defined('JPATH_PLATFORM') && defined('JPATH_LIBRARIES')) {
   define('JPATH_PLATFORM', JPATH_LIBRARIES);
}
I think this is a bit of a legacy issue with Joomla as when looking into this, it seemed they were talking about removing / deprecating. I didn't read too much but the additional

Then there other fixes suggested in the thread linked above
You did not answer the verification questions correctly - sigh

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur

This forum was archived on 2017-11-26.