Loading...
 

After an upgrade (7.2 to 8.1 and 8.3 or 8.x RC 8.4) the admin can't login anymore in some situations

Status
Open
Subject
After an upgrade (7.2 to 8.1 and 8.3 or 8.x RC 8.4) the admin can't login anymore in some situations
Version
7.x
8.x
Category
  • Error
  • Usability
  • Documentation (or Advocacy)
  • Consistency
  • Conflict of two features (each works well independently)
Feature
Accessibility
Admin Interface (UI)
Submitted by
Bernard TREMBLAY
Volunteered to solve
Bernard TREMBLAY
Lastmod by
Bernard TREMBLAY
Rating
(0)
Description

After upgrade the admin can't login anymore

The failure sequence :

  1. Create a new directory or repository for the new version
  2. Update with your files (particularly images or icons)
  3. Site enable (example a sub-domain) on Apache
  4. Copy the database on new name
  5. Install manually .htaccess (compare and insert your valid options )
  6. Update "local.php"
  7. run <your new domain>/tiki-install.php. Goto the end (note an error occurs if your say at the end "run tiki" without locking or not because tiki-setup tries to re-open a session already automatically opened by installer). You just launch again (default tiki-index)
  8. Try to login as admin : You will be rejected as wrong password

Analysis - many possible reasons :

