[SOLVED] upgrading from 3.0 to current

Moderator: crythias

Locked
gears
Znuny newbie
Posts: 38
Joined: 24 Feb 2011, 18:29
Znuny Version: 5.0.14

[SOLVED] upgrading from 3.0 to current

Post by gears »

OTRS 3.1.21
Debian 6.0.10
Apache 2.2.16
mysql Ver 14.14 Distrib 5.1.73


Setup test system and successfully upgraded 3.0.11 to 3.1.21 using /opt/otrs-3.1.21/UPGRADING. Is there a process to safely upgrade FAQ & Survey packages afterwards and retain their data? Also, when going through upgrade sequence 3.0 > 3.1 > 3.2 > 3.3 > 4 > 5 is it considered necessary or recommended to reinstall FAQ & Survey packages at each step of the sequence like this or would it be safe to wait to deal with those packages until the last otrs version in the upgrade sequence is deployed? Thanks for your help


from web interface /otrs/index.pl?Action=AdminPackageManager
FAQ 2.0.7 - Package not correctly deployed! Please reinstall the package.
Survey 2.0.5 - Package not correctly deployed! Please reinstall the package.

Code: Select all

/opt# otrs/bin/otrs.PackageManager.pl -a list
+----------------------------------------------------------------------------+
| Name:        FAQ
| Version:     2.0.7
| Vendor:      xxx
| URL:         http://otrs.org/
| License:     GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
| Description: The FAQ/knowledge base.
+----------------------------------------------------------------------------+
| Name:        Survey
| Version:     2.0.5
| Vendor:      xxx
| URL:         http://otrs.org/
| License:     GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
| Description: A customer survey tool.
+----------------------------------------------------------------------------+


/opt# for Pkg in $(otrs/bin/otrs.PackageManager.pl -a list | grep -e '^| Name:' | awk '{print $3}'); do otrs/bin/otrs.PackageManager.pl -a reinstall -p ${Pkg}; done


ERROR: OTRS-otrs.PackageManager.pl-10 Perl: 5.10.1 OS: linux Time: Sun Nov 20 09:32:54 2016

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (3.0.x;) does not match your Framework (3.1.21)!

 Traceback (3095):
   Module: Kernel::System::Package::_CheckFramework (v1.130.2.6) Line: 2408
   Module: Kernel::System::Package::PackageReinstall (v1.130.2.6) Line: 563
   Module: otrs/bin/otrs.PackageManager.pl (v1.10) Line: 389

ERROR: OTRS-otrs.PackageManager.pl-10 Perl: 5.10.1 OS: linux Time: Sun Nov 20 09:32:55 2016

 Message: Sorry, can't install/upgrade package, because the framework version required by the package (3.0.x;) does not match your Framework (3.1.21)!

 Traceback (3096):
   Module: Kernel::System::Package::_CheckFramework (v1.130.2.6) Line: 2408
   Module: Kernel::System::Package::PackageReinstall (v1.130.2.6) Line: 563
   Module: otrs/bin/otrs.PackageManager.pl (v1.10) Line: 389

Last edited by gears on 21 Nov 2016, 02:37, edited 1 time in total.
OTRS 5.0.14 / Debian 7.11 x64 / Apache 2.2.22 / MySQL 14.14 Distrib 5.5.53
gears
Znuny newbie
Posts: 38
Joined: 24 Feb 2011, 18:29
Znuny Version: 5.0.14

Re: upgrading from 3.0 to current

Post by gears »

To answer the first part of my own question, more options appeared after selecting the 'update repository information' link in the web interface at /otrs/index.pl?Action=AdminPackageManager. I was then able to use the upgrade links in the online repository section successfully for the FAQ & Survey modules and previous data was retained after the upgrade.

Code: Select all

/opt# otrs/bin/otrs.PackageManager.pl -a list
+----------------------------------------------------------------------------+
| Name:        FAQ
| Version:     2.1.4
| Vendor:      xxx
| URL:         http://otrs.org/
| License:     GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
| Description: The FAQ/knowledge base.
+----------------------------------------------------------------------------+
| Name:        Survey
| Version:     2.1.5
| Vendor:      xxx
| URL:         http://otrs.org/
| License:     GNU AFFERO GENERAL PUBLIC LICENSE Version 3, November 2007
| Description: A customer survey tool.
+----------------------------------------------------------------------------+
OTRS 5.0.14 / Debian 7.11 x64 / Apache 2.2.22 / MySQL 14.14 Distrib 5.5.53
wurzel
Znuny guru
Posts: 3273
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: upgrading from 3.0 to current

Post by wurzel »

Hi
is it considered necessary or recommended to reinstall FAQ & Survey packages at each step of the sequence like this or would it be safe to wait to deal with those packages until the last otrs version in the upgrade sequence is deployed? Thanks for your help
as the documention writes "update all packages" I would do it.

regards
Florian
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
gears
Znuny newbie
Posts: 38
Joined: 24 Feb 2011, 18:29
Znuny Version: 5.0.14

Re: upgrading from 3.0 to current

Post by gears »

Thanks, upgrade from 3.0.11 to 5.0.14 is now completed with packages updated at each otrs version :D
OTRS 5.0.14 / Debian 7.11 x64 / Apache 2.2.22 / MySQL 14.14 Distrib 5.5.53
Locked