Actualizar OTR 5 a 6

Post Reply
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Actualizar OTR 5 a 6

Post by andreapino »

Buen día, Cuando hago la actualización me salta error
Step 9 of 44: Migrate configuration ...
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Invalid XML format found in CloudServices.xml (version must be 2.0)! File skipped.

Traceback (18182):
este es el primero de muchos errores más...
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

Danos todos los errores que saca para poder ver el origen del problema, Gracias.
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

Hola gracias por contestar, te cuento tenemos otrs 5 con base Oracle, y queremos llevarlo a la ultima version del otrs 6, el so es debian 9.11

gracias

WARNING: CPAN::Audit reported that one or more installed CPAN modules have known vulnerabilities (see above). Please note that there might be false positives for distributions patching Perl modules without changing their version number.

Step 7 of 44: Check if database has been backed up ...
Step 8 of 44: Upgrade database structure ...
Step 9 of 44: Migrate configuration ...
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Invalid XML format found in CloudServices.xml (version must be 2.0)! File skipped.


ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Invalid XML format found in Daemon.xml (version must be 2.0)! File skipped.

Traceback (18182):
Module: Kernel::System::SysConfig::XML::SettingListParse Line: 143
Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2537
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 81
Module: scripts::DBUpdateTo6::MigrateConfigEffectiveValues::Run Line: 48
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Invalid XML format found in Framework.xml (version must be 2.0)! File skipped.

Traceback (18182):
Module: Kernel::System::SysConfig::XML::SettingListParse Line: 143
Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2537
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 81
Module: scripts::DBUpdateTo6::MigrateConfigEffectiveValues::Run Line: 48
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Invalid XML format found in GenericInterface.xml (version must be 2.0)! File skipped.


ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:13 2019

Message: Data was only readable pure-perl YAML module, please contact the System Administrator to update this record, as the stored data is still in a wrong format!

Traceback (18182):
Module: Kernel::System::YAML::Load Line: 142
Module: Kernel::System::SysConfig::DB::DefaultSettingListGet Line: 1390
Module: Kernel::System::SysConfig::_GetSettingsToDeploy Line: 5821
Module: Kernel::System::SysConfig::ConfigurationDeploy Line: 3421
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 94
Module: scripts::DBUpdateTo6::MigrateConfigEffectiveValues::Run Line: 48
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Wed Sep 25 13:16:14 2019

Message: Need XMLContentParsed!

Traceback (18182):
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

Se me ocurren varias cosas que revisar:

¿Versión de la base de datos Oracle?

¿Qué te devuelve el comprobador de módulos? /opt/otrs/bin/otrs.CheckModules.pl

Saludos
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

