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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • civicrm normalise extension causes cron to stop
Pages: [1]

Author Topic: civicrm normalise extension causes cron to stop  (Read 713 times)

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
civicrm normalise extension causes cron to stop
November 19, 2013, 12:31:26 am
I have installed the civicrm normalise extension (https://civicrm.org/extensions/normalise-data-entered-firstname-last-name) and my cron has stopped working. When i disable the extension cron works again.
Any idea?? I am on Drupal 7 and CiviCRM 4.3.1

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm normalise extension causes cron to stop
November 19, 2013, 01:34:29 am
Duh?

can you see on the log what error message you have? you probably have a different set of jobs enabled than I have.

try running the job and see where it chokes.
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: civicrm normalise extension causes cron to stop
November 19, 2013, 02:50:27 am
Hi Xavier,
jobs run manually with no errors from this link civicrm/admin/job?action=export&id=1&reset=1

but automatic  jobs like clean-up temporary data and files (hourly), fetch bounces (hourly), send scheduled mailings stops when extension is enabled and can only be triggered manually.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm normalise extension causes cron to stop
November 19, 2013, 10:42:49 pm
Double duh!

Could you try to disable them all but one, so we can find which one goes wrong?

Are you running the cron from the Shell or wget?

Using CLI.php or crush?

The only cron I can imagine creating a contact is mail to activity. Do you have it enabled?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: civicrm normalise extension causes cron to stop
November 20, 2013, 06:15:57 am
Hi Xavier,
I am running cron from wget using CLI.php. I have only four enabled cron tasks, clean-up temporary data and files, fetch bounces, send scheduled mailings and Validate email address from mailings.

I have disabled them except one, and none of the cron task did run while the extension is enabled.

Thank you for willing to help, i may keep the extension disabled for the time being till i can figure out the problem.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm normalise extension causes cron to stop
November 20, 2013, 06:21:59 am
? you're not supposed to use cli.php from wget, it's cron.php if I recall

can you try running the cron directly instead of using wget (it's way better no matter what)


Code: [Select]
/usr/bin/drush -u 1 -r /path/to/drupal -l www.example.org civicrm-api job.execute auth=0 -y
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: civicrm normalise extension causes cron to stop
November 20, 2013, 06:33:41 am
are u in a way saying i shouldn't use this on the crontab?

*/15 * * * * /path/to/php /path/to/civcrm/module/bin/cli.php -s site -u user -p password -e Job -a execute

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm normalise extension causes cron to stop
November 20, 2013, 08:42:11 am
Ah, it's not wget you're using, it's php cli. That's good.

can you connect over ssh to your server?

in that case, can you run

$ /path/to/civcrm/module/bin/cli.php -s site -u user -p password -e Job -a execute
and see what it spits?

-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

kennedy

  • I post occasionally
  • **
  • Posts: 119
  • Karma: 5
  • CiviCRM version: 4.5.5
  • CMS version: Drupal
  • PHP version: 5.3.10
Re: civicrm normalise extension causes cron to stop
November 20, 2013, 11:04:00 pm
If i do "*/15 * * * * /path/to/php /path/to/civcrm/module/bin/cli.php -s site -u user -p password -e Job -a execute", from the command line, nothing is spitted out meaning that all scheduled tasks are executed. Just to confirm,  civicrm/admin/job?reset=1 ,  also shows that all jobs did run when i issued the command.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: civicrm normalise extension causes cron to stop
November 21, 2013, 04:59:13 am
So when you run the same command manually, it works, but from the cron it doesn't?

I'm not sure it's the reason here, it might be that the whatever that was creating problem on one run was solved when running the other.

Sorry I can't help more, would be great if you could isolate if a specific job/task triggers the problem
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • civicrm normalise extension causes cron to stop

This forum was archived on 2017-11-26.