There are a lot of reasons to be in this situations. So to be successful a lot of conditions must be satisfied :

  1. If your new version uses the same current domain (after upgrade for my own I defines the same "servername" as current one and then keep the other when a particular name containng the version :

- The Cookies of session will try to reconnect an older version and a trace shows that the password is not the one you have given (generally empty). So the cookies of the site name must be cleared on your navigator

  1. The temp files or session table contain too wrong data : they must be cleared on server for your current copy (SVN update case)

  1. Your admin record in user_user record contains sessions data : they create a conflict which makes crash your login

  1. Be careful of the fact that you can have an open session in your navigator with the same site (sometimes we uses a lot of tab management which can create this : on firefox use showcase and search to clear your old sessions

  1. Generally avoid these problem is sufficient but at the end you will be prompt to update your password (as for the first login as admin with password admin). This can fail for the following reason : if the .htaccess is not set or modrewrite not well operational the <site name> will include the "port" used by your server. If your NAT translates the port address (i.e. 80-> 4397) you will get the following url <site>:4397/.... which fails


It is sure that if you use only one site close everything and upgrade you will get the minimum of problems but you will get someone anywhere.

This situation is common and complex for whom have to manage product and data migration from one version (or several) of tiki to a new one.

It is not seen generally by developers, because it is not at all their common upgrade process nor test.

Solution

The true solution is a modification of installer and userlib which will make useful resets that I have done successfully manually (after a lot of hours of work). It had been reproduced and tested twice.

The manual operations are described into "workaround" which can be reached only after summit.

Workaround

Manual operations

  1. Be sure to have closen the url
  2. use phpmyadmin to access user_user : edit the admin record : set to null

- provpass
- lastlogin
- currentlogin
- challenge
- pass_confirm

  1. Clear "temp" files and "sessions cache" if not in "temp"
  2. On the computer for the domain clear the cookies
  3. Launch the url: http(s)://<site>/tiki-change_password.php?user=admin
  4. You will be proposed to change the password (you must use a new one, even after login you go back to the old and current one)
  5. You are now logged in and will never have any problem

Everything will be now OK.

note for others users working on others computers:

For others users new sessions will be created. Some problem can occur with PHPSESSID for others users running a session while you make your update. Even they disconnect (you close the site during update - needed), when they reconnect the PHPSESSID cookie can give wrong data. The solution is to clear this cookie before reconnection after an upgrade (soft version and data structure).

Option :

- You can reset the admin record with the tiki.sql corresponding record. But be careful, if you have changed the minimum size of password you will fail...
I have developped an sql request which resets full default configuration for logins and reset admin default. But as it can change with new version I can be given only as example (valid till 8.4).
Naturally some of this operations are not necessary depending of options.

Importance
9 high
Easy to solve?
3
Priority
27
Demonstrate Bug (Tiki 19+)
Please demonstrate your bug on show2.tiki.org
 About show2.tiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show2.tiki.org instance. To start, simply select a version and click on "Create show2.tiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show2.tiki.org.

Version: Create show2.tiki.org instance
Demonstrate Bug (older Tiki versions)
Please demonstrate your bug on show.tikiwiki.org
 About show.tikiwiki.org

To help developers solve the bug, we kindly request that you demonstrate your bug on a show.tikiwiki.org instance. To start, simply select a version and click on "Create show.tikiwiki.org instance". Once the instance is ready (in a minute or two), as indicated in the status window below, you can then access that instance, login (the initial admin username/password is "admin") and configure the Tiki to demonstrate your bug. Priority will be given to bugs that have been demonstrated on show.tikiwiki.org.

Version: Create show.tikiwiki.org instance
Ticket ID
4162
Created
Saturday 18 February, 2012 13:36:00 GMT-0000
by Bernard TREMBLAY
LastModif
Saturday 18 February, 2012 14:35:33 GMT-0000

Attachments

 filenamecreatedhitscommentversionfiletype 
No attachments for this item


Keywords

The following is a list of keywords that should serve as hubs for navigation within the Tiki development and should correspond to documentation keywords.

Each feature in Tiki has a wiki page which regroups all the bugs, requests for enhancements, etc. It is somewhat a form of wiki-based project management. You can also express your interest in a feature by adding it to your profile. You can also try out the Dynamic filter.

Accessibility (WAI & 508)
Accounting
Administration
Ajax
Articles & Submissions
Backlinks
Banner
Batch
BigBlueButton audio/video/chat/screensharing
Blog
Bookmark
Browser Compatibility
Calendar
Category
Chat
Comment
Communication Center
Consistency
Contacts Address book
Contact us
Content template
Contribution
Cookie
Copyright
Credits
Custom Home (and Group Home Page)
Database MySQL - MyISAM
Database MySQL - InnoDB
Date and Time
Debugger Console
Diagram
Directory (of hyperlinks)
Documentation link from Tiki to doc.tiki.org (Help System)
Docs
DogFood
Draw -superseded by Diagram
Dynamic Content
Preferences
Dynamic Variable
External Authentication
FAQ
Featured links
Feeds (RSS)
File Gallery
Forum
Friendship Network (Community)
Gantt
Group
Groupmail
Help
History
Hotword
HTML Page
i18n (Multilingual, l10n, Babelfish)
Image Gallery
Import-Export
Install
Integrator
Interoperability
Inter-User Messages
InterTiki
jQuery
Kaltura video management
Kanban
Karma
Live Support
Logs (system & action)
Lost edit protection
Mail-in
Map
Menu
Meta Tag
Missing features
Visual Mapping
Mobile
Mods
Modules
MultiTiki
MyTiki
Newsletter
Notepad
OS independence (Non-Linux, Windows/IIS, Mac, BSD)
Organic Groups (Self-managed Teams)
Packages
Payment
PDF
Performance Speed / Load / Compression / Cache
Permission
Poll
Profiles
Quiz
Rating
Realname
Report
Revision Approval
Scheduler
Score
Search engine optimization (SEO)
Search
Security
Semantic links
Share
Shopping Cart
Shoutbox
Site Identity
Slideshow
Smarty Template
Social Networking
Spam protection (Anti-bot CATPCHA)
Spellcheck
Spreadsheet
Staging and Approval
Stats
Survey
Syntax Highlighter (Codemirror)
Tablesorter
Tags
Task
Tell a Friend
Terms and Conditions
Theme
TikiTests
Federated Timesheets
Token Access
Toolbar (Quicktags)
Tours
Trackers
TRIM
User Administration
User Files
User Menu
Watch
Webmail and Groupmail
WebServices
Wiki History, page rename, etc
Wiki plugins extends basic syntax
Wiki syntax text area, parser, etc
Wiki structure (book and table of content)
Workspace and perspectives
WYSIWTSN
WYSIWYCA
WYSIWYG
XMLRPC
XMPP




Useful Tools