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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Scheduled jobs no longer run after upgrade
Pages: [1]

Author Topic: Scheduled jobs no longer run after upgrade  (Read 2731 times)

michael23

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
  • CiviCRM version: 4.6.2
  • CMS version: Joomla 2.5.28
  • MySQL version: 5.6.23
  • PHP version: 5.5.22
Scheduled jobs no longer run after upgrade
May 07, 2013, 12:01:44 am
Hello all,

Our scheduled jobs were working on CiviCRM 4.2.7. After upgrading to 4.3.2, the scheduled jobs no longer run.

We have the Mailings Scheduler, Membership status processor, and Scheduled reminder sender.

Here's what I've checked:
  • The site key is correct
  • The cron job is getting invoked
  • Scheduled jobs is shown in the UI as not being run. Running them manually is OK.
  • I've also run http://[SITEROOT]/administrator/components/com_civicrm/civicrm/bin/cron.php?name=username&pass=password&key=site-key manually but that doesn't seem to trigger anything.

Any ideas?

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Scheduled jobs no longer run after upgrade
May 07, 2013, 10:19:45 am
Hey there,

Quote
that doesn't seem to trigger anything
you mean, it just displays a white screen? If so, then it is likely that there is an error occuring when you run
Quote
http://[SITEROOT]/administrator/components/com_civicrm/civicrm/bin/cron.php?name=username&pass=password&key=site-key
but that error is not being displayed to the screen.
try finding that error by either looking in the logs or changing your settings so that php errors are shown on the screen.
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

michael23

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
  • CiviCRM version: 4.6.2
  • CMS version: Joomla 2.5.28
  • MySQL version: 5.6.23
  • PHP version: 5.5.22
Re: Scheduled jobs no longer run after upgrade
May 07, 2013, 10:09:42 pm
Thanks Michael. Yes, just a blank screen (0 bytes returned).

Looking at the cPanel error log, I see nothing.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Scheduled jobs no longer run after upgrade
May 08, 2013, 05:36:43 am
Load the URL and try changing the name or password to see that you get the correct error message, i.e. "password wrong."

If that works, then see if you can enable better error reporting on the server perhaps, and run the correct URL again.
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.

Michael McAndrew

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1274
  • Karma: 55
    • Third Sector Design
  • CiviCRM version: various
  • CMS version: Nearly always Drupal
  • MySQL version: 5.5
  • PHP version: 5.3
Re: Scheduled jobs no longer run after upgrade
May 08, 2013, 10:32:37 am
i'm not familiar with cpanel and how it does error reporting.  If it were me I might try editing the file civicrm/bin/cron.php and add something like this http://stackoverflow.com/questions/6575482/php-how-do-i-enable-error-reporting to the top of it to see the errors.

(and remember to restore the file to its original state afterwards)
Service providers: Grow your business, build your reputation and support CiviCRM. Become a partner today

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Scheduled jobs no longer run after upgrade
May 08, 2013, 04:59:25 pm
A blank screen is usually OK when hitting a cron job URL. Have you tried running the cron from the scheduled jobs UI interface? Does it work then?
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

michael23

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
  • CiviCRM version: 4.6.2
  • CMS version: Joomla 2.5.28
  • MySQL version: 5.6.23
  • PHP version: 5.5.22
Re: Scheduled jobs no longer run after upgrade
May 08, 2013, 10:08:20 pm
Thanks for the help everyone. Responses below.

Quote from: Hershel on May 08, 2013, 05:36:43 am
Load the URL and try changing the name or password to see that you get the correct error message, i.e. "password wrong."

If that works, then see if you can enable better error reporting on the server perhaps, and run the correct URL again.

Yes, changing the URL with invalid parameters generates a visible error.

Quote from: Michael McAndrew on May 08, 2013, 10:32:37 am
i'm not familiar with cpanel and how it does error reporting.  If it were me I might try editing the file civicrm/bin/cron.php and add something like this http://stackoverflow.com/questions/6575482/php-how-do-i-enable-error-reporting to the top of it to see the errors.

(and remember to restore the file to its original state afterwards)

I tried turning extra error reporting on to no avail. Just a blank screen still.

