| Summary: | Upgrade database failed from 3.2200000 to new version | ||
|---|---|---|---|
| Product: | Koha | Reporter: | lenhatanh86 |
| Component: | Installation and upgrade (web-based installer) | Assignee: | Bugs List <koha-bugs> |
| Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
| Severity: | enhancement | ||
| Priority: | P5 - low | CC: | bob-ewart, gmcharlt |
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | All | ||
| GIT URL: | Initiative type: | --- | |
| Sponsorship status: | --- | Comma delimited list of Sponsors: | |
| Crowdfunding goal: | 0 | Crowdfunding committed: | 0 |
| Crowdfunding contact: | Patch complexity: | --- | |
| Documentation contact: | Documentation submission: | ||
| Text to go in the release notes: | Version(s) released in: | ||
| Circulation function: | |||
This is a show stopper for me. I'm upgrading from 3.22.11 to 16.05.04 compiled from source on openSUSE. The original upgrade made a lot of changes and ended with this error. The link at the bottom to log in brought me back to the web installer and gave me this error in step 3. I would go into mysql and increase the size of the 'type' field if I could figure out what table it is referring to. The error message is not very helpful.f The problem is caused by STRICT_TRANS_TABLES. Delete it from my.cnf and restart mysql search_field.type is an enum and '' is not one of the listed values which causes STRICT_TRANS_TABLES to throw an error. I still think 'data truncated' is not very descriptive of the error, but that's mysql (or mariadb's) problem. |
Update errors : [Thu Jun 30 16:12:57 2016] updatedatabase.pl: DBD::mysql::st execute failed: Data truncated for column 'type' at row 1 [for Statement "INSERT INTO `search_field` ( `label`, `name`, `type`) VALUES ( ?, ?, ? )" with ParamValues: 0='Match', 1='Match', 2=''] at /usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1834. [Thu Jun 30 16:12:57 2016] updatedatabase.pl: DBIx::Class::Storage::DBI::_dbh_execute(): Data truncated for column 'type' at row 1 at /usr/share/koha/lib/Koha/Objects.pm line 101 When I checked code on git, this error maybe related with file /admin/searchengine/elasticsearch/mappings.yaml and file installer/data/mysql/updatedatabase.pl (from line 12263)