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) »
  • Civimail Cron Ceased Triggering After Upgrade to 4.1.5
Pages: [1] 2

Author Topic: Civimail Cron Ceased Triggering After Upgrade to 4.1.5  (Read 2632 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
Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 10:38:46 am
Good Morning:

I've tried to search for a solution and haven't found exactly my situation so I figured I'd ask the experts...

We upgraded to 4.1.5 from 4.1.2 under Drupal 7

We were triggering cron jobs the "old fashioned way" using

wget -O - -q -t 1 http://www.sitegoeshere.com/web/sites/all/modules/civicrm/bin/cron.php?name=blah\&pass=blahblahblah\&key=blahblah

The cron job ran every minute allowing 8 messages per cycle as set in Mailer Batch Limit

I know that this method has been depreciated and will eventually go away SO we began looking at administer>>system setting>>scheduled jobs

Saw the Mailings scheduler and I had it set to always so it would trigger on every cron instance

I can manually trigger the cron job via URL and it will send a batch but that's it

All was working fine until the upgrade

Any suggestions?
« Last Edit: August 11, 2012, 10:41:34 am 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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 12:05:59 pm
Quote from: b0b_z on August 11, 2012, 10:38:46 am
We were triggering cron jobs the "old fashioned way" using

No, that's the NEW way actually.

Quote from: b0b_z on August 11, 2012, 10:38:46 am
I know that this method has been depreciated and will eventually go away

I am not aware of any plans to deprecate that. For CiviCRM 4.1.x anyhow, that is the correct way to trigger emails. Your "old" cron is correct and you should keep it.
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 12:17:19 pm
Well ok...

What was old is now new

Regardless, it's not triggering the batch mailer


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 12:20:54 pm
If the URL works but your cron fails, then that means the CiviCRM is still using the same method. Sounds like maybe someone on your server changed.

Anyhow, try to put the URL on quotes in your cron job and then remove the \ characters.
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 12:50:53 pm
That didn't work either

It was working before the upgrade this morning and now nuthin'

hmmm

Did a
tail -f /var/log/cron
and it seems to be firing without errors
« Last Edit: August 11, 2012, 01:05:49 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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 01:00:42 pm
If the exact same URL works, but the cron doesn't, then ask your host why...
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 04:21:30 pm
Well...

I have nothing...

Spoke to the company with whom I have the VPS and they indicated crond is running and I confirmed that on my end via the cron log

Any other possible things to try?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 04:31:06 pm
Try

Code: [Select]
wget url
at the command line of your VPS and see what the output is. Replace url with your url of course. :)
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 11, 2012, 05:10:24 pm
Did it...

It resolved and connected to the domain


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 04:08:46 am
It should save the page as a file. Can you see the contents of that file?
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 07:01:30 am
Am I simply wget the url only or the url of the cron job?

A wget of just the url saves an index.html file and it's blank

a wget of the cron job get the following

Resolving www.mydomainhere.com... ***.***.***.***
Connecting to www.mydomainhere.com... ***.***.***.***|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2012-08-12 06:58:40 ERROR 500: Internal Server Error.

So it would appear there's a possible permissions issue

Suggestions?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 07:15:17 am
No, the wget is just of the url. The cron job SHOULD be not accessible. :)

And getting index.html with no output is correct. Does doing that indeed run the cron in CiviCRM?

Because if that works from the CLI, then it should work the exact same from your cron job. If not, you will need to ask your host why.
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 10:58:11 am
A wget of the urls gets a blank index.html file and no, that did not trigger the cron

It's the first time this has ever occurred to us after an upgrade

Anything else it might be?

Permissions?

On upgrading I made sure the group and owners we set properly


Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 11:58:54 am
Loading YourURL in the browser triggers cron but loading the same YourURL via wget does not? Can't see why that should be.

Try loading it in other browsers and another PC to make sure it works there too. Something sounds odd here.
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: Civimail Cron Ceased Triggering After Upgrade to 4.1.5
August 12, 2012, 12:07:27 pm
Perhaps I mis-spoke...

If I use

http://www.myURL.com/web/index.php?q=civicrm/mailing/queue&reset=1

That will trigger the mailer once

As an aside, I have another cron job I run to do a custom backup that was added to crontab and that's been working all along

0 3,20 * * * /home/site54/backup.sh

Thanks!
« Last Edit: August 12, 2012, 12:13:53 pm by b0b_z »

Pages: [1] 2
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Civimail Cron Ceased Triggering After Upgrade to 4.1.5

This forum was archived on 2017-11-26.