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) »
  • File appearing when civimail runs
Pages: [1]

Author Topic: File appearing when civimail runs  (Read 1274 times)

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
File appearing when civimail runs
May 15, 2010, 02:03:28 pm
Every time my civimail cron job runs it saves a big (40 meg) file of the form core.12345 in cdcivicrm/bin.

The job seems to run fine -- mails go out and there are no message in the output file.

Any ideas how to stop this annoying storage muncher?

/w.


demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: File appearing when civimail runs
May 17, 2010, 08:01:14 am
ulimit -c 0

But that won't solve what's causing it, it will just tell the OS not to dump core files when a program crashes. Something is crashing somewhere during your cron run. The core file is like a snapshot of system state at the time.

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: File appearing when civimail runs
May 17, 2010, 08:47:12 am
Thank you.

In which file would this line go?

/w.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: File appearing when civimail runs
May 17, 2010, 09:46:31 am
What does your cronjob do when you run it manually ?

I've been running for a while my crons in a php-cli instead of wget. works fine. You might want to try that way:

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

(if I recall properly, on 3.1.4 you need to copy /tools/bin/cli.php from a svn version, sorted out on 3.2)
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

demeritcowboy

  • Ask me questions
  • ****
  • Posts: 570
  • Karma: 42
  • CiviCRM version: Always the latest!
  • CMS version: Drupal 6 mostly, still evaluating 7.
  • MySQL version: Mix of 5.0 / 5.1 / 5.5
  • PHP version: 5.3, usually on Windows
Re: File appearing when civimail runs
May 17, 2010, 09:53:33 am
On mine it's /etc/sysconfig/ulimit, but typically it's in bashrc (either per user ~/.bashrc or globally /etc/bashrc) or else something like /etc/init.d/boot.local.

Will Brownsberger

  • I post occasionally
  • **
  • Posts: 44
  • Karma: 2
Re: File appearing when civimail runs
May 18, 2010, 03:21:17 pm
Thanks all for this feedback.

We have been running it as a wget, but maybe we should go back to a php command line.

Not sure why that would be the problem . . . but we can we try it!

/w.

carolinebhuang

  • Guest
Re: File appearing when civimail runs
July 08, 2010, 04:01:03 am
I'm working with Will B. on his systems, and I found the problem.  In sites/all/modules/civicrm/bin, there's a file called error_log (very important file!) which showed memory errors for many (not all) of our mail cron job runs.  The mail script was looking at the php.ini in /usr/local/lib (we have the php cli installed, so I could see the php.ini location by doing php --ini).  That php.ini had the default memory limit.  I upped the memory limit to 1024, and the core dumps stopped.

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: File appearing when civimail runs
July 08, 2010, 06:23:05 am
Cool,

So you are using the cli version to send emails ?
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • File appearing when civimail runs

This forum was archived on 2017-11-26.