jojo wrote:you have to follow the upgrade path to keep all tickets
You were right.
The only correct option was a sequentially upgrade. The upgrade process was successful. Only in the end I had a few errors, but they disappeared after reinstalling packages.
Here is the steps:
============ 3.0.11 -> 3.1.21 ==============
1. Create a backup of current OTRS
2. Copy a backup to the new server
3. Restore database on the new server:
mysql> CREATE DATABASE otrs CHARACTER SET utf8;
shell> mysql -p -h localhost otrs < DatabaseBackup.sql
4. Stop services:
shell> service crond stop
shell> service postfix stop
shell> service httpd stop
5. Download and install the next version of OTRS:
shell> wget
http://ftp.otrs.org/pub/otrs//RPMS/rhel ... noarch.rpm
shell> rpm -ivh otrs-3.1.21-01.noarch.rpm
6. Replace the following files from backup:
Kernel/Config.pm
Kernel/Config/GenericAgent.pm
Kernel/Config/Files/ZZZAuto.pm
var/*
7. Set the file permissions:
shell> cd /opt/otrs/
shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs
8. Update the database:
8.1 Schema update part #1:
shell> cat scripts/DBUpdate-to-3.1.mysql.sql | mysql -p -f -u root otrs
8.2 Check the connection settings to the database in the file Kernel/Config.pm and run the database migration script:
shell> scripts/DBUpdate-to-3.1.pl
Do not continue the upgrading process if this script did not work properly for you. Otherwise data loss may occur.
8.3 Schema update part #2:
shell> cat scripts/DBUpdate-to-3.1-post.mysql.sql | mysql -p -f -u root otrs
9. Updating the configuration:
shell> bin/otrs.RebuildConfig.pl
shell> bin/otrs.DeleteCache.pl
10. The first stage is finished. More information about the changes in the new version can be found in the file UPGRADING
============ 3.1.21 -> 3.2.16 ==============
1. Download and update to the next version of OTRS:
shell> wget
http://ftp.otrs.org/pub/otrs//RPMS/rhel ... noarch.rpm
shell> rpm -Uvh otrs-3.2.16-01.noarch.rpm
OTRS will automatically save the old configuration files
2. Set the file permissions:
shell> cd /opt/otrs/
shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs
3. Check the required Perl modules and install the missing:
shell> /opt/otrs/bin/otrs.CheckModules.pl
4. Update the database:
4.1 Run a script that will change the storage system from MyISAM to InnoDB:
shell> bin/otrs.MySQLInnoDBSwitch.pl
4.2 Check the settings of the database:
shell> bin/otrs.CheckDB.pl
4.3 Update the schema:
shell> cat scripts/DBUpdate-to-3.2.mysql.sql | mysql -p -f -u root otrs
4.4 Run the database migration script (as user 'otrs'):
Find the user otrs in file /etc/passwd:
Change:
otrs:x:503:48:OTRS System User:/opt/otrs/:/bin/false
to:
otrs:x:503:48:OTRS System User:/opt/otrs/:/bin/bash
shell> su - otrs
shell> scripts/DBUpdate-to-3.2.pl
Do not continue the upgrading process if this script did not work properly for you. Otherwise data loss may occur.
5. Updating the configuration:
shell> bin/otrs.RebuildConfig.pl
shell> bin/otrs.DeleteCache.pl
6.Remove metadata from archived tickets (Optional).
shell> bin/otrs.CleanupTicketMetadata.pl --archived
Or if you want to save all information then in SysConfig you should change to 'No' the following settings:
Ticket::ArchiveSystem::RemoveSeenFlags
Ticket::ArchiveSystem::RemoveTicketWatchers
7. The second stage is finished. More information about the changes in the new version can be found in the file UPGRADING.md
============ 3.2.16 -> 3.3.8 ==============
1. Download and update to the next version of OTRS:
shell> wget
http://ftp.otrs.org/pub/otrs//RPMS/rhel ... noarch.rpm
shell> rpm -Uvh otrs-3.3.8-01.noarch.rpm
OTRS will automatically save the old configuration files
2. Set the file permissions:
shell> cd /opt/otrs/
shell> bin/otrs.SetPermissions.pl --otrs-user=otrs --web-user=apache --otrs-group=apache --web-group=apache /opt/otrs
3. Check the required Perl modules and install the missing:
shell> /opt/otrs/bin/otrs.CheckModules.pl
4. Update the database:
4.1 Check the settings of the database:
shell> bin/otrs.CheckDB.pl
4.2 Update the schema:
shell> cat scripts/DBUpdate-to-3.3.mysql.sql | mysql -p -f -u root otrs
4.3 Run the database migration script (as user 'otrs'):
shell> su - otrs
shell> scripts/DBUpdate-to-3.3.pl
Do not continue the upgrading process if this script did not work properly for you. Otherwise data loss may occur.
5. Updating the configuration (as user 'otrs'):
shell> su - otrs
shell> bin/otrs.RebuildConfig.pl
shell> bin/otrs.DeleteCache.pl
6. Start services:
shell> service httpd start
shell> service postfix start
shell> service crond start
shell> service otrs start
7. In the "Package Manager" update/install or remove obsolete packages
The update is finished!