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) »
  • Site key problem
Pages: [1]

Author Topic: Site key problem  (Read 1485 times)

sraisz

  • I post occasionally
  • **
  • Posts: 52
  • Karma: 0
    • sambandha.net
  • CiviCRM version: 3.3.5
  • CMS version: Drupal 6
Site key problem
May 27, 2011, 12:26:13 pm
Cron is not able to run CiviMail cron job giving this error:

ERROR: You need to send a valid key to execute this file. More info at:http://wiki.civicrm.org/confluence/display/CRMDOC/Command-line+Script+Configuration

here is the line in crontab:

*/5 * * * *  wget  -o /dev/null -O /dev/null http://bhaktilife.org/sites/all/modules/civicrm/bin/EmailProcessor.php?name=xxxx&pass=xxxx&key=xxxx

I've double checked that the key is correct and even tried putting in a new key in both the crontab and civicrm.settings.php

Also  I can run the command  with the key directly from  the browser without problem.

Is there something that I am doing in the crontab wrong? Should the key be in quotes?


JoeMurray

  • Administrator
  • Ask me questions
  • *****
  • Posts: 578
  • Karma: 24
    • JMA Consulting
  • CiviCRM version: 4.4 and 4.5 (as of Nov 2014)
  • CMS version: Drupal, WordPress, Joomla
  • MySQL version: MySQL 5.5, 5.6, MariaDB 10.0 (as of Nov 2014)
Re: Site key problem
May 27, 2011, 05:35:22 pm
It's more secure to use the post method described in the example at http://wiki.civicrm.org/confluence/display/CRMDOC40/Running+Command-line+Scripts

You might try putting single quotes around the url. For testing, just try running wget from the command line to debug faster.

HTH, but not sure it will.
Co-author of Using CiviCRM https://www.packtpub.com/using-civicrm/book

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Site key problem
June 01, 2011, 06:15:15 am
Even more secure: use the php-cli version if you have it.

http://en.flossmanuals.net/civicrm/ch042_system-configuration/

And do you key contains space or $ or non ascii 7 bits chars ? For what I've seen, less problem sticking to a to Z and numbers.

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Site key problem
June 01, 2011, 12:06:54 pm
Quote from: sraisz on May 27, 2011, 12:26:13 pm
Is there something that I am doing in the crontab wrong? Should the key be in quotes?

Not the key but the entire URL:

wget -o /dev/null -O /dev/null 'http://site.org/sites/all/modules/civicrm/bin/CiviMailProcessor.php?name=admin&pass=333&key=xxx'
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) »
  • Site key problem

This forum was archived on 2017-11-26.