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 »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
Pages: 1 [2]

Author Topic: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []  (Read 2589 times)

zmi

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
    • Protéger Internet Services Austria
  • CiviCRM version: 4.0.0
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
October 28, 2012, 06:08:37 pm
Now I can't login anymore...into joomla:

Code: [Select]
Duplicate entry 'j77lq65g7t3b28dstupsot61gksmv9vh' for key 'PRIMARY' SQL=INSERT INTO `jos_session` (`session_id`, `client_id`, `time`) VALUES ('j77lq65g7t3b28dstupsot61gksmv9vhc7r3ssvcqik1rdfb7ma0', 1, 1351472823)
I deleted the DB & website several times, restored, still no chance to log in anymore. I think it's too late for my brain, or god hates me  ???
--
Protéger: Professional Hosting in AUSTRIA, Europe
http://proteger.at/
http://facebook.com/protegerat

zmi

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
    • Protéger Internet Services Austria
  • CiviCRM version: 4.0.0
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
October 28, 2012, 06:29:13 pm
OK, found THAT error:
Code: [Select]
http://www.joomla-forum.de/forum/joomla-support/joomla-cms/joomla-16-fehlermeldung-beim-login.html
It says that Joomla 1.6 ahs it's session_id defined wrong. Is varchar(32), should be 64 long. Changed that, can login again.... STUPID. But the best: Why did this happen NOW?
--
Protéger: Professional Hosting in AUSTRIA, Europe
http://proteger.at/
http://facebook.com/protegerat

zmi

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
    • Protéger Internet Services Austria
  • CiviCRM version: 4.0.0
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
October 28, 2012, 06:40:42 pm
YYYYYYYYEEEEEEEEEEEAAAAAAAAHHHHHH  :o :o :o :o

The upgrade finally worked.

So what were the problems?
- Directory rights in website too restrictive (the script should REALLY check this and warn before the upgrade, or at least give an error, not [] as a message)
- SUPER rights in DB needed, despite MySQL 5.1.49
- Joomla 1.6 has DB table `jos_session` with field session_id varchar(32), while it MUST be varchar(64)

With this it works. Hope this thread helps others. Cheers!  :-*
--
Protéger: Professional Hosting in AUSTRIA, Europe
http://proteger.at/
http://facebook.com/protegerat

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: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
October 28, 2012, 07:37:49 pm

can u expand a bit more on the directory rights being too restrictive

also, 4.2 and later have been tested only with j! 2.5. so i dont think we've hit the session_id limit. seems more like a j! issue to me rather than a civi issue

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

zmi

  • I’m new here
  • *
  • Posts: 16
  • Karma: 0
    • Protéger Internet Services Austria
  • CiviCRM version: 4.0.0
  • CMS version: Joomla 1.6.3
  • MySQL version: 5.1
  • PHP version: 5.3.3
Re: Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []
October 29, 2012, 05:47:06 am
Quote
can u expand a bit more on the directory rights being too restrictive

Until now, the webserver had no rights to write too Joomla and it's subdirs. The system was working for 1-2 years now, this was no problem. But now it seems the upgrade had to write somewhere. When I installed the com_civicrm Extension, there were some on-screen errors about needed rights to some subdirs (e.g. components & plugins), and I fixed all that. The upgrade of files worked then, but obviously the part that installs the DB needed some other right too, and this has not been checked by the installer. As soon as I gave write rights to Apache for all subdirs, the DB upgrade started to run.

Quote
also, 4.2 and later have been tested only with j! 2.5. so i dont think we've hit the session_id limit. seems more like a j! issue to me rather than a civi issue

Yes, this is a Joomla issue, I just wanted to document it as a reference for other who might find this thread when they have the same problem.
I'm puzzled though as to why Joomla ever worked before? I had done a dump of the DB, then reinstalled that. It worked before but not afterwards. How could it ever have worked, when the field definition was for 32 chars, but uses more? Very strange.

Anyway, we're on 4.2.4 now, so all good.
Thank you for the great hints and support.  ;D
--
Protéger: Professional Hosting in AUSTRIA, Europe
http://proteger.at/
http://facebook.com/protegerat

Pages: 1 [2]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Upgrading CiviCRM (Moderator: Deepak Srivastava) »
  • Upgrade 4.0.0 to 4.2.4: database upgrade fails, says []

This forum was archived on 2017-11-26.