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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Troubleshooting cron...
Pages: [1]

Author Topic: Troubleshooting cron...  (Read 282 times)

greenman

  • I’m new here
  • *
  • Posts: 3
  • Karma: 0
  • CiviCRM version: 4.5.5
  • CMS version: Wordpress
  • MySQL version: Ver 14.14 Distrib 5.1.73
  • PHP version: 5.3.28
Troubleshooting cron...
January 22, 2015, 03:43:30 pm
Wordpress, CiviCRM. All configured.

I'm trying to get a mailing to go out at a specific time. Heck, it won't even send if you tell it to send immediately.

I've followed all directions here:
http://wiki.civicrm.org/confluence/display/CRMDOC/CiviMail+Installation#CiviMailInstallation-FromaCLICommandLine
  • using mail()
  • using wget POST method for crontab.
  • Test emails go out fine.
Code: [Select]
*/5 * * * * WGETRC=/home/<user>/assets/civicrm-wgetrc wget -O - -q -t 1 http://<domain>/wp-content/plugins/civicrm/civicrm/bin/cron.phpwhere civicrm-wgetrc has this as its contents:
Code: [Select]
post-data=name=<user>&pass=<pass>S&key=<key>Cron is not throwing errors at me via email every 5 minutes, so I assume it's configured correctly.
Using the suggested cron test method in a browser address field yields a blank page -- again, assumed configured correctly.

The only thing does work is the mailing queue link in the address field of a browser.
http://<mydomain>/wp-admin/admin.php?page=CiviCRM&q=civicrm/mailing/queue&reset=1

My questions:
  • Have I made an error in my cron configurations? Why won't it run?
  • When I use the manual mailing queue, does it continue on automatically, or do I have to leave the browser open while the browser processes?
  • On the mailer settings page, I've got mailer throttle time set to 9000000 milliseconds. That should be once every 9 seconds or 400 per hour. Everything else is set default (0). Will this achieve my goal of 400 emails per hour?
  • I tried the CLI-PHP method, but all I got was cron errors every five minutes. Hence the attempt at the wget post method. Also chmodded 755, and double checked cli settings. Any suggestions on this? I'd rather use it if it will work.

Cheers,

Chris

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: Troubleshooting cron...
January 22, 2015, 04:06:27 pm
A few questions:
* Check out Administer menu > System Settings > Scheduled Jobs.  Find an enabled job marked "Always".  Did it run within the last 5 minutes?  If note, we can safely assume cron isn't running correctly.
* You're not piping stderr to stdout - so you may be missing some important diagnostic info.  What happens when you run your cron statement (either cli-php or wget) without using cron, just on the command line?
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Troubleshooting cron...

This forum was archived on 2017-11-26.