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 CiviMail (Moderator: Piotr Szotkowski) »
  • Cron job not sending scheduled mail
Pages: [1]

Author Topic: Cron job not sending scheduled mail  (Read 1664 times)

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Cron job not sending scheduled mail
December 27, 2012, 02:34:57 pm
I have read through http://wiki.civicrm.org/confluence/display/CRMDOC42/CiviMail+Installation several times and have tried several different cron jobs. I am using the control panel cron jobs to run all of the jobs.

I have tried the following methods I have the job set up to send an email when there is output.

wget -o - -q -t 1 \ 'https://mysite/public_html/sites/all/modules/civicrm/bin/cron.php?name=myusername&pass=mypassword&key=mysite-key'

wget -o - -q -t 1 \ 'https://sir102.org/public_html/sites/all/modules/civicrm/bin/cli.php?name=myname&pass=mypassword&key=mykey'

wget -o - -q -t 1 \ 'https://www.sir102.org/public_html/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=myname&pass=mypassword&key=mykey&job=process_mailing'

They seem to run however I never get an email so I'm guessing they're not firing.

I tried two that the host suggested they are

/ramdisk/bin/php5 -c /home3/sironeze/public_html/php.ini/home3/sironeze/public_html/sites/all/modules/civicrm/bin/cron.php&name=myname&pass=mypassword&key=mykey

it returns an email with
X-Powered-By: PHP/5.2.17
Content-type: text/html

And this one
php -c /home3/sironeze/public_html/php.ini/home3/sironeze/public_html/sites/all/modules/civicrm/bin/civimail.cronjob.php&name=Dave_Swart&pass=S_4699e34n08&key=44c46d1a2bc58036df63d3950afca683

it returns an email with
X-Powered-By: PHP/5.2.17
Content-type: text/html

I then tried the URL to send queued messages  https://<site>/index.php?q=civicrm/mailing/queue&reset=1&name=username&pass=password&key=site-key
it works and sends all queued messages so I know my user name, password and site key are correct.

So I tried to test trigger the cron script by navigating to this URL  https://[SITEROOT]/public_html/sites/all/modules/civicrm/bin/cron.php?name=username&pass=password&key=site-key and it fails I get The requested page "/public_html/sites/all/modules/civicrm/bin/cron.php?name=myname&pass=mypassword&key=mykey" could not be found.

So I obviously have a problem getting to the cron script I have been working on this for days and am truly lost does anyone see anything obvious that I am doing wrong?
I am not sure what the proper response is when a cron job runs and it sends an email to me.

Thanks for any help
 

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron job not sending scheduled mail
December 28, 2012, 05:42:41 am
Remove public_html/ from your URL.
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.

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Re: Cron job not sending scheduled mail
December 28, 2012, 06:47:54 pm
Hershel,
Need the public_html in the string to get to the file.

Thanks

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron job not sending scheduled mail
December 29, 2012, 09:35:08 am
What does your URL

https://mysite/public_html/sites/all/modules/civicrm/bin/cron.php?name=myusername&pass=mypassword&key=mysite-key

show in the browser? If it's page not found, which I think it is, then remove public_html/ from it.
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.

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Re: Cron job not sending scheduled mail
December 29, 2012, 06:33:29 pm
Hershel,
Yes it is page not found it goes to my site and returns page not found. When I remove public_html from the URL I get a blank white page not sure what that means.

Thanks Again for your help

kc6ape

  • I’m new here
  • *
  • Posts: 13
  • Karma: 0
  • CiviCRM version: 4.2.6
  • CMS version: Drupal 7.12
  • MySQL version: 5.1.63-community-log
  • PHP version: 5.3.15
Re: Cron job not sending scheduled mail
December 29, 2012, 06:45:01 pm
Hershel,
That was it! All of my scheduled jobs were sent when I tried the URL without public_html in it, you my friend are a genius! I have been beating my head against the wall for two weeks working on this, now I will just modify my cron job and we will be in business.

Thank you again so much

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron job not sending scheduled mail
December 30, 2012, 02:59:06 am
You're welcome. A blank white page (i.e. no output) is the correct output for CiviCRM cron.
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 »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Cron job not sending scheduled mail

This forum was archived on 2017-11-26.