Answers.Body: <p>I may have solved this with the following steps.</p>
  
  <ol>
  <li>create a drush alias for the site</li>
  <li>configure crontab using the drush alias</li>
  </ol>
  
  <h1>Drush alias (~/.drush/example.aliases.drushrc.php)</h1>
  
  
  
  <pre><code>&lt;?php
  
      $aliases['example.com'] = array (
          'uri' =&gt; 'example.com',
          'root' =&gt; '/path/to/drupal',
      );
  
  ?&gt;
  </code></pre>
  
  <h1>Crontab</h1>
  
  <pre><code>0 * * * * drush -u 1 @example.com civicrm-api job.execute auth=0 --out=json
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-06T09:13:05.300Z
Answers.Text: See also: https://drupal.stackexchange.com/questions/136722/drupal-7-cron-does-not-run-civicrm-scheduled-jobs
Answers.UserDisplayName: Brylie Christopher Oxley
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-06T09:09:32.167Z
Answers.LastActivityDate: 2017-09-06T09:09:32.167Z
Answers.UserDisplayName: Brylie Christopher Oxley
Answers.Body: <p>This works for me in Cpanel,  including the wget:</p>
  
  <p>wget -O - -q -t 1 '<a href="http://mysite.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=myusername&amp;pass=mypassword&amp;key=123456789abcdefg" rel="nofollow noreferrer">http://mysite.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=myusername&amp;pass=mypassword&amp;key=123456789abcdefg</a>'</p>
  
  <p>Note the single quotation marks at start and end of syntax - after wget string</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-27T17:56:58.310Z
Answers.Text: On mine it was necessary to add the path to wget. Cron had no default paths associated with it.
Answers.UserDisplayName: Codedogs
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-30T17:10:58.047Z
Answers.Text: My cron is running in Cpanel without -O - -q -t 1 - what is "O - -q -t 1"?
Answers.UserDisplayName: themak
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-10-30T23:06:02.110Z
Answers.Text: Please refer to the wget manual on
  https://www.gnu.org/software/wget/manual/wget.html#Option-Syntax
Answers.UserDisplayName: Hock
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-12T00:05:57.877Z
Answers.LastActivityDate: 2017-09-12T00:05:57.877Z
Answers.UserDisplayName: Hock
Body: <p>For several months we have been seeing the error "Cron Not Running". I have repeatedly configured crontab for the <code>root</code> user, and currently have the following:</p>
  
  <pre><code>0 * * * * wget -O - -q -t 1 https://&lt;redacted&gt;/cron.php?cron_key=&lt;redacted&gt;
  0 * * * * drush -r /var/www/html/drupal -l https://&lt;redacted&gt; civicrm-api -u &lt;redacted&gt; job.execute
  </code></pre>
  
  <p>I have followed the <a href="https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs" rel="nofollow noreferrer">Managing Scheduled Jobs</a> documentation each time, but still cannot figure out what I am doing wrong.</p>
  
  <p>What might I check to make sure Cron is configured correctly?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-01-22T11:12:46.617Z
Comments.Text: This issue has affected us for many months. I have tried several solutions, and it won't go away.
Comments.UserDisplayName: Brylie Christopher Oxley
Tags: <drupal><cron-job><cron><drush>
Title: Error: Cron Not Running
ThreadText: # Error: Cron Not Running
  
  (Asked by: username_0 on 2017-09-06)
  
  For several months we have been seeing the error "Cron Not Running". I have repeatedly configured crontab for the `root` user, and currently have the following:
  
  ```
  0 * * * * wget -O - -q -t 1 https://<redacted>/cron.php?cron_key=<redacted>
  0 * * * * drush -r /var/www/html/drupal -l https://<redacted> civicrm-api -u <redacted> job.execute
  
  ```
  
  I have followed the [Managing Scheduled Jobs](https://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs) documentation each time, but still cannot figure out what I am doing wrong.
  
  What might I check to make sure Cron is configured correctly?
  
  **Tags:** drupal, cron-job, cron, drush
  
  > **Comments:**
  > **username_0**: This issue has affected us for many months. I have tried several solutions, and it won't go away.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2017-09-06. Score: 2
  
  I may have solved this with the following steps.
  
  1. create a drush alias for the site
  2. configure crontab using the drush alias
  
  # Drush alias (~/.drush/example.aliases.drushrc.php)
  
  ```
  <?php
  
      $aliases['example.com'] = array (
          'uri' => 'example.com',
          'root' => '/path/to/drupal',
      );
  
  ?>
  
  ```
  
  # Crontab
  
  ```
  0 * * * * drush -u 1 @example.com civicrm-api job.execute auth=0 --out=json
  
  ```
  
  > **Comments:**
  > **username_0**: See also: https://drupal.stackexchange.com/questions/136722/drupal-7-cron-does-not-run-civicrm-scheduled-jobs  
  
  ---
  
  ### Answer by username_1 on 2017-09-12. Score: 0
  
  This works for me in Cpanel, including the wget:
  
  wget -O - -q -t 1 '<http://mysite.org/drupal/sites/all/modules/civicrm/bin/cron.php?name=myusername&pass=mypassword&key=123456789abcdefg>'
  
  Note the single quotation marks at start and end of syntax - after wget string
  
  > **Comments:**
  > **username_2**: On mine it was necessary to add the path to wget. Cron had no default paths associated with it.  
  > **username_3**: My cron is running in Cpanel without -O - -q -t 1 - what is "O - -q -t 1"?  
  > **username_1**: Please refer to the wget manual on https://www.gnu.org/software/wget/manual/wget.html#Option-Syntax  
  
  ---
  
  