View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 09993 | Bug reports | ComfortUpdate | public | 2015-10-23 16:37 | 2015-10-26 12:31 |
| Reporter | jri | Assigned To | c_schmitz | ||
| Priority | urgent | Severity | partial_block | ||
| Status | closed | Resolution | won't fix | ||
| Product Version | 2.06+ | ||||
| Summary | 09993: SQL Problem during database upgrade | ||||
| Description | I'm trying to update my Limesurvey instance from 2.05+ (150520) to 2.06+ (151018) due to the security issue. The code update seems to be alright, but when I try to upgrade de database throuth the wizard, I get: Veuillez patienter ... Erreur non récupérable durant la mise à jour. Détails de cette erreur : CDbCommand n'a pas pu exécuter la commande SQL : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes Veuillez corriger cette erreur dans la base de données et recommencer." And no info about which SQL Statement cause this error.. | ||||
| Steps To Reproduce | Update from production Limesurvey 2.05+ (150520) to 2.06+ (151018) | ||||
| Additional Information | Using automatic update or manual update gave me the same error. | ||||
| Tags | No tags attached. | ||||
| Bug heat | 4 | ||||
| Complete LimeSurvey version number (& build) | 150520 | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | Firefox 41 | ||||
| Database type & version | Mysqlserver 5.1.73, Limesurvey database version 177 | ||||
| Server OS (if known) | CentOS 6 | ||||
| Webserver software & version (if known) | Nginx 1.0.15 | ||||
| PHP Version | PHO 5.5.15 | ||||
| Git branch / Pull Request URL | |||||
|
Try activating debug mode in /application/config/config.php and see if you get a more detailed error. |
|
|
Yes ! SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes. The SQL statement executed was: ALTER TABLE Is it useful ? |
|
|
Yes, probably there is a non-standard key on that table which includes the 'lastname' field or you probably edited a field length manually. Use a table editor to inspect the related table and maby rememoce it. The table name looks non-standard, too. |
|
|
Hum here is a CREATE TABLE dump from the DB: So, there is a KEY with lastname, but I don't know/understand what is wrong. If the field has been manualy edited, it's not me and I don't know who is it and why... What could I do ? It seems there are many others tables like this one in the DB :( |
|
|
Me again.. I have a question: is it Limesurvey himself that creates indexes ? like that kind of names: 'idx_lime_tokens_26787_efl' Is it bad if I delete all of the indexes for concerned tables but keep the tables ? |
|
|
There is no harm done if you delete the _efl indexes - they will be re-created by the update script. |
|
|
I just checked the source - LimeSurvey actually tries to delete the index beforehand, but since your table has a nonstandard-naming it cannot properly find out the correct index name and so the deletion fails. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2015-10-23 16:37 | jri | New Issue | |
| 2015-10-23 16:37 | jri | Status | new => assigned |
| 2015-10-23 16:37 | jri | Assigned To | => c_schmitz |
| 2015-10-23 17:00 | c_schmitz | Note Added: 33442 | |
| 2015-10-23 17:00 | c_schmitz | Status | assigned => feedback |
| 2015-10-23 17:05 | jri | Note Added: 33444 | |
| 2015-10-23 17:05 | jri | Status | feedback => assigned |
| 2015-10-23 17:06 | jri | Note Edited: 33444 | |
| 2015-10-23 17:13 | c_schmitz | Note Added: 33446 | |
| 2015-10-23 17:31 | jri | Note Added: 33447 | |
| 2015-10-23 17:32 | jri | Note Edited: 33447 | |
| 2015-10-26 12:27 | jri | Note Added: 33453 | |
| 2015-10-26 12:28 | c_schmitz | Note Added: 33454 | |
| 2015-10-26 12:30 | c_schmitz | Note Added: 33455 | |
| 2015-10-26 12:30 | c_schmitz | Note Edited: 33455 | |
| 2015-10-26 12:31 | c_schmitz | Note Edited: 33455 | |
| 2015-10-26 12:31 | c_schmitz | Status | assigned => closed |
| 2015-10-26 12:31 | c_schmitz | Resolution | open => won't fix |