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 setup not working
Pages: [1]

Author Topic: Cron setup not working  (Read 785 times)

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Cron setup not working
October 17, 2011, 06:48:10 am
Trying to setup cron and troubleshoot why it's not working.

From the root civicrm directory, running this command:

php bin/UpdateMembershipRecord.php -smoln.org -ucdm_service -p<hidden>

Produces this result: <br />Sorry, unrecognized username or password.

I've logged in successfully as that user (cdm_service) with the same credentials, given that user the admin role in Drupal, added that user to the Administrators group in CiviCRM and still I get this.

Any thoughts on why?

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Cron setup not working
October 18, 2011, 02:17:36 am
Hi,

Does it work for the civimail crons? view the source of UpdateMembership, might be that the syntax is a bit different than the -ulogin -ppass.

Various crons had different format for the params. this is on the way of being unified and standardised (for the next version I think).

Check out the
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Cron setup not working
October 18, 2011, 03:32:28 pm
Same result if I try it with civimail.cronjob.php.

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Cron setup not working
October 26, 2011, 05:30:16 am
Still not working. If I run the script as the actual admin user, it completes successfully. But it complains if I run it as this other user that I've given an administrator role in Drupal. I've reset the password. No luck. Is anyone else experiencing this?

jaymcgraw

  • I post occasionally
  • **
  • Posts: 106
  • Karma: 6
  • CiviCRM version: 4.1.2
  • CMS version: Drupal 7.12
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.11
Re: Cron setup not working
October 26, 2011, 05:39:46 am
Think I've figured it out. It didn't like the password string I was using. Most likely it was the $ character in the string as the other characters were all numbers or letters.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Cron setup not working

This forum was archived on 2017-11-26.