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 »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 4.4.3 Cron Job Fails: Invalid username and/or password
Pages: 1 2 [3]

Author Topic: 4.4.3 Cron Job Fails: Invalid username and/or password  (Read 9378 times)

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 08, 2014, 06:36:05 pm
I worked with @globeseek to investigate why he was still experiencing issues. Turns out I missed one change that I had in my test install but didn't include in the PR.

I've updated the PR so it now includes the missing change:
https://github.com/civicrm/civicrm-core/pull/2833
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 09, 2014, 01:26:03 pm
Would this also apply to Joomla 2.5x installs?

Thanks for your hard work on this.

Quote from: lcdweb on April 08, 2014, 06:36:05 pm
I worked with @globeseek to investigate why he was still experiencing issues. Turns out I missed one change that I had in my test install but didn't include in the PR.

I've updated the PR so it now includes the missing change:
https://github.com/civicrm/civicrm-core/pull/2833

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 09, 2014, 01:50:27 pm
no. the patch is to fix the process for J3.2.x
the previous patch is sufficient for 2.5
(it won't hurt to add it, but it isn't needed)
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 09, 2014, 01:55:42 pm
We're having problems getting things to work with the previous patch, assuming we're working with the right one:

https://github.com/civicrm/civicrm-core/pull/2512

If there's another pull I should be looking at, do let me know.

Barbara

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 09, 2014, 03:22:36 pm
that PR should be all you need. are you sure you implemented the patches correctly?
if you want to, send me the three files you modified and I'll diff them against my versions and see if there's a discrepancy.

what are you seeing when you run the cron? errors?
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 10, 2014, 09:34:12 am
My server manager was doing the patch for us and says he's still getting a username error. That was 2 days ago - let me get a hold of him now and find out where he's at. Heartbleed has had us jumping over here. I appreciate the offer, very much.

We do have one site on 3.2, so I'll add your change to that one and see if it runs as it should, the other sites are all 2.5x.

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 25, 2014, 05:00:23 pm
Sadly 4.4.5 upgrade broke the fix that was in place -

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 25, 2014, 09:37:58 pm
Maybe my error was self inflicted..
Under further investigation - it looks like the update changed my sitekey (I had made a custom key)  - so that the error in the log was that the wrong sitekey was being used

I looked at the settings file and changed my cron to use the sitekey that was now in my settings file and all was fine.

why would the update change my sitekey ?

The cron is back to running - but it was odd...

penguintrax

  • I post frequently
  • ***
  • Posts: 230
  • Karma: 2
  • CiviCRM version: 3.3x and 4.x depending on site
  • CMS version: Joomla 1.5 or 1.7 depending on site
  • MySQL version: 5.0.92-community
  • PHP version: 5.2.17
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 26, 2014, 08:17:03 am
When the update installs it automatically creates a new civicrm.settings.php file (I believe). According to the documentation, they say to backup the existing 2 files (one in admin, the other a level up) and then use that to reestablish settings and site keys.

Glad you got it worked out!

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 28, 2014, 07:28:25 pm
@globeseek
(I responded to your email to me before reading your update here)

yes... as penguintrax indicated, the civicrm.settings.php files are regenerated when you install an upgrade. so your sitekey would have changed as a result of the upgrade.

as an aside --
that's a less than desirable action (the regeneration of the settings file) that is on the radar for improvement. we're looking at retaining the existing file and only implementing the necessary changes to it (with new releases there are occasionally new config options added to that file).
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

globeseek

  • I post occasionally
  • **
  • Posts: 40
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
April 28, 2014, 09:55:10 pm
I vaguely remember that (to back up the two files and reinstall) seems odd as if there are new config parameters it would overwrite whatever new ones were needed with the update ..

odd but something to add to a checklist :-)

craftee123

  • I post occasionally
  • **
  • Posts: 36
  • Karma: 0
Re: 4.4.3 Cron Job Fails: Invalid username and/or password
May 13, 2014, 05:21:10 pm
I had this same problem running WP 3.9.1 and Civi 4.4.4. After lots of trial and error, I did 2 things...not sure which of them fixed the problem (and they're both face-palms)

1) I created  a new WP admin user that did NOT include a _ in its handle and had no capital letters. I had been using CiviCRM_Cron, and I changed it to simply civicron.

2) I synced users to contacts.

That fixed the problem...

Pages: 1 2 [3]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • Joomla! Installations (Moderator: Deepak Srivastava) »
  • 4.4.3 Cron Job Fails: Invalid username and/or password

This forum was archived on 2017-11-26.