Answers.Body: <p>problem found... it was a confusion between 2 scripts</p>
  
  <p>/home/sitename/www/www/private/civicron.sh
  /home/sitename/private/civicron.sh</p>
  
  <p>After adapting the correct script it seems okay.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-05-10T03:21:02.490Z
Answers.Text: Could you detail your solution? I am having the same issue.
Answers.UserDisplayName: Tiffany Carra
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-03-02T19:56:34.143Z
Answers.LastActivityDate: 2016-03-02T19:56:34.143Z
Answers.UserDisplayName: Wim Van Aelst
Body: <p>in civicrm.settings.php I have 
  if (!defined('CIVICRM_SITE_KEY')) {
    define( 'CIVICRM_SITE_KEY', '2e554f49c9fc5c47548da5C24da64681b77dca08');</p>
  
  <p>When I use the following URL to start manually all cron jobs, I see that jobs get executed, so the URL seems ok to me.
  <a href="http://xxxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&amp;pass=xxxxxxxx&amp;key=2e554f49c9fc5c47548da5C24da64681b77dca08" rel="nofollow">http://xxxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&amp;pass=xxxxxxxx&amp;key=2e554f49c9fc5c47548da5C24da64681b77dca08</a></p>
  
  <p>The script to start all cron jobs is defined as follows:</p>
  
  <h1>!/bin/sh</h1>
  
  <p>GET
  '<a href="http://xxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&amp;pass=xxxxxxxx&amp;key=2e554f49c9fc5c47548da5C24da64681b77dca08" rel="nofollow">http://xxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&amp;pass=xxxxxxxx&amp;key=2e554f49c9fc5c47548da5C24da64681b77dca08</a>'</p>
  
  <p>However, when this script is run, I got this message through mail:</p>
  
  <p>ERROR: Invalid key value sent. </p>
  
  <p>So to me the key seems correct, but even after changing the key to something else both in civicrm.settings.php and in the script, I continue to get this error message. I'm using the latest 4.7.2 civicrm version on drupal 7. 
  For now I'm using easycron, but I'd like to find out if there is an error in this configuration, or if it's a bug. </p>
  
  <p>Any suggestions for further testing ?</p>
  
  <p>thanks
  Wim</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-03T05:20:56.200Z
Comments.Text: Two things - you should probably change your site key, since that is semi-sensitive data. In fact, there's a bug fixes in Civi 4.7.3 that allows any user with "access CiviCRM" and your site key to become an administrator: https://civicrm.org/advisory/civi-sa-2016-05-privilege-escalation-by-backend-users
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-03T05:22:53.027Z
Comments.Text: Second - there's also https://issues.civicrm.org/jira/browse/CRM-17968, which could potentially affect you.
Comments.UserDisplayName: Jon G - Megaphone Tech
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-03-04T07:04:02.580Z
Comments.Text: Thanks John for your reply and advice. The key has been changed.
Comments.UserDisplayName: Wim Van Aelst
Tags: <cron>
Title: 'invalid key sent' while cron script is executed
ThreadText: # 'invalid key sent' while cron script is executed
  
  (Asked by: username_0 on 2016-03-02)
  
  in civicrm.settings.php I have
  if (!defined('CIVICRM\_SITE\_KEY')) {
  define( 'CIVICRM\_SITE\_KEY', '2e554f49c9fc5c47548da5C24da64681b77dca08');
  
  When I use the following URL to start manually all cron jobs, I see that jobs get executed, so the URL seems ok to me.
  <http://xxxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&pass=xxxxxxxx&key=2e554f49c9fc5c47548da5C24da64681b77dca08>
  
  The script to start all cron jobs is defined as follows:
  
  # !/bin/sh
  
  GET
  '<http://xxxxx.yyy/sites/all/modules/civicrm/bin/cron.php?name=civimail&pass=xxxxxxxx&key=2e554f49c9fc5c47548da5C24da64681b77dca08>'
  
  However, when this script is run, I got this message through mail:
  
  ERROR: Invalid key value sent.
  
  So to me the key seems correct, but even after changing the key to something else both in civicrm.settings.php and in the script, I continue to get this error message. I'm using the latest 4.7.2 civicrm version on drupal 7.
  For now I'm using easycron, but I'd like to find out if there is an error in this configuration, or if it's a bug.
  
  Any suggestions for further testing ?
  
  thanks
  Wim
  
  **Tags:** cron
  
  > **Comments:**
  > **username_1**: Two things - you should probably change your site key, since that is semi-sensitive data. In fact, there's a bug fixes in Civi 4.7.3 that allows any user with "access CiviCRM" and your site key to become an administrator: https://civicrm.org/advisory/civi-sa-2016-05-privilege-escalation-by-backend-users  
  > **username_1**: Second - there's also https://issues.civicrm.org/jira/browse/CRM-17968, which could potentially affect you.  
  > **username_0**: Thanks John for your reply and advice. The key has been changed.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2016-03-02. Score: 2
  
  problem found... it was a confusion between 2 scripts
  
  /home/sitename/www/www/private/civicron.sh
  /home/sitename/private/civicron.sh
  
  After adapting the correct script it seems okay.
  
  > **Comments:**
  > **username_2**: Could you detail your solution? I am having the same issue.  
  
  ---
  
  