Upgrade from 3.3 to 4

Moderator: crythias

Locked
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Upgrade from 3.3 to 4

Post by spiderpig »

hi i'm getting this error when i'm upgradeing from 3.3 -> 4

any ideas?

C:\otrs\scripts>perl DBUpdate-to-4.pl
Base class package "Template::Provider" is empty.
(Perhaps you need to 'use' the module which defines that package first,
or make that module available in @INC (@INC contains: C:/otrs/Custom C:/otrs
/Kernel/cpan-lib C:/otrs C:/otrs/Perl/site/lib C:/otrs/Perl/lib .).
at C:/otrs/Kernel/Output/Template/Provider.pm line 17
BEGIN failed--compilation aborted at C:/otrs/Kernel/Output/Template/Provider.pm
line 17.
Compilation failed in require at DBUpdate-to-4.pl line 33.
BEGIN failed--compilation aborted at DBUpdate-to-4.pl line 33.
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Upgrade from 3.3 to 4

Post by RStraub »

I'd guess this has to do with the template-toolkit package which is required for OTRS 4.

Did you install that package for your perl ?
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrade from 3.3 to 4

Post by jojo »

run the bin/otrs.CheckModules.pl script to see which Perl modules are needed (besides the already mentioned Temmplate Toolkit)
"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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Upgrade from 3.3 to 4

Post by spiderpig »

thank you, installing the template toolkit worked :)

now i need to move the database from old OTRS server (windows - mysql) to new one (Ubuntu)
how do you recommend i do this?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrade from 3.3 to 4

Post by jojo »

dump it with mysqldump and import on the new server
"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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Upgrade from 3.3 to 4

Post by spiderpig »

ok, what about the framework and the other stuff, is it enough to just copy the otrs folder over with all the config?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrade from 3.3 to 4

Post by jojo »

normally you will just need the

- Kernel/Config.pm
- Kernel/Config/Files/ZZZAuto.pm
- Kernel/Config/GenericAgent.pm
"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
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Upgrade from 3.3 to 4

Post by spiderpig »

yes ofcourse... :)

thank you for your help
spiderpig
Znuny expert
Posts: 198
Joined: 15 Dec 2011, 02:26
Znuny Version: OTRS 5

Re: Upgrade from 3.3 to 4

Post by spiderpig »

i'm curious about which way would you update the OTRS if your moving from windows to Linux?

task:upgrade from 3.0 to 4.0

would you:

A) Upgrade 3.0->3.1 ->3.2 ->3.3 ->3.4 and then migrate the DB to the new OTRS server (Linux running OTRS 4) ?

or

B) move DB to new Linux machine (Running OTRS 3.0) and upgrade from there? 3.0 -> 3.1 -> 3.2 ->3.3 -> 4 ?

does it matter which way i go?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Upgrade from 3.3 to 4

Post by jojo »

it does not matter, but for me B would be less painful
"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
Locked