o Apache::DBI......................ok (v1.12)
o Apache2::Reload..................ok (v0.13)
o Archive::Tar.....................ok (v2.04_01)
o Archive::Zip.....................ok (v1.59)
o Crypt::Eksblowfish::Bcrypt.......ok (v0.009)
o Crypt::SSLeay....................ok (v0.73_04)
o Date::Format.....................ok (v2.24)
o DateTime.........................ok (v1.42)
o DBI..............................ok (v1.636)
o DBD::mysql.......................ok (v4.041)
o DBD::ODBC........................ok (v1.56)
o DBD::Oracle......................ok (v1.74)
o DBD::Pg..........................ok (v3.5.3)
o Digest::SHA......................ok (v5.95_01)
o Encode::HanExtra.................ok (v0.23)
o IO::Socket::SSL..................ok (v2.044)
Please consider updating to version 2.066 or higher: This version fixes email sending (bug#14357).
o JSON::XS.........................ok (v3.03)
o List::Util::XS...................ok (v1.47)
o LWP::UserAgent...................ok (v6.26)
o Mail::IMAPClient.................ok (v3.38)
o IO::Socket::SSL................ok (v2.044)
Please consider updating to version 2.066 or higher: This version fixes email sending (bug#14357).
o Authen::SASL...................ok (v2.16)
o Authen::NTLM...................ok (v1.09)
o ModPerl::Util....................ok (v2.000010)
o Net::DNS.........................ok (v1.07)
o Net::LDAP........................ok (v0.65)
o Net::SMTP........................ok (v3.08_01)
Please consider updating to version 3.11 or higher: This version fixes email sending (bug#14357).
o Template.........................ok (v2.24)
o Template::Stash::XS..............ok (undef)
o Text::CSV_XS.....................ok (v1.26)
o Time::HiRes......................ok (v1.9733)
o XML::LibXML......................ok (v2.0128)
o XML::LibXSLT.....................ok (v1.95)
o XML::Parser......................ok (v2.44)
o YAML::XS.........................ok (v0.63)



La version de oracle es 12.2 !!!
Gracias !!!!
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

Pues casi dinos los pasos que sigues en la actualización, por ver si falta algún paso o algo. Nunca me he peleado con Oracle y Otrs y no se donde puede estar el problema.

Saludos.
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

gracias si a nosotros nos costó manejarlo con oracle pero lo logramos con la version 5.1 y desp la pase a 5.37 y no tuve problemas, pero cdo paso a la versión 6 en el paso de actilizar base de datos no hay caso!!

cp -r /opt/otrs/ /opt/otrs-prev/
rm /opt/otrs
tar xzvf otrs-6.0.22.tar.gz
ln -s otrs-6.0.22 otrs
cp /opt/otrs-prev/Kernel/Config.pm /opt/otrs/Kernel
cp /opt/otrs-prev/Kernel/Config/Files/ZZZAuto.pm /opt/otrs/Kernel/Config/Files
cd /opt/otrs-prev/var/article/
ls
ls -lh
cd /opt/otrs-prev/var/stats/
ls
cd /opt/otrs
/opt/otrs/bin/otrs.SetPermissions.pl --web-group=www-data
cd /opt/otrs-prev/Kernel/Config/Files/
cp -r /opt/otrs-prev/Kernel/Config/Files/* /opt/otrs/Kernel/Config/Files/XML
cd /opt/otrs/Kernel/Config/Files/XML/
bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files
bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files
bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files
apt-cache search DateTime | grep perl
bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files
su -c "bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files" otrs
su -c "bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files" otrs
ls Kernel/Config/Files"
ls Kernel/Config/Files
su -c "bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files" otrs
su -c "bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files/XML" otrs
su -c "/opt/otrs/scripts/DBUpdate-to-6.pl" -s /bin/bash otrs


esos serian los pasos, los errores te los pase arriba y este es el link de los pasos que segui para migrar
https://doc.otrs.com/doc/manual/admin/6 ... ating.html


desde ya muchas gracias
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

¿Tienes o has tenido algún adon fuera de los repositorios de la community?

¿y esto lo has tenido en cuenta?

Note: If you have any custom Perl or XML configuration files in Kernel/Config/Files, these need to be converted to the new formats supported by OTRS 6 before running the migration script.
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

¿Tienes o has tenido algún adon fuera de los repositorios de la community?
No, solo tenemos itsm que es de la comunidad.

¿y esto lo has tenido en cuenta?

Note: If you have any custom Perl or XML configuration files in Kernel/Config/Files, these need to be converted to the new formats supported by OTRS 6 before running the migration script.

si de acuerdo a lo que lei del instructivo habia que correr esto

bin/otrs.Console.pl Dev::Tools::Migrate::ConfigXMLStructure --source-directory Kernel/Config/Files
Migrating configuration XML files...
hay algo más que me esté faltando???
gracias
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

No se me ocurre nada más, si el sistema operativo está actualizado y la bbdd también, me he quedado sin ideas.
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

Gracias seguiré investigando!
andreapino
Znuny newbie
Posts: 7
Joined: 25 Sep 2019, 16:00
Znuny Version: otrs 5
Real Name: Andrea PIno

Re: Actualizar OTR 5 a 6

Post by andreapino »

nuevo error !!!


ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Mon Oct 21 12:49:36 2019

Message: Data was only readable pure-perl YAML module, please contact the System Administrator to update this record, as the stored data is still in a wrong format!

Traceback (24972):
Module: Kernel::System::YAML::Load Line: 142
Module: Kernel::System::SysConfig::DB::DefaultSettingGet Line: 659
Module: Kernel::System::SysConfig::DB::DefaultSettingUnlock Line: 1962
Module: Kernel::System::SysConfig::DB::DefaultSettingUpdate Line: 1054
Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2653
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 81
Module: scripts::DBUpdateTo6::RebuildConfig::Run Line: 27
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Mon Oct 21 12:49:36 2019

Message: 'TemplateID' not found in select!

Traceback (24972):
Module: Kernel::System::SysConfig::ValueType::Select::EffectiveValueGet Line: 171
Module: Kernel::System::SysConfig::SettingEffectiveValueGet Line: 963
Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2699
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 81
Module: scripts::DBUpdateTo6::RebuildConfig::Run Line: 27
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.24.1 OS: linux Time: Mon Oct 21 12:49:36 2019

Message: 'TemplateID' not found in select!

Traceback (24972):
Module: Kernel::System::SysConfig::ValueType::Select::EffectiveValueGet Line: 171
Module: Kernel::System::SysConfig::SettingEffectiveValueGet Line: 963
Module: Kernel::System::SysConfig::_DefaultSettingAddBulk Line: 6273
Module: Kernel::System::SysConfig::ConfigurationXML2DB Line: 2738
Module: scripts::DBUpdateTo6::Base::RebuildConfig Line: 81
Module: scripts::DBUpdateTo6::RebuildConfig::Run Line: 27
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87

[Mon Oct 21 09:49:37 2019] DBUpdate-to-6.pl: DBD::Oracle::db do failed: ORA-01400: cannot insert NULL into ("OTRS6"."SYSCONFIG_DEFAULT"."DESCRIPTION") (DBD ERROR: error possibly near <*> indicator at char 3117 in 'INSERT ALL
[Mon Oct 21 09:49:37 2019] DBUpdate-to-6.pl: INTO sysconfig_default
fcasal
Znuny wizard
Posts: 336
Joined: 21 Apr 2014, 16:14
Znuny Version: 6.0.18

Re: Actualizar OTR 5 a 6

Post by fcasal »

Esos errores apuntan a que la instalación actual está mal y hay que repararla primero. Lo que yo haría es:

- Instalar en una máquina nueva la versión actual del otrs que teneís
- Instalar los mismos módulos (versiones se entiende)
- Backup de datos en el antiguo
- Restaurar backup en el nuevo (Para estos dos pasos tiene otrs una herramienta)
- Actualizar el nuevo entorno

Saludos!
Post Reply