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)

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: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
April 22, 2012, 01:33:33 am
Will, I have 4.1.2 with Drupal and cron is running just fine.  You have to configure cron to run civicrm's cron.php - Drupal's cron will only run whatever is configured for Drupal.  See http://wiki.civicrm.org/confluence/display/CRMDOC41/CiviMail+Installation#CiviMailInstallation-SettingUptheCronJob
Andy Clark

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
April 26, 2012, 06:18:40 am

hey will:

U'll need to add a civi cron to the cronjob. We've not linked it to drupal cron (as yet, not sure if we will do so)

check:

http://wiki.civicrm.org/confluence/display/CRMDOC41/Managing+Scheduled+Jobs
http://wiki.civicrm.org/confluence/display/CRMDOC41/Running+Command-line+Scripts+via+URL (end of page)

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
May 09, 2012, 12:26:56 am
Hello Team,

I've upgrade yesterday to 4.1.2 and like the previous post: no change. The main event is triggered but individual jobs are not.

Any advice welcome,

Dik

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
May 09, 2012, 03:13:49 am
Your jobs are enabled at civicrm/admin/jobs ?
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.

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: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
May 09, 2012, 06:04:36 am
Will
1.  Cron command has a username that is known to Drupal, correct password, and has Drupal permissions enabled for Civicrm?
2. Your site key is correct?  Look in the civicrm settings file for this (search for 'key')

If  these are ok, run the command in your browser and see what happens - this may tell you exactly what's wrong.
Andy Clark

johnsopaul

  • I’m new here
  • *
  • Posts: 8
  • Karma: 1
  • CiviCRM version: 4.3
  • CMS version: 2.5
  • MySQL version: 5.0
  • PHP version: 5.3
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
May 13, 2012, 02:15:44 pm
i'm on joomla 2.5 and this may be unrelated but i'm also on a shared host that has both php5.2 and 5.3.  the cron job i  set up originally was using the 5.2 binary - the default - when i used the 5.3 binary jobs were executed ok

paul

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
May 14, 2012, 11:29:07 pm
Thanks All for feedback

Q1) Your jobs are enabled at civicrm/admin/jobs ?
<YES, and for good measure I disabled and re-enabled them>
 
 
Q2)  Cron command has a username that is known to Drupal, correct password, and has Drupal permissions enabled for Civicrm?
<YES, I'm aware. The main job clearly runs ans is logged as such. It's any individual job that doesn't. Manually running them works fine. BTW I'm on Joomla>
Q3) Your site key is correct?  Look in the civicrm settings file for this (search for 'key')
<YES, I'm aware and it is correct. In fact this is one of the missing instructions during/after an upgrade: Your site key changes and this should be reflected in any cron job.

Q4 If  these are ok, run the command in your browser and see what happens - this may tell you exactly what's wrong.
<AH: It says: ERROR: Invalid username and/or password. However user is valid and can login to Joomla. I've tested it now and gave this user Admin rights temporarily but still no joy>

I'm using wget with cron.php. LOBO has advised earlier to use cli.php if I can and this may resolve the issue, but thus far I've been unable to figure out what the correct syntax should be. FYI I have to work the cron jobs through Cpanel on a shared host.

Any help appreciated

Dik

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
May 15, 2012, 02:25:30 am
Quote from: dhoogmoed on May 14, 2012, 11:29:07 pm
Q4 If  these are ok, run the command in your browser and see what happens - this may tell you exactly what's wrong.
<AH: It says: ERROR: Invalid username and/or password. However user is valid and can login to Joomla. I've tested it now and gave this user Admin rights temporarily but still no joy>

This is the issue--the main cron job is not running at all. Perhaps you have a funny character in your password? Try using just letters and numbers for the password (and login).
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.

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
May 15, 2012, 11:22:00 pm
OK - I had one punctuation mark in the password (had been there since 4.01 when it worked!). Removed it, but it makes no difference.
I can't believe that permissions are the issue when the job log is updated each time cron.php runs:

This is the entry (normally every hour)
2012-05-16 06:15:02      
Summary
Starting scheduled jobs execution

The user obviously has permissions to update at least the log so some kind of login has occurred.

Awaiting further ideas....

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
May 16, 2012, 03:46:55 am
What do you see when you put the URL in the browser now? You must get this to work and show NO output before anything will work.
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.

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
June 04, 2012, 12:22:16 am
Right, Tested again, with the Joomla admin password and I get the same result: "ERROR: Invalid username and/or password".

I double checked the site key which turned out to be OK (i.e. the same as in the civicrm.settings.php file.

I can only conclude now that cron.php has stopped working altogether since the upgrade to 4.1.

I don't know where to go from here.

I'm happy to attempt other scheduling methods (php.cli?) but from the available documentation I'm unable to work out how that should be set-up on a Joomla installation/Cpanel host.

Thanks,

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
June 12, 2012, 07:37:52 pm
Hi,

I have the same problem.
The cron job ran but no job executed.

This entry will appear in the log every hour as set in the cron and it will also appear if I trigger by URL.

2012-xx-xx xx:xx:xx
Summary
Starting scheduled jobs execution


Even after upgrade to PHP5.3 it still does not work.

Will this be solved in 4.2?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
June 13, 2012, 03:05:40 am
Quote from: dhoogmoed on June 04, 2012, 12:22:16 am
Right, Tested again, with the Joomla admin password and I get the same result: "ERROR: Invalid username and/or password".

Does either username or password have characters aside from letters and numbers? If so, change those.

Quote from: dhoogmoed on June 04, 2012, 12:22:16 am
I can only conclude now that cron.php has stopped working altogether since the upgrade to 4.1.

No, it works fine. Just must find the issue with yours.
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.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: In CiviCRM 4.1.1 cron.php is running but no jobs scheduled jobs occur
June 13, 2012, 03:07:01 am
Quote from: garkalulu on June 12, 2012, 07:37:52 pm
This entry will appear in the log every hour as set in the cron and it will also appear if I trigger by URL.

When you load the URL into a browser, do you see any output?
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.

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 15, 2012, 06:47:21 am
Quote from: Hershel on June 13, 2012, 03:07:01 am
Quote from: garkalulu on June 12, 2012, 07:37:52 pm
This entry will appear in the log every hour as set in the cron and it will also appear if I trigger by URL.

When you load the URL into a browser, do you see any output?

After loading the URL into the browser, it is just blank in the browser without any error message.

and the Scheduled Jobs Log will show
Summary
Starting scheduled jobs execution

How can I solve this problem?

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.