Quote from: Eileen on May 08, 2013, 04:59:25 pm
A blank screen is usually OK when hitting a cron job URL. Have you tried running the cron from the scheduled jobs UI interface? Does it work then?

As mentioned in my first post, running from scheduled jobs UI is ok. I believe it runs different code to the cron.php as invoking cron.php directly does not work.

combrains

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 2
  • CiviCRM version: 4.3.3
  • CMS version: Joomla 3.1.x
  • MySQL version: 5.1.44
  • PHP version: 5.3.1
Re: Scheduled jobs no longer run after upgrade
June 07, 2013, 05:02:04 am
I don't mean to hijack this thread, but I figured it was best to chime in here rather than starting another thread for the same issue.

I'm running CiviCRM 4.3.3 on J 3.1 and have an identical issue.  I am running on a shred host in a plesk environment, so the only way for me to call a cron job is via wget.

However, when I call the URL
Code: [Select]
http://[SITEROOT]/administrator/components/com_civicrm/civicrm/bin/cron.php?name=username&pass=password&key=site-key manually via a browser, none of my scheduled jobs appear to fire - as there are no entries in any of the logs.  If I run all jobs manually from the UI, the logs show the last run, same if I call individual jobs from the UI.

If I try to call a specific job via URL - eg
Code: [Select]
http://[SITEROOT]/administrator/components/com_civicrm/civicrm/bin/cron.php?job=process_mailing&name=username&pass=password&key=site-key The events still don't fire.

I get no errors in my server log.

If anyone can shed some light on this, I'd be grateful.

Cheers

gabele

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: 4.3.4
  • CMS version: jmla 2.5.11
  • MySQL version: 5.x
  • PHP version: 5.3.x
Re: Scheduled jobs no longer run after upgrade
June 19, 2013, 04:14:32 pm
Hi Michael,

Quote from: michael23 on May 07, 2013, 12:01:44 am

Our scheduled jobs were working on CiviCRM 4.2.7. After upgrading to 4.3.2, the scheduled jobs no longer run.

Here's what I've checked:
  • The site key is correct
  • The cron job is getting invoked
  • Scheduled jobs is shown in the UI as not being run. Running them manually is OK.
  • I've also run http://[SITEROOT]/administrator/components/com_civicrm/civicrm/bin/cron.php?name=username&pass=password&key=site-key manually but that doesn't seem to trigger anything.

Any ideas?

we had the exact  same problem after upgrading civicrm from 4.1.x to 4.34 under Joomla 2.5.11!

After some debugging we found the error in

(Joomla Root)/administrator/components/com_civicrm/civicrm/CRM/Utils/System/Joomla.php

A Joomla version check in function loadBootStrap() is broken in Joomla 2.5.x which results in Joomla 'framework' not being loaded, no script-authentication, no scheduled job run, the application exits without error messages.

I uploaded a fixed CRM/Utils/System/Joomla.php file to

 uni-sql.de/downloads/civicrma/fix_for_civi_4.3_cronjobs_in_jmla_2.5x.zip

it is a crude fix, omitting the joomla version check in function loadBootStrap() therefore not suitable for Joomla 3.

regards,

Tobias Gabele

sougatab

  • I’m new here
  • *
  • Posts: 10
  • Karma: 0
  • CiviCRM version: 4.3
  • CMS version: Joomla 2.5
  • MySQL version: 5+
  • PHP version: 5.3
Re: Scheduled jobs no longer run after upgrade
June 20, 2013, 03:43:54 am
Thanks Tobias for debugging this.
Hopefully the CiviCRM team will soon release an update to fix this.

michael23

  • I’m new here
  • *
  • Posts: 24
  • Karma: 2
  • CiviCRM version: 4.6.2
  • CMS version: Joomla 2.5.28
  • MySQL version: 5.6.23
  • PHP version: 5.5.22
Re: Scheduled jobs no longer run after upgrade
June 24, 2013, 12:01:23 am
Thanks Tobias,

Sounds like a similar issue which Lobo says will be fixed in the current version (albeit for Drupal). It sounds very similar to what you uncovered.

http://forum.civicrm.org/index.php/topic,29008.msg124410.html#msg124410

I'm trying to do the upgrade to check (but I'm running into DB upgrade error).


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Scheduled jobs no longer run after upgrade

This forum was archived on 2017-11-26.