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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [solved] Cron Conundrum - stopped working again
Pages: [1]

Author Topic: [solved] Cron Conundrum - stopped working again  (Read 1295 times)

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
[solved] Cron Conundrum - stopped working again
June 03, 2011, 02:00:28 am
I have had the mail processors running sweetly, and now they've stopped...

3.4, drupal 6.x latest.

Using cli script.

I'm not sure when it broke, but recently I have upp'ed core (still 6.x, just the security update) and tightened up the default/files directory.

No changes to the civicrm install.

The scripts still work - that is I can run them successfully from the command line using ssh - by them I mean the mail cron, the mail processor for the returns channel and for autofiling.

The cron logs show the scripts are set to run every interval they should and I can't find any errors logged... but then I may well be looking in the wrong place.

Does anyone have suggestions of where to look next?

tia
« Last Edit: June 05, 2011, 05:04:51 am by myles »

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cron Conundrum - stopped working again
June 03, 2011, 03:26:54 am
duh ?

Sure that's the same user for the cron & for the ssh test ?

you can add a MAILTO on the cronfile that will mail you the result of the cronjob. See anything in that mail ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Cron Conundrum - stopped working again
June 03, 2011, 07:58:12 am
The linux user is different of course, but the script is identical to the cron script - I cut and paste it from there - same Drupal user same value in the -u parameter

I can't add a MAILTO without messing things up as I am using a control panel to create the cron (DirectAdmin) which does not have the facility to redirect the mail...

Shouldn't be a problem except that I can't read mail on the server because of a mess of some kind that we won't into here. I'm working on it. (this not the same domain as our organisation's email addresses)

So thanks for your quick response and sorry for my delay - one thing leading to email servers. ::)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cron Conundrum - stopped working again
June 03, 2011, 09:05:44 am
Quote from: myles on June 03, 2011, 07:58:12 am
The linux user is different of course, but the script is identical to the cron script - I cut and paste it from there - same Drupal user same value in the -u parameter

Can you try with the same user ?

Quote from: myles on June 03, 2011, 07:58:12 am
I can't add a MAILTO without messing things up as I am using a control panel to create the cron (DirectAdmin) which does not have the facility to redirect the mail...

Can you use your ssh account and run $crontab -e ?

(check out the syntax a bit different:)

*/5 * * * * cd /your/civicrm;nice -19 php bin/civimail.cronjob.php -uyouruser -pyourpassword  -syoursite
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Cron Conundrum - stopped working again
June 03, 2011, 12:40:50 pm
I've no idea what the DirectAdmin user is - I'll investigate, but it seems like trying to be the apache user

myles

  • I post frequently
  • ***
  • Posts: 263
  • Karma: 11
Re: Cron Conundrum - stopped working again
June 05, 2011, 05:04:27 am
File permissions on sites/default/files were wrong.

chmod to 755 solved it -

Was absolutely sure that's what they were set to before; I'm going downhill fast (bang head on wall)
« Last Edit: June 05, 2011, 05:06:00 am by myles »

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • [solved] Cron Conundrum - stopped working again

This forum was archived on 2017-11-26.