Migration (3.0 to 4.0) completed. One major and one minor issue left
Moderator: crythias
Migration (3.0 to 4.0) completed. One major and one minor issue left
Hello everyone.
I will have to perfom a migration from OTRS 3.0.6 to the latest version.
The idea will be to install OTRS (4.x) from scratch on a different machine, but of course we need to have the current content in the new system.
We will also setup a (completely) new database, so that in case of issues during migration we can still use the old OTRS and the old database.
As far as I understood, if we would migrate OTRS itself we would have to go the single steps 3.0->3.1->3.2->3.3 -> 4.x,
but what is the easiest way to bring "just" the database content savely to the new database and the new OTRS version?
Every hint would be appreciated.
I will have to perfom a migration from OTRS 3.0.6 to the latest version.
The idea will be to install OTRS (4.x) from scratch on a different machine, but of course we need to have the current content in the new system.
We will also setup a (completely) new database, so that in case of issues during migration we can still use the old OTRS and the old database.
As far as I understood, if we would migrate OTRS itself we would have to go the single steps 3.0->3.1->3.2->3.3 -> 4.x,
but what is the easiest way to bring "just" the database content savely to the new database and the new OTRS version?
Every hint would be appreciated.
Last edited by MAL on 09 Mar 2015, 14:15, edited 1 time in total.
Re: Migration of database content only (3.0 to 4.0)
you have to go each single step.
so you need to install
3.1.latest
3.2.latest
3.3.latest
4.0.latest
and perform the SQL and Perl Migration steps as stated in each individual UPGRADING instructions
so you need to install
3.1.latest
3.2.latest
3.3.latest
4.0.latest
and perform the SQL and Perl Migration steps as stated in each individual UPGRADING instructions
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
Re: Migration of database content only (3.0 to 4.0)
Thanks for your reply.
I was hoping that running some (standalone) SQL-scripts would be sufficient so that I can keep the old OTRS installation untouched
I was hoping that running some (standalone) SQL-scripts would be sufficient so that I can keep the old OTRS installation untouched

-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Migration of database content only (3.0 to 4.0)
You can always migrate on another server.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Migration of database content only (3.0 to 4.0)
That is correct, but I need another server and much more time 
The idea was:
1) setup new OTRS version (on new server) (does not really matter how long it takes)
2) stop emailforwarding and shutdown current OTRS
3) clone the database(schema)
4) run migration (SQL)scripts on the (new) database
5) connect the new OTRS to the database and "activate" it (switching URLs)
Step 2) to 4) are tasks that need to be performed in a short time frame (not sure how long the scripts will run actually).
In case of error or it takes longer than expected, we can easily switch back the URLs and use old OTRS and "old" database.
Now I have to:
1) setup new OTRS version (on new server) (does not really matter how long it takes)
2) setup additional server/environment with the same old OTRS version
3) stop emailforwarding and shutdown current OTRS
4) clone the database(schema)
5) connect the second old OTRS to the new schema
6) perform all single OTRS migrations steps + all database scripts
7) disconnect / shutdown the OTRS instance
8 ) connect the actual OTRS instance (from step 1) ) to the database that was just migrated and "activate" it (switching URLs)
step 2) means additional effort and also resources
but especially
step 3) to 7) means much more effort now, is more error prone and so will take much longer

The idea was:
1) setup new OTRS version (on new server) (does not really matter how long it takes)
2) stop emailforwarding and shutdown current OTRS
3) clone the database(schema)
4) run migration (SQL)scripts on the (new) database
5) connect the new OTRS to the database and "activate" it (switching URLs)
Step 2) to 4) are tasks that need to be performed in a short time frame (not sure how long the scripts will run actually).
In case of error or it takes longer than expected, we can easily switch back the URLs and use old OTRS and "old" database.
Now I have to:
1) setup new OTRS version (on new server) (does not really matter how long it takes)
2) setup additional server/environment with the same old OTRS version
3) stop emailforwarding and shutdown current OTRS
4) clone the database(schema)
5) connect the second old OTRS to the new schema
6) perform all single OTRS migrations steps + all database scripts
7) disconnect / shutdown the OTRS instance
8 ) connect the actual OTRS instance (from step 1) ) to the database that was just migrated and "activate" it (switching URLs)
step 2) means additional effort and also resources
but especially
step 3) to 7) means much more effort now, is more error prone and so will take much longer

