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 »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • cron job does not execute
Pages: [1]

Author Topic: cron job does not execute  (Read 583 times)

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
cron job does not execute
June 20, 2014, 10:19:04 am
I try to get a php job working, but neither an error message has been sent by the server nor does it work (no protocol entry in civicrm). Here the job:
Code: [Select]
*/20 * * * * php /var/www/web139/html/samadhi_institute/administrator/components/com_civicrm/civicrm/bin/cli.php  -s domain.org -u crm_user -p crm_users_password -e Job -a execute
another job of the sort
Code: [Select]
php /var/www.../cron.php is running
Would somebody be so nice to have a second look at the syntax? I do not see an error there. Thank you!!!

P.S. when I start the tasks from the backend no problem at all!
i was following this document: http://wiki.civicrm.org/confluence/display/CRMDOC/Managing+Scheduled+Jobs#ManagingScheduledJobs-PHPclimethod

the log of a manual execution from the backend:

Code: [Select]
Time1:
Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Starting execution of Process Inbound Emails

Time 2:
Parameters parsed (and passed to API method):
a:1:{s:7:"version";i:3;}

Full message:
Finished execution of Process Inbound Emails with result: Success (a:0:{})
« Last Edit: June 20, 2014, 10:54:57 am by web_services »

JonGold

  • Ask me questions
  • ****
  • Posts: 638
  • Karma: 81
    • Palante Technology
  • CiviCRM version: 4.1 to the latest
  • CMS version: Drupal 6-7, Wordpress 4.0+
  • PHP version: PHP 5.3-5.5
Re: cron job does not execute
June 20, 2014, 03:12:31 pm
What happens if you just run that cron job on the command line?  Do you get error output then?

Jon
Sign up to StackExchange and get free expert CiviCRM advice: https://civicrm.org/blogs/colemanw/get-exclusive-access-free-expert-help

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
Re: cron job does not execute
June 21, 2014, 12:08:55 am
i tried ssh and putty, both do not let me in... I think I have to talk to the provider for this... there suld be an error e-mail for cron but it is not getting in my inbox either :-(

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 does not execute
June 22, 2014, 10:30:58 am
Can you try the URL method and see what happens?
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.

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
Re: cron job does not execute
June 23, 2014, 12:06:31 am
URL method gave me just a white screen. But mow the e-mail logging is working again...

Code: [Select]
Warning: require_once(civicrm.config.php): failed to open stream: No such file or directory in /var/www/webNNN/html/domain/administrator/components/com_civicrm/civicrm/bin/cli.class.php on line 202

Fatal error: require_once(): Failed opening required 'civicrm.config.php' (include_path='.:/usr/share/php') in /var/www/webNNN/html/domain/administrator/components/com_civicrm/civicrm/bin/cli.class.php on line 202

and that is the part of the code:
Code: [Select]
   $civicrm_root = dirname(__DIR__);
    chdir($civicrm_root);
    require_once ('civicrm.config.php');               (line202)
    // autoload
    if ( !class_exists('CRM_Core_ClassLoader') ) {
      require_once $civicrm_root . '/CRM/Core/ClassLoader.php';

as I get it it is looking for civicrm.config.php within the civicrm root directory?  This is within /html/domain/administrator/components/com_civicrm/civicrm/...

or needs the file to be copied to: /usr/share/php ?
« Last Edit: June 23, 2014, 12:09:23 am by web_services »

web_services

  • I’m new here
  • *
  • Posts: 29
  • Karma: 0
  • CiviCRM version: 4.4.5
  • CMS version: Joomla 3.3.1
  • MySQL version: 5.1.66-0+squeeze1
  • PHP version: 5.3.24-1~dotdeb.0
Re: cron job does not execute
June 26, 2014, 01:39:18 am
Anybody who can help with the php code?

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 does not execute
June 27, 2014, 03:58:00 am
web_services, I do not know for sure what the issue is. You definitely do not need to copy any files to /usr/share/php. CiviCRM is known to work for most normal server configurations, so my guess is that something is unusual with your install or your server. Hard to know what however. :(
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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • cron job does not execute

This forum was archived on 2017-11-26.