So I initially created a mysql dump of the 2.3.4 mysql database, copied the file directories, and moved these backups over to a new test server.
Upon moving to the test server, I reinstalled 2.3.4, restored the database, config.pm, zzzauto.pm, sysconfig, etc. and verified that my backups were good. Was able to connect to OTRS, see tickets, search, check configurations, etc. Everything looked good, no errors. So I then proceeded down the upgrade path.
I made another mysql dump, backed up the file structure, just to be safe, and then uninstalled 2.3.4. I then installed 2.4.12, did not initiate the web installer, updated the config.pm, zzzauto.pm, and created the otrs database through the MySQL command line. Granted user access on the database, and then restored the mysql dump. Afterwards, ran the DBupdate-to-2.4.mysql.sql (no errors), DBUpdate-to.2.4.pl (OK), and then DBUpdate-to-2.4-post.mysql.sql(OK). Launched OTRS, logged in and then loaded the backup sysconfig. Everything looked OK, tickets good, configurations good. So I again created another MySQL dump, backed up files, and again headed towards installing 3.0.12.
Repeated basically the same steps with 3.0.12. Upon running the DBUpdate scripts, I encountered no errors. Then performed another mysql dump, backed up the files, etc and started to finalize the upgrade to 3.1.4.
Created the otrs database from the command line, and granted permissions, then restored the mysql dump from 3.0.12. Upon running the upgrade database scripts. I received the following errors:
Code: Select all
C:\PROGRA~1\OTRS\OTRS\scripts>mysql -uroot otrs < DBUpdate-to-3.1.mysql.sql
ERROR 1050 (42S01) at line 28: Table 'gi_webservice_config' already exists
C:\PROGRA~1\OTRS\OTRS\scripts>perl DBUpdate-to-3.1.pl
Migration started...
Step 1 of 24: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to w
orry!
Subroutine Load redefined at C:/PROGRA~1/OTRS/OTRS/Kernel/Config/Files/ZZZAAuto.
pm line 5.
Subroutine Load redefined at C:/PROGRA~1/OTRS/OTRS/Kernel/Config/Files/ZZZAuto.p
m line 5.
done.
Step 2 of 24: Check framework version... done.
DBD::mysql::db do failed: Table 'otrs.dynamic_field' doesn't exist at C:/PROGRA~
1/OTRS/OTRS/Kernel/System/DB.pm line 478.
ERROR: OTRS-DBUpdate-to-3.1-10 Perl: 5.12.3 OS: MSWin32 Time: Thu Apr 26 07:55:3
1 2012
Message: Table 'otrs.dynamic_field' doesn't exist, SQL: 'SELECT count(id) FROM
dynamic_field'
Traceback (2308):
Module: main::_CheckDynamicFieldTables (v1.85) Line: 385
Module: DBUpdate-to-3.1.pl (v1.85) Line: 86
Check if dynamic_field table exists, failed! at DBUpdate-to-3.1.pl line 390.
Step 3 of 24: Creating DynamicField tables (if necessary)...
C:\PROGRA~1\OTRS\OTRS\scripts>mysql -uroot otrs < DBUpdate-to-3.1-post.mysql.sql
ERROR 1091 (42000) at line 7: Can't DROP 'freetext1'; check that column/key exis
ts
C:\PROGRA~1\OTRS\OTRS\scripts>
Code: Select all
I am also seeing the same error in "Postmaster Mail Accounts" that was discussed in the following thread, viewtopic.php?f=53&t=14836&p=57235&hili ... 1.4#p57235
The previous accounts were not brought over from the database restore, I see the following if I try to add an email account:
Code: Select all
Postmaster Mail Error
Unknown column 'imap_folder' in 'field list', SQL: 'INSERT INTO mail_account (login, pw, host, account_type, valid_id, comments, queue_id, imap_folder, trusted, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, '2012-04-26 08:19:53' , ?, '2012-04-26 08:19:53' , ?)'