Open-AudIT
https://www.open-audit.org/phpBB3/

[help] upgrade from 1.12.10 o 2.0.3 fails
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6610
Page 1 of 1

Author:  shanimal [ Thu Jul 27, 2017 2:06 am ]
Post subject:  [help] upgrade from 1.12.10 o 2.0.3 fails

First, I backed up the mysql db, and also took a snapshot of the Windows VM that is my OA host. I ran the upgrade, everything finished without error. But when I go to the OA Community logon page, I get the upgrade box, select that, and it keeps failing with the following error:

A Database Error Occurred

Error Number: 1467

Failed to read auto-increment value from storage engine

INSERT INTO `oa_location` (SELECT NULL, `name`,`type`,`room`,`suite`,`level`,`address`,`suburb`,`city`,`district`,`region`,`area`,`state`,`postcode`,`country`,`tags`,`phone`,`picture`,`latitude`,`longitude`,`geo`,`comments`,`icon`, `group_id` FROM `oa_location` WHERE id = 1)

Filename: C:\xampplite\open-audit\code_igniter\system\database\DB_driver.php

Line Number: 330


If there isn't an easy fix, wondering if I should setup a new OA 2.0.3 system, and restore from the mysql backup to populate all of the data? I already reverted back to 1.12.10 via the snapshot, but can easily try the upgrade again if there is a fix for this error

Author:  jpa [ Thu Jul 27, 2017 2:36 am ]
Post subject:  Re: [help] upgrade from 1.12.10 o 2.0.3 fails

Do you have a way to view the structure of the oa_location table? Like phpmyadmin or something installed? It looks like the location table has a problem with the auto_increment id field. You would likely get an error in your 1.12.10 install if you tried to add a location.

Author:  shanimal [ Thu Jul 27, 2017 3:10 am ]
Post subject:  Re: [help] upgrade from 1.12.10 o 2.0.3 fails

I do have MySQL Workbench. Is this the structure (sorry I'm not a very good dba)?

Table: oa_location
Columns:
id int(10) UN AI PK
name varchar(100)
type varchar(100)
room varchar(100)
suite varchar(100)
level varchar(100)
address varchar(100)
suburb varchar(100)
city varchar(100)
district varchar(100)
region varchar(100)
area varchar(100)
state varchar(100)
postcode varchar(10)
country varchar(100)
tags varchar(250)
phone varchar(20)
picture varchar(100)
latitude float(10,6)
longitude float(10,6)
geo varchar(200)
comments varchar(100)
icon varchar(100)
group_id int(10) UN

Author:  shanimal [ Thu Jul 27, 2017 3:32 am ]
Post subject:  Re: [help] upgrade from 1.12.10 o 2.0.3 fails

Looking around just found some errors in the mysql.err file:

170314 8:59:37 InnoDB: MySQL and InnoDB data dictionaries are out of sync.
InnoDB: Unable to find the AUTOINC column id in the InnoDB table openaudit/attachment.
InnoDB: We set the next AUTOINC column value to the maximum possible value,
InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE
InnoDB: or fix the data dictionary by recreating the table.

170314 8:59:38 InnoDB: MySQL and InnoDB data dictionaries are out of sync.
InnoDB: Unable to find the AUTOINC column id in the InnoDB table openaudit/oa_location.
InnoDB: We set the next AUTOINC column value to the maximum possible value,
InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE
InnoDB: or fix the data dictionary by recreating the table.

170726 11:01:19 InnoDB: MySQL and InnoDB data dictionaries are out of sync.
InnoDB: Unable to find the AUTOINC column id in the InnoDB table openaudit/oa_change.
InnoDB: We set the next AUTOINC column value to the maximum possible value,
InnoDB: in effect disabling the AUTOINC next value generation.
InnoDB: You can either set the next AUTOINC value explicitly using ALTER TABLE
InnoDB: or fix the data dictionary by recreating the table.

Author:  jpa [ Thu Jul 27, 2017 5:07 am ]
Post subject:  Re: [help] upgrade from 1.12.10 o 2.0.3 fails

Yes, those would be bad. Maybe backup up, wipe db and restore would work? You may still need to fix the AUTO_INCREMENT value for the tables in question. I am also not a good DBA!

Author:  shanimal [ Thu Jul 27, 2017 5:34 am ]
Post subject:  Re: [help] upgrade from 1.12.10 o 2.0.3 fails

Been upgrading year after year, probably time to start a brand new OA server with 2.0.3 (will probably go with Linux), will leave this older one running until I get everything working fine. thanks for checking this out

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/