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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Cron Job Not Firing For CiviMail 4.1.2
Pages: [1]

Author Topic: Cron Job Not Firing For CiviMail 4.1.2  (Read 2011 times)

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Cron Job Not Firing For CiviMail 4.1.2
June 06, 2012, 10:43:03 am
Through cpanel I had set up a cron job to fire the CiviMail job as follows in 4.0.8

wget -O /dev/null http://www.domainnamehere.com/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=NAME\&pass=PASSWORD\&key=SITEKEY >/dev/null 2>&1

All worked just fine and now according to the instructions I'm to use

wget -O - -q -t 1 'http://www.domainnamehere.com/sites/all/modules/civicrm/bin/cron.php?name=NAME&pass=PASSWORD&key=SITEKEY'

It's not working

Tried it as is
Tried it without the single quotes '
Tried it with the back slashes \ as in the first example that used to work

I've tried just about every permutation

Any suggestions?

Thanks!

« Last Edit: June 06, 2012, 01:10:36 pm by b0b_z »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Not Firing For CiviMail 4.1.2
June 06, 2012, 03:03:29 pm
Did you enable the CiviMail job at civicrm/admin/job ?
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 06, 2012, 05:02:29 pm
yessir I did
which of the syntax is correct

Forgot to mention I can manually trigger the run using

administer>>system settings>>scheduled jobs>>Mailings scheduler>>More>>Execute Now



thanks
« Last Edit: June 06, 2012, 09:02:47 pm by b0b_z »

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 03:23:51 am
I would try

Code: [Select]
wget -O /dev/null http://www.domainnamehere.com/sites/all/modules/civicrm/bin/cron.php?name=NAME\&pass=PASSWORD\&key=SITEKEY >/dev/null 2>&1
also also load

Code: [Select]
http://www.domainnamehere.com/sites/all/modules/civicrm/bin/cron.php?name=NAME&pass=PASSWORD&key=SITEKEY
into a browser to make sure it has no errors.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 06:00:14 am
Good Morning

loading

http://www.domainnamehere.com/sites/all/modules/civicrm/bin/cron.php?name=NAME&pass=PASSWORD&key=SITEKEY

generates "500 Internal server error"

I'll take a peek at the logs

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 01:17:23 pm
 SoftException in Application.cpp:256: File "/home/site54/public_html/web/sites/all/modules/civicrm/bin/cron.php" is writeable by group

This is all that in is the apace log

It's occurring every time the cron job fires

Any suggestions?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 01:20:29 pm
Quote from: b0b_z on June 07, 2012, 01:17:23 pm
Any suggestions?

Yes, make it not "writeable by group" :)

Try setting permissions 755 or ask your host for assistance.
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 01:45:46 pm
we ssh'd in and chmod'ed the file

We then did the test using http://www.domainnamehere.com/sites/all/modules/civicrm/bin/cron.php?name=NAME&pass=PASSWORD&key=SITEKEY with the proper variables filled in for NAME PASSWORD & SITEKEY

Got this:

Warning: require_once(CRM/Core/Config.php) [function.require-once]: failed to open stream: No such file or directory in /home/site54/public_html/web/sites/all/modules/civicrm/bin/cron.php on line 30

Fatal error: require_once() [function.require]: Failed opening required 'CRM/Core/Config.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/site54/public_html/web/sites/all/modules/civicrm/bin/cron.php on line 30


b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 07, 2012, 03:27:15 pm
The cron is now firing and processing the mailing

However, the messages are bouncing

This was not the case in 4.0.8 with all the same settings (SMTP, users etc...)

We're only testing with a few known address so they really are not bounces

The mail library returned the following error message:
Failed to connect to mail.three-media.com:25 [SMTP: Failed to connect socket: Connection refused (code: -1, response: )]

I checked all the mail accounts and they are working...
« Last Edit: June 08, 2012, 07:06:53 am by b0b_z »

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 08, 2012, 10:12:23 am
Now it's a different error

authentication failure [SMTP: Invalid response code received from SMTP server while sending email. This is often caused by a misconfiguration in Outbound Email settings. Please verify the settings at Administer CiviCRM >> Global Settings >> Outbound Email (SMTP). (code: 435, response: Unable to authenticate at present)]

What is odd is it worked the other day and now today it's not

hmmm

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 08, 2012, 11:53:17 am
Looks like an issue with the server NOT civicrm

We had restart dovecot and a few other services

It looks like all is working~

Yeah

If anything, I have a good handle on the migration process and refreshed my command line linux skills

Thank you to Hershel for all your help!

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 08, 2012, 12:13:26 pm
Well maybe my yippie session was a bit premature

I was able to get the cron to fire for a test set of addresses and successfully send them out

I tried a larger group of address and now the mailer is not doing anything

The "Successful Deliveries" is sitting at zero

Any suggestions?
« Last Edit: June 08, 2012, 12:16:07 pm by b0b_z »

b0b_z

  • I post occasionally
  • **
  • Posts: 49
  • Karma: 0
  • CiviCRM version: 4.1.6
  • CMS version: Drupal 7.19
  • MySQL version: 5.1.63
  • PHP version: 5.2.17
Re: Cron Job Not Firing For CiviMail 4.1.2
June 08, 2012, 12:20:00 pm
Me again...

Yippie once again

We had some issues with the server yet again

For whatever reason, civicrRM likes dovecot versus courier

When we fixed the earlier issue, cpanel toggled the mail server selection to courier

Switching it back to dovecot fixed the issue

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Cron Job Not Firing For CiviMail 4.1.2
June 09, 2012, 12:15:24 pm
Interesting. Thanks for the report. :)
CiviHosting and CiviOnline -- The CiviCRM hosting experts, since 2007

See here for the official: What to do if you think you've found a bug.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Cron Job Not Firing For CiviMail 4.1.2

This forum was archived on 2017-11-26.