Re: Migration of database content only (3.0 to 4.0)
buy consulting services which will help you on the migration
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
"Testing": ((OTRS Community Edition)) and git Master
Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Migration of database content only (3.0 to 4.0)
or you could:
1) copy all of your otrs filesystem to a new folder
2) backup and restore your production database to a duplicate/migration database
3) change config.pm in the migration otrs folder to point to the new data
4) run the upgrade scripts.
5) whatever you need to get the upgrade to the final destination.
1) copy all of your otrs filesystem to a new folder
2) backup and restore your production database to a duplicate/migration database
3) change config.pm in the migration otrs folder to point to the new data
4) run the upgrade scripts.
5) whatever you need to get the upgrade to the final destination.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Migration of database content only (3.0 to 4.0)
or, download virtualbox or something and spin up a linux VM ...
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Re: Migration of database content only (3.0 to 4.0)
but then I would migrate the OTRS instance which I actually would like to keep as fallback. In addition, we want to get rid of the old installation and think a fresh setup will save us a lot of problems in the future (the current installation is kind of over-configuredcrythias wrote:or you could:
1) copy all of your otrs filesystem to a new folder
2) backup and restore your production database to a duplicate/migration database
3) change config.pm in the migration otrs folder to point to the new data
4) run the upgrade scripts.
5) whatever you need to get the upgrade to the final destination.

That will help with my step 2), but not with 3) to 7)or, download virtualbox or something and spin up a linux VM ...

Migration (3.0 to 4.0) completed. One major and one minor issue left
So, I finally achieved to migrate the production environment from 3.0 to 4.0 on CentOS 7
This was kind of tricky, since the older OTRS versions could not be installed so easily (centos7 is actually not supported and provides different packages than the installer are expecting).
Issue 1) Major
Correct:
When a customer replies to existing tickets which are new ("created by" otrs 4), all replies are automatically mergerd correctly to the corresponding tickets.
Incorrect:
But when a customer replies to older (existing) tickets ("created by" the older OTRS), every time a new ticket is created.
First I thought the "Ticket::Hook" was wrong, but then also the correct part would not work.
What else could it be? What do miss?
Issue 2) Minor:
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
This was kind of tricky, since the older OTRS versions could not be installed so easily (centos7 is actually not supported and provides different packages than the installer are expecting).
Issue 1) Major
Correct:
When a customer replies to existing tickets which are new ("created by" otrs 4), all replies are automatically mergerd correctly to the corresponding tickets.
Incorrect:
But when a customer replies to older (existing) tickets ("created by" the older OTRS), every time a new ticket is created.
First I thought the "Ticket::Hook" was wrong, but then also the correct part would not work.
What else could it be? What do miss?
Issue 2) Minor:
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
Wait, OTRS 4 does not run on CentOS7?
That could explain the issues I'm seeing.
That could explain the issues I'm seeing.

Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
@MAL: Please check if the SystemID of the old system is the same of your new system...
@mavrie: what makes you think that OTRS doesn't run on CentOS7?
@mavrie: what makes you think that OTRS doesn't run on CentOS7?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
@mavrie
otrs 4 does,
but otrs 3.0, 3.1 are definetly not designed to work on centos 7
@reneeb
what exactly do you mean?
edit:
Think I found it. Need to change it and test again
otrs 4 does,
but otrs 3.0, 3.1 are definetly not designed to work on centos 7

@reneeb
what exactly do you mean?
edit:
Think I found it. Need to change it and test again
-
- Znuny guru
- Posts: 5018
- Joined: 13 Mar 2011, 09:54
- Znuny Version: 6.0.x
- Real Name: Renée Bäcker
- Company: Perl-Services.de
- Contact:
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
When a mail is fetched, OTRS checks if the mail has a reference to a ticket. By default only the subject is checked, but it can be configured that the mail body is checked as well. OTRS searches for something like "Ticket#201503091000016"
The string "Ticket#201503091000016" contains some information:
Ticket# is the Ticket-Hook and can be configured via SysConfig
20150309 is the date
10 the system id (can be configured)
000016 a checksum
This is an example for the DateChecksum ticket number generator.
If the old system had the system id 10 (as shown above) and the new system has the systemid 15, OTRS won't be able to find a ticket as OTRS checks whether the systemid in the string matches the systemid of your OTRS. This is necessary to allow two OTRS instances to exchange mails...
The string "Ticket#201503091000016" contains some information:
Ticket# is the Ticket-Hook and can be configured via SysConfig
20150309 is the date
10 the system id (can be configured)
000016 a checksum
This is an example for the DateChecksum ticket number generator.
If the old system had the system id 10 (as shown above) and the new system has the systemid 15, OTRS won't be able to find a ticket as OTRS checks whether the systemid in the string matches the systemid of your OTRS. This is necessary to allow two OTRS instances to exchange mails...
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
Thank you super much, Reneeb !!!!!
The old ID was 12, and my new installation had "10". Seems to work now
So open (minor) issues are:
Issue 1)
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
Issue 2)
It seems that there is a very high load on the database and it seems that indexes are missing. Could that be? Shouldn't this be done/optimized automatically during the database migration?
Especially during a normal search via OTRS the load on the DB increases heavily (sometimes it ends up in a timeout).
The database is a mariadb, running on the same machine as OTRS does.
The old ID was 12, and my new installation had "10". Seems to work now

So open (minor) issues are:
Issue 1)
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
Issue 2)
It seems that there is a very high load on the database and it seems that indexes are missing. Could that be? Shouldn't this be done/optimized automatically during the database migration?
Especially during a normal search via OTRS the load on the DB increases heavily (sometimes it ends up in a timeout).
The database is a mariadb, running on the same machine as OTRS does.
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
I heard around, both on- and offline in preparation for our own migration.
Stumbled upon some problems here and there.
Mostly SQL related, but found a post with a possible fix to that.
So I'm all good, sorry for threadjacking
Stumbled upon some problems here and there.
Mostly SQL related, but found a post with a possible fix to that.
So I'm all good, sorry for threadjacking

Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
@mavrie
no problem, good luck with your migration
So, I found a other problem (in the log), not sure what the impact actually is (see number 3) )
Issue 1)
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
Issue 2)
It seems that there is a very high load on the database and it seems that indexes are missing. Could that be? Shouldn't this be done/optimized automatically during the database migration?
Especially during a normal search via OTRS the load on the DB increases heavily (sometimes it ends up in a timeout).
The database is a mariadb, running on the same machine as OTRS does.
Issue 3)
In the log I see (very often):
FAQ was uninstalled from the package manager. The file Kernel/System/Stats/Static/FAQAccess.pm seem not not exist.
Do I need to reinstall it?
How?
no problem, good luck with your migration

So, I found a other problem (in the log), not sure what the impact actually is (see number 3) )
Issue 1)
The old "freefields" are lost (not appearing anywhere). How can I bring them up again (through the new "dynamic fields") ?
Issue 2)
It seems that there is a very high load on the database and it seems that indexes are missing. Could that be? Shouldn't this be done/optimized automatically during the database migration?
Especially during a normal search via OTRS the load on the DB increases heavily (sometimes it ends up in a timeout).
The database is a mariadb, running on the same machine as OTRS does.
Issue 3)
In the log I see (very often):
Code: Select all
Module Kernel/System/Stats/Static/FAQAccess.pm not in @INC (/usr/Custom /usr/Kernel/cpan-lib /usr /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd)
Do I need to reinstall it?
How?
-
- Znuny newbie
- Posts: 5
- Joined: 02 Jul 2013, 15:41
- Znuny Version: 3.1.8
- Real Name: Charles Martin
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
Hey guys,
i have found your posts here an interesting read and would love some pointers on how to move our OTRS 3.1 to a completely new OTRS 4 install.
i would be grateful of any help.
Thanks
Charlie
i have found your posts here an interesting read and would love some pointers on how to move our OTRS 3.1 to a completely new OTRS 4 install.
i would be grateful of any help.
Thanks
Charlie
-
- Moderator
- Posts: 10170
- Joined: 04 May 2010, 18:38
- Znuny Version: 5.0.x
- Location: SouthWest Florida, USA
- Contact:
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
Charlie,
upgrade in steps 3.1.x->3.2.latest->3.3.latest->4.0.latest, following each UPGRADING documentation. Test each step. Verify no errors. Proceed to the next.
upgrade in steps 3.1.x->3.2.latest->3.3.latest->4.0.latest, following each UPGRADING documentation. Test each step. Verify no errors. Proceed to the next.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
-
- Znuny newbie
- Posts: 43
- Joined: 02 Sep 2014, 15:04
- Znuny Version: 4.0.7
- Real Name: Mattias
- Company: BusSaP
- Location: Belgium
Re: Migration (3.0 to 4.0) completed. One major and one minor issue left
Charlie,
I can only agree with Crythias.
Take it slow, step by step. Follow the documentation.
Regards
I can only agree with Crythias.
Take it slow, step by step. Follow the documentation.
Regards
Otrs 4.0.7 on CentOS 6.5
MySQL Database
MySQL Database