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) »
  • Civimail cronjob not processing messages
Pages: 1 [2] 3 4

Author Topic: Civimail cronjob not processing messages  (Read 12837 times)

grahamgilchrist

  • I post occasionally
  • **
  • Posts: 70
  • Karma: 3
Re: Civimail cronjob not processing messages
October 13, 2010, 12:59:29 pm
Quote from: xavier on October 13, 2010, 10:18:53 am
If you want to run the cronjob from the cron, I recommend using the php-cli instead of the wrapper as described in the book

http://en.flossmanuals.3net/CiviCRM/SystemConfiguration

Easier and more efficient than having a wrapper around a curl call ;)

I totally agree and wish I could, but unfortunately I have no root or command line access on our production server, so Curl via php is the only option ;)
I have it running as a drupal module using hook_cron
I suspect its a useful thing to know for people in shared hosting environments too.

karunadave

  • I post occasionally
  • **
  • Posts: 50
  • Karma: 0
    • Karuna Dev
  • CiviCRM version: 4.4.4
  • CMS version: Drupal 6.30 or Drupal 7.26 Drush 6.2.0
  • MySQL version: 5.5.35-cll - MySQL Community Server (GPL)
  • PHP version: 5.3.21
Re: Civimail cronjob not processing messages
October 17, 2010, 10:02:25 am
I have had similar trouble.  After reading several forum post on the 3.2.3 issue, I have tried making the Drupal account referenced in the civimail.cronjob.php?name=<account> a Drupal site administrator.  Now it works.

matth3wh

  • I’m new here
  • *
  • Posts: 24
  • Karma: 0
Re: Civimail cronjob not processing messages
November 25, 2010, 10:30:38 pm
Thanks Xavier...  I've implemented the PHP CLI cron calls to run the mail process and this has worked for me...

We had upgraded from 3.1.5 to 3.2.5 and then had this issue that Mailings would just stay scheduled and never run as they had been working before in 3.1.5.

For added fun in to the mix we changed our mail system to Google Apps Prem and using SMTP mail - for some reason it was bouncing heaps of people in 3.1.5 with SMTP setup and the system set them on hold...

We have a VPS and I have setup the Civimailer to use the local sendmail instead of SMTP thinking that would stop CiviCRM from bounce problems... (we can live without bounce tracking via SMTP method for the moment...)   However, I still for some reason have two users for whom the system keeps telling me Bounce Type: Invalid and Unknown bounce type: Could not parse bounce email

Arrrgh... the fun of it all on a Friday afternoon :-)   At least we are 99% of the way there (...I think)  :-)
« Last Edit: November 25, 2010, 10:35:32 pm by matth3wh »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Civimail cronjob not processing messages
November 25, 2010, 11:34:36 pm
Can you paste the bounced emails here ? (you can replace the email by xxx@yyy.zzz)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

noah

  • I’m new here
  • *
  • Posts: 18
  • Karma: 4
Re: Civimail cronjob not processing messages
January 08, 2011, 11:29:54 pm
As far as I can tell, this problem still exists in CiviCRM 3.3.1 with Drupal 6.20. I reported the issue here: http://issues.civicrm.org/jira/browse/CRM-7349 (CiviMail cron job fails due to drupal bootstrap / session conflict )

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Civimail cronjob not processing messages
January 15, 2011, 11:34:36 pm
I'm posting in this thread because while not exactly the same issue, this issue is the closest to mine that I could find in this forum.

I've begun debugging a new client's CiviMail install, it should be noted that I didn't choose this host.  They approached me after the install and config they did on their own.

They are using 3.3.2 on Drupal 6.20
cPanel linux - version 11.28.64
PHP 5.2.16
MySQL 5.1.52
Mail is being sent via SMTP with localhost the mailer settings are correct work, I have received the test emails

The host has a 500 email/hour limit.  As such the cron is configured as such, which is a configuration I use frequently on other hosts with success.
Code: [Select]
*/5 * * * * wget -q -O /dev/null 'http://www.friendsoftheflathead.ca/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=admin&pass='  (password and key omitted intentionally)

The problem is twofold.

1. If the batch limit is set (I set it to 40 per run), the scheduled jobs turn to "Running" status but never send anything.  They just hang.
2. If the batch limit is NOT set (zero) then the scheduled jobs do go to Running status, and then Complete, with the emails bouncing with  Unknown bounce type: Could not parse bounce email  It should be noted that the bounces register INSTANTLY, and the MailProcessor script is NOT even running, so there is no way the bounces are as a result of an actual bounce.  This is an error on send.

Mysteriously, there are no PHP errors in the error log at all.

I would invite the developers to login to the site.  Contact me at stuart - at - korlon - dot com for login details.  I'm pretty stumped at this point.  Because of the hosting environment, I do not have access to the SMTP log files for further investigation at this time.
« Last Edit: January 15, 2011, 11:49:17 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Civimail cronjob not processing messages
January 16, 2011, 06:22:21 am

If i had to guess, the smtp server is rejecting the civimails due to not recognizing / allowing the from/reply-to email addresses (which are verp'ed by default).

You might want to play around with that and see if they can loosen the restrictions. I'm not sure what civimail does currently when u mark some checkboxes. there has been an effort to make this more configurable

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Civimail cronjob not processing messages
January 17, 2011, 07:59:20 am
I think i've tesame problem here.
In my previous version 3.1.3, civimail was working well.
I've upgraded to 3.3.1 and when i start a mailing to ~1000 adresses, the first batch (50 mailings) will be sent.
After that no mailings will be sended, even after several new cron batch-runs. Even when i manually run the mailing script.

How is it possible that civimail send only the first (configured) batch mailings and then stop continueing sending mailings when de civimail.cronjob runs.

 

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Civimail cronjob not processing messages
January 17, 2011, 04:00:55 pm
@petbos157, this problem was corrected in 3.3.2  Please upgrade again.  it has to do with the batch settings, that is why only 50 are sent.  Yours is a slightly different problem and easier to fix.  I envy you.

@lobo, Thanks for the idea -- I tried turning off all tracking and responses instep 1 of my mailing, in an effort to hopefully keep VERP from interfering with the send.  It didn't work.  All outgoings still bounce.  Equally frustrating, the host got a copy of the EXIM mail log record and there are not any errors in the log.

Apparently, the script is failing to send anything (all instant bounces) and failing to record any sort of error whatsoever.
« Last Edit: January 17, 2011, 04:02:38 pm by Stoob »
Try CiviTeacher: the online video tutorial CiviCRM learning library.

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Civimail cronjob not processing messages
January 17, 2011, 10:12:11 pm
I'm having the same problem, i.e. upgraded to 3.3.1 and now large email jobs stop after first batch, I've upgraded to 3.3.2 and it's still not working... I notice that the setup for the cron job has changed, i've tried the old way and the new way, neither works... :-/
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

petbos157

  • I’m new here
  • *
  • Posts: 26
  • Karma: 2
  • CiviCRM version: 4.4.3
  • CMS version: Drupal 7
  • MySQL version: 5.1.71
  • PHP version: 5.3.3
Re: Civimail cronjob not processing messages
January 18, 2011, 10:29:00 am
@stoob The upgrade helped me. Thank you very much.
Good luck with your problem.

CiviTeacher.com

  • I live on this forum
  • *****
  • Posts: 1282
  • Karma: 118
    • CiviTeacher
  • CiviCRM version: 3.4 - 4.5
  • CMS version: Drupal 6&7, Wordpress
  • MySQL version: 5.1 - 5.5
  • PHP version: 5.2 - 5.4
Re: Civimail cronjob not processing messages
January 18, 2011, 11:36:31 am
ChrisChinchilla, I doubt that the cron command itself is the cause of your problem.  How you use 'wget' or 'curl' has little to do with CiviCRM and more to do with your server environment.

Try running the http://<site>/civicrm/bin/civimail.cronjob.php from a browser (don't forget the user/password/key) and see if that has any result.

If possible, paste your information here, as I have done: server environment, drupal, civicrm version, etc.  Please check your error_log, smtp log, and civicrm log files and paste any useful info here.  Thanks!


Try CiviTeacher: the online video tutorial CiviCRM learning library.

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Civimail cronjob not processing messages
January 18, 2011, 01:34:19 pm
But surely the fact that it all worked perfectly well for over year before 3.3.1 has some bearing?
After upgrade, I even tried a new version of the mailout, and now even the first batch isn't happening! So it's actually got worse...

Setup :

Drupal : 6.19
CiviCRM : 3.3.2

Linux kernel version    2.6.18-294.17.1.el5.lve0.7.40
Apache version    2.2.17
Perl version    5.8.8 (more info)
PHP version    PHP/5.2.16, also available 4.4.9
MySQL version    5.0.91-community-log

Server is hosted with Site5, it's a Linux box, I have always had full ssh access, I can't tell much more than that I'm afraid, but again, it's the same server it's always been, the site was previously hosted on GoDaddy and it even worked there!

I'm not much of a server admin, but have never had any issues before, the mail queue and cron job has always worked, so what changed in 3.3.1? Or maybe may server set up changed or was upgraded?
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Civimail cronjob not processing messages
January 18, 2011, 01:35:49 pm
Oh and if I run it from web browser (which again worked in the past)... Nothing happens...
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

ChrisChinchilla

  • I post occasionally
  • **
  • Posts: 104
  • Karma: 3
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 6 & 7
Re: Civimail cronjob not processing messages
January 18, 2011, 01:40:47 pm
One more from me...

If I run the cron job manually from a cli, I get a status 200 and no data (0%) is transferred...
Melbourne CiviCRM meetup group - http://www.meetup.com/MelbourneCiviCRM/

Pages: 1 [2] 3 4
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Civimail cronjob not processing messages

This forum was archived on 2017-11-26.