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) »
  • Unable to get Cron job working
Pages: [1]

Author Topic: Unable to get Cron job working  (Read 631 times)

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Unable to get Cron job working
September 12, 2012, 06:07:40 am
Hi.

I've been trying to get a cron job working to send out report emails, but it keeps asking for a valid username and password - but already has them.

So far I can get the report sending manually (via the 'Scheduled Jobs' control panel).

I've tried all ther various methods described on the 'Managing Scheduled jobs' documentation page, but the closet I can get is using the following string:

Quote
wget -O - -q -t 1 "http://www.lycettecare.com/reports/administrator/components/com_civicrm/civicrm/bin/cron.php?job=mail_report&instanceId=54&user=username&pass=password&key=site-key"

This reports back with the following error:

Quote
ERROR: You need to send a valid user name and password to execute this file

The string is setup with the correct username/password/site-key.

I've been trawling through the forums for a possible solution, but nothing has worked so far. If you can help I would be most grateful - meanwhile if I stumble upon the solution I'll re-post here.

Cheers,

Ian.

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: Unable to get Cron job working
September 12, 2012, 08:54:57 am

might want to add some debug statements here:

CRM/Utils/System/Joomla.php, function authenticate

and check why its not recognizing a valid username/password

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

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to get Cron job working
September 12, 2012, 02:02:40 pm
Does it work if you remove job=mail_report&instanceId=54 from the URL?
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.

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Re: Unable to get Cron job working
September 13, 2012, 05:17:20 am
Hi.

Thanks for responding.

Just tried the address without the "job=mail_report&instanceId=54" bit and it's still giving me the same error message. Something not right with authentication.

As an experiment I created a completely new SuperUser in case there was something screwy with my account. Same error.

Will keep experimenting...

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to get Cron job working
September 13, 2012, 05:19:26 am
Use a "bad" site key and see if it catches that error...
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.

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Re: Unable to get Cron job working
September 14, 2012, 01:03:10 am
Tried, but got the same response. Is there any value in trying to re-install it? Or maybe part of the database that I could have a poke at?

Hershel

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4640
  • Karma: 176
    • CiviHosting
  • CiviCRM version: Latest
  • CMS version: Mostly WordPress and Drupal
Re: Unable to get Cron job working
September 14, 2012, 03:31:42 am
See Lobo's post above for how to debug.
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.

Ian G.

  • I post occasionally
  • **
  • Posts: 54
  • Karma: 0
    • Atlantic Coast Theatre
  • CiviCRM version: 4.4+
  • CMS version: Joomla 3+
Re: Unable to get Cron job working
September 14, 2012, 04:43:33 am
Yeah, that was my next port of call. Got some time this afternon so I'll see if I can do it.

Cheers and have a good weekend!

Ian.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Core CiviCRM Functions (Moderator: Yashodha Chaku) »
  • Unable to get Cron job working

This forum was archived on 2017-11-26.