Answers.Body: <p>Generally I have found that, if a mailing is stuck as "running", but does correctly run when "execute now" is clicked, that you have a permissions problem.</p>
  
  <p>When you "execute now" the mailing is executed using the permissions of the currently logged in user.</p>
  
  <p>The cron job however usually runs as a different user. This user needs minimally to have a few permissions set: view all contacts, access CiviCRM, access CiviMail.  </p>
  
  <p>I would first track down your cronjob to find out what user is referenced in it.  Without more details on your hosting platform its a little difficult to help you with that.  If you have SSH access, try issuing a command line: crontab -l.  If your hosting provided gives you cpanel or similar, you may be able to view the cron jobs with that.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-12-02T13:23:11.633Z
Answers.Text: crontab only shows the cron jobs of the user you use for SSH-login as far as I understand, in my case "no crontab for [user]". How could you see the cron jobs of the cron user?
Answers.UserDisplayName: ajasper
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-08-14T18:11:50.340Z
Answers.LastActivityDate: 2015-08-14T18:11:50.340Z
Answers.UserDisplayName: DaveD
Body: <p>If we schedule a mailing, they only ever say running in the status column but never get sent. The only way they send is if we hit "execute now", so at least we know they are no email config/password issues.</p>
  
  <p>I have little experience with Drupal, CiviCRM and Linux, so don't even know where to look for logs.</p>
  
  <p>CiviCRM is running off Drupal on a Linux Ubuntu vm, I've found version number for CiviCRM is 4.1, Drupal is 7.34, php is 5.59 and MySQL 5.541.</p>
  
  <p>I have checked under the scheduled jobs (administer > system settings >schedules jobs) and found <a href="https://i.sstatic.net/pxtWX.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pxtWX.jpg" alt="enter image description here"></a></p>
  
  <p>I don't know where to look for the cronjob and which user it uses though. I checked the drupal user permissions and all authenticated users can view etc anythng civimail related.</p>
  
  <p>I have no civicrm experience (i didnt install this), no drupal and little linux, I would appreciate some help.  I have tried following instructions on the civi site but they are not clear enough.</p>
  
  <p>Thanks</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-08-15T23:45:47.250Z
Comments.Text: Please edit your original question with the new information. This one will be closed as a duplicate.
Comments.UserDisplayName: Nicholai
Tags: <civimail><cron-job><scheduling>
Title: scheduled mailings dont send - civicrm4.1
ThreadText: # scheduled mailings dont send - civicrm4.1
  
  (Asked by: username_0 on 2015-08-14)
  
  If we schedule a mailing, they only ever say running in the status column but never get sent. The only way they send is if we hit "execute now", so at least we know they are no email config/password issues.
  
  I have little experience with Drupal, CiviCRM and Linux, so don't even know where to look for logs.
  
  CiviCRM is running off Drupal on a Linux Ubuntu vm, I've found version number for CiviCRM is 4.1, Drupal is 7.34, php is 5.59 and MySQL 5.541.
  
  I have checked under the scheduled jobs (administer > system settings >schedules jobs) and found [![enter image description here](https://i.sstatic.net/pxtWX.jpg)](https://i.sstatic.net/pxtWX.jpg)
  
  I don't know where to look for the cronjob and which user it uses though. I checked the drupal user permissions and all authenticated users can view etc anythng civimail related.
  
  I have no civicrm experience (i didnt install this), no drupal and little linux, I would appreciate some help. I have tried following instructions on the civi site but they are not clear enough.
  
  Thanks
  
  **Tags:** civimail, cron-job, scheduling
  
  > **Comments:**
  > **username_1**: Please edit your original question with the new information. This one will be closed as a duplicate.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2015-08-14. Score: 0
  
  Generally I have found that, if a mailing is stuck as "running", but does correctly run when "execute now" is clicked, that you have a permissions problem.
  
  When you "execute now" the mailing is executed using the permissions of the currently logged in user.
  
  The cron job however usually runs as a different user. This user needs minimally to have a few permissions set: view all contacts, access CiviCRM, access CiviMail.
  
  I would first track down your cronjob to find out what user is referenced in it. Without more details on your hosting platform its a little difficult to help you with that. If you have SSH access, try issuing a command line: crontab -l. If your hosting provided gives you cpanel or similar, you may be able to view the cron jobs with that.
  
  > **Comments:**
  > **username_3**: crontab only shows the cron jobs of the user you use for SSH-login as far as I understand, in my case "no crontab for [user]". How could you see the cron jobs of the cron user?  
  
  ---
  
  