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) »
  • Cron error
Pages: [1]

Author Topic: Cron error  (Read 1603 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
Cron error
April 12, 2012, 06:19:42 am
Trying to get Cron running for the first time under WP.  I've got past 404 and 403 errors, but now have an http 500 error.  Looking at the error log I see this:

[Thu Apr 12 14:10:01 2012] [error] [client 91.146.107.207] SoftException in Application.cpp:601:
Directory "/home/maadmino/public_html/test/wp-content/plugins/civicrm/civicrm/bin" is writeable by group


The folder (bin) is writeable (777) so what's the problem?  I'm at a loss and have read the docs and can't see any hints as to what the folder permissions should be (if that's the problem).  BTW, the cron user is a WP user with Admin authority.  Help!
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: Cron error
April 12, 2012, 09:05:29 am
...if I make this folder with chmod 755 which from googling seems to be the right permissions I get a 403 forbidden error from cron.  Can anyone help?
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: Cron error
April 13, 2012, 04:24:06 am
Bump....

Also tried cli.php method & got this...   /bin/sh: $: command not found


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: Cron error
April 13, 2012, 07:52:27 am

The error u r getting is a shell error. Might want to check with a local person on how to run a shell script from the terminal/command line

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: Cron error
April 13, 2012, 08:16:35 am
I spoke with local support & they said to use full path for php and script, so here's my cron (with cron timing stuff at front, and where password really is a password)

$ /usr/bin/php /home/maadmino/public_html/test/wp-content/plugins/civicrm/civicrm/bin/cli.php -u username -p password -e Job -a execute

and the result was...      /bin/sh: $: command not found
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: Cron error
April 13, 2012, 11:20:43 am
Got some more help from local support (vidahost.com), who when they tried the url I'm using as the cron command got a message from a WP plugin called Adminimize that said it required a newer version of WP (! :o), which is impossible.  So I removed that plugin, reran cron and it has succesfully run the scheduled jobs :D  Phew!

The email I got from cron was kinda confusing - are these messages a problem?

HTTP request sent, awaiting response... 200 OK
Length: 0 [text/html]
Saving to: `cron.php?name=CiviAdmin&pass=password&key=267a8cf8a695632f058d221bf1f25108'

    0K                                                        0.00 =0s

2012-04-13 19:08:07 (0.00 B/s) - `cron.php?name=CiviAdmin&pass=password&key=267a8cf8a695632f058d221bf1f25108' 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) »
  • Cron error

This forum was archived on 2017-11-26.