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 Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 4.3 Cron problem
Pages: [1]

Author Topic: 4.3 Cron problem  (Read 1062 times)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
4.3 Cron problem
April 13, 2013, 01:39:28 am
I have set up 2 x 4.3.0 installs for projects that I'm working. Both sub domains of the same domain.   One converted from 4.2.8 and cron works fine.  The other was a fresh install, and cron runs but does not start jobs.  So mail goes from scheduled to running, and stays there and no mail is sent. 
I checked the setup again and again and can find nothing wrong in the fresh install, but to no avail.  So, I created another sub domain and did another fresh install - with the same results - cron runs but does nothing.
I can send email from the fresh install, I can run the scheduled jobs directly, but cannot make the jobs run from cron.  But from my upgraded system, all is OK.

Ideas, please!
« Last Edit: May 03, 2013, 11:01:58 am by clarkac »
Andy Clark

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: 4.3.0 Cron problem
April 13, 2013, 02:36:25 am
What's the output you get when running the cron?

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

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: 4.3.0 Cron problem
April 13, 2013, 02:49:58 am
In the scheduled jobs log, I get the 2 messages that scheduled mailings has started at the correct time, and completed normally. But to no effect, of course.   I don't get any message from cron itself, certainly no errors which would in any case be emailed to me.  Is there somewhere I could be looking for cron output?
Andy Clark

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: 4.3.0 Cron problem
April 13, 2013, 03:23:35 am
More.. I just did a clean install of 4.2.9 and cron/mailings worked first time.  Seems to prove that there is a problem with cron with a clean 4.3.0 install (having done it twice with the same results), since in the same environment a clean install of 4.2.9 is fine.
Andy Clark

dowd

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
Re: 4.3.0 Cron problem
April 25, 2013, 11:30:39 am
Did you ever sort this out as I have just updated a site to 4.3.1 and the cron seems to run fine but the emails don't seem to run unless I do it manually.

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: 4.3.0 Cron problem
April 27, 2013, 09:29:42 am
No, I didn't sort this out.  I have set up several test systems and in all cases if I migrate from a working 4.2.9 system to 4.3.1 then cron runs and sends emails and SMS.  But with a clean install of 4.3.1 cron runs OK, but no emails or SMS gets sent.  Maybe I should raise this as an issue.  Is this the same as your situation?
Andy Clark

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: 4.3.0 Cron problem
April 27, 2013, 05:05:21 pm

You will need to debug the code in this case. we have tested the cron stuff locally and have it sending email and sms'es

in general please do not file issues unless there is a better handle and specificity on the problem description

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

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: 4.3.0 Cron problem
April 28, 2013, 04:30:35 am
I've done several clean installs of 4.3.0 ane 4.3.1 and in no case could I send mail or SMS'es via cron, although I can send them using other ways in Civi.  When I have migrated from 4.2.9 there's no problem.

Is there anyone out there with the same problem of a clean install not sending emails/sms via cron?  dowd (see above) reported updating to 4.3.1 which sounds like an upgrade, not a clean install.
Andy Clark

dowd

  • I’m new here
  • *
  • Posts: 21
  • Karma: 0
Re: 4.3.0 Cron problem
April 29, 2013, 08:55:05 am
Yep mine was an upgrade. I did notice that there is new permissions for Civi in 4.3 so it might be worth checking that the cron job user account has the right permissions (though this didn't seem to work for me)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: 4.3.0 Cron problem
May 03, 2013, 11:01:37 am
I've upgraded an installation to 4.3.2 from 4.2.9 where mail & sms worked ok, but they don't work at all now.  The individual jobs all run ok, but no emails or texts get sent. The output from the cron job is as follows. Looks OK to me, I am stumped.  In another sub domain I have 4.3.2 working fine in this respect.  Why should they differ?
Resolving www.cctest.powyscontracting.co.uk... 91.146.107.251
 Connecting to www.cctest.powyscontracting.co.uk|91.146.107.251|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 0 [text/html]
 Saving to: `STDOUT'

      0K                                                        0.00 =0s


2013-05-03 18:52:02 (0.00 B/s) - `-' saved [0/0]

Andy Clark

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • 4.3 Cron problem

This forum was archived on 2017-11-26.