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) »
  • Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
Pages: [1]

Author Topic: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2  (Read 3516 times)

bradb

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
May 21, 2012, 02:16:17 pm
Having a really hard time getting this to run. I have configured civimail and cron jobs several times on our cloud server where I have full access to the crontab. We have 1 client on a separate shared server from Bluehost. Can't seem to get my scheduled jobs to run. I have tried a bunch of different ways to execute this and they still do not seem to run correctly.

/ramdisk/bin/php5 /home1/xxxxxxx/public_html/site/administrator/components/com_civicrm/civicrm/bin/cli.php -u xxxxxxx -p xxxxxxxxx -e Job -a execute

I have the cron job configured to send me an email each time it run. I am getting an email every time it runs but the jobs are not working. The body of the email message I receive is
Set-Cookie: PHPSESSID=68rq01cahn9ce9jbekbb8hnrk4; path=/
Content-type: text/html

/ramdisk/bin/php5 /home1/xxxxxxx/public_html/site/administrator/components/com_civicrm/civicrm/bin/cron.php -u xxxxxxx -p xxxxxxxxx -e Job -a execute

running this with cron.php instead gives me: ERROR: You need to send a valid user name and password to execute this file, although i am using the correct un and pw for a J super user

w w w.xxxxxx.com/site/administrator/components/com_civicrm/civicrm/bin/cron.php?name=xxxxxxx&pass=xxxxxxxx&key=xxxxxxxxxxxxxxxxxxxxxxxx

This gives me a white screen and appears to have run, yet the jobs do not execute. Changing the key to something different gives me a site key error so I know something is happening here, job are not working tho.

w w w.xxxxxx.com/site/administrator/components/com_civicrm/civicrm/bin/cli.php?name=xxxxxxx&pass=xxxxxxxx&key=xxxxxxxxxxxxxxxxxxxxxxxx

Running this from the browser using cli.php give me this error:

The --action argument is required Usage: cli.php -e entity -a action [-u user] [-s site] [--output] [PARAMS] entity is the name of the entity, e.g. Contact, Event, etc. action is the name of the action e.g. Get, Create, etc. user is an optional username to run the script as site is the domain name of the web site (for Drupal multi site installs) --output will print the result from the api call PARAMS is one or more --param=value combinations to pass to the api

I am pretty much out of ideas on this one. Scoured google, civi forums, bluehost forums, IRC. Anyone got anything for me?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
May 21, 2012, 02:59:39 pm
Quote from: bradb on May 21, 2012, 02:16:17 pm
xxxxxx.com/site/administrator/components/com_civicrm/civicrm/bin/cron.php?name=xxxxxxx&pass=xxxxxxxx&key=xxxxxxxxxxxxxxxxxxxxxxxx

This gives me a white screen and appears to have run, yet the jobs do not execute. Changing the key to something different gives me a site key error so I know something is happening here, job are not working tho.

If running the URL in the browser fails, then you have a more fundamental problem. If no output is generated, then that's a sign that it should be working. If so, you could just use wget and that URL for your cron.

But if no jobs are being executed by loading that URL into a browser, then no cron job will help.

What job is it that is not running when you load the URL into a browser?
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.

bradb

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
May 22, 2012, 06:09:47 am
I am trying to run bounce processor, process mailing and process membership. When I run cron.php from the browser I get the white screen w/ no output and it appears that it runs, also changing the site key gives me an error. But my mem statuses are not updated and my mailings still say scheduled. Changing it to cli.php gives me the action argument is required error.

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
May 22, 2012, 06:15:56 am
Did you enable this job at civicrm/admin/jobs ?
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.

bradb

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: 4.2
  • CMS version: Joomla 2.5
  • MySQL version: 5.1.57-community
  • PHP version: 5.3
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
May 22, 2012, 06:36:20 am
All 3 are enabled in civicrm>administer>system settings>scheduled jobs. They also all run if I do execute now.

osep

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.10
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
August 24, 2012, 02:23:48 am
Hello bradb,

I have the same problem as you (with a joomla site 2.5)

Could you solve your problem? If so could you share your solution?

thank you

osep

  • I’m new here
  • *
  • Posts: 26
  • Karma: 0
  • CiviCRM version: 4.1.5
  • CMS version: Joomla 2.5.6
  • MySQL version: 5.1.62-cll
  • PHP version: 5.3.10
Re: Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2
August 27, 2012, 02:15:58 am
For those interested : you need to modify two files as described in this post:

http://forum.civicrm.org/index.php/topic,25138.msg108914.html#msg108914

And everything works !

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Civi Cron Configuration Problem on shared host J 2.5 Civi 4.1.2

This forum was archived on 2017-11-26.