Error al actualizar la BD de OTRS 5 a 6

Post Reply
chlesmes
Znuny newbie
Posts: 2
Joined: 12 Jul 2018, 18:42
Znuny Version: 4,5,6
Real Name: Christian Lesmes
Company: Ciberc

Error al actualizar la BD de OTRS 5 a 6

Post by chlesmes »

Hola, tengo un problema al actualizar la base de datos del OTRS 5 con el script que trae OTRS 6.
Estoy actualizando la versión 5.0.1-03 a la versión 6.0.8-01 en Centos.

Cuando corro el script

Code: Select all

scripts/DBUpdate-to-6.pl
me bota un error en el paso 29 de 41 "Post changes on article related tables ..."

Estoy siguiendo el paso a paso del manual oficial para actualizar el OTRS http://doc.otrs.com/doc/manual/admin/st ... ating.html

El error es el siguiente, cualquier ayuda la agradecería.

...
Executing tasks ...

Step 1 of 41: Check framework version ...
Step 2 of 41: Check required Perl version ...
Step 3 of 41: Check required database version ...
Step 4 of 41: Check database charset ...
Step 5 of 41: Check required Perl modules ...
Step 6 of 41: Check if database has been backed up ...
Step 7 of 41: Upgrade database structure ...
Step 8 of 41: Migrate configuration ...
Step 9 of 41: Refresh configuration cache after migration of OTRS 5 settings ...
Step 10 of 41: Migrating ticket storage configuration ...
Step 11 of 41: Migrating article search index configuration ...
Step 12 of 41: Migrating ticket zoom customer information widget configuration ...
Step 13 of 41: Drop deprecated table gi_object_lock_state ...
Step 14 of 41: Migrate PossibleNextActions setting ...
Step 15 of 41: Migrate ZoomExpand setting ...
Step 16 of 41: Migrating time zone configuration ...
Step 17 of 41: Create appointment calendar tables ...
Step 18 of 41: Create ticket number counter tables ...
Step 19 of 41: Update calendar appointment future tasks ...
Step 20 of 41: Add basic appointment notification for reminders ...
Step 21 of 41: Create Form Draft tables ...
Step 22 of 41: Clean and drop group_user permission_value column ...
Step 23 of 41: Migrate GenericAgent jobs configuration ...
Step 24 of 41: Migrate TicketAppointment rules configuration ...
Step 25 of 41: Migrate Merged Ticket history name values ...
Step 26 of 41: Migrate ticket statistics ...
Step 27 of 41: Migrate ticket notifications ...
Step 28 of 41: Create entries in new article table ...
Step 29 of 41: Post changes on article related tables ...
[Mon Jul 16 14:06:02 2018] DBUpdate-to-6.pl: DBD::mysql::db do failed: Key column 'a_message_id_md5' doesn't exist in table at /opt/otrs/Kernel/System/DB.pm line 470.
ERROR: OTRS-otrs.Console.pl-Maint::Database::Check-87 Perl: 5.16.3 OS: linux Time: Mon Jul 16 14:06:02 2018

Message: Key column 'a_message_id_md5' doesn't exist in table, SQL: 'EXECUTE IndexStatement'

Traceback (28878):
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 363
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBArray Line: 311
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_UpdateArticleDataMimeTable Line: 271
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 52
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: scripts/DBUpdate-to-6.pl Line: 89


ERROR: OTRS-otrs.Console.pl-Maint::Database::Check-87 Perl: 5.16.3 OS: linux Time: Mon Jul 16 14:06:02 2018

Message: Error during execution of 'EXECUTE IndexStatement'!

Traceback (28878):
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 366
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBArray Line: 311
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_UpdateArticleDataMimeTable Line: 271
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 52
Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
Module: scripts::DBUpdateTo6::Run Line: 69
Module: scripts/DBUpdate-to-6.pl Line: 89




Not possible to complete migration, check previous messages for more information.
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: Error al actualizar la BD de OTRS 5 a 6

Post by miguelmz »

Hola,

Te esta dando un problema serio porque le falta esa columna a_message_id_md5, si miras el diagrama de la bd para un OTRS5 esa columna deberia existir: https://ftp.otrs.org/pub/otrs/doc/datab ... tabase.png

¿Habeis hecho una migracion previa desde otra version? ¿que base de datos teneis?

Un saludo.
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
miguelmz
Znuny wizard
Posts: 370
Joined: 17 Nov 2011, 17:46
Znuny Version: 6.0.10
Real Name: Miguel
Company: SIA
Location: Madrid, Spain.

Re: Error al actualizar la BD de OTRS 5 a 6

Post by miguelmz »

He vuelto a mirar y si habeis hecho en algun momento una subida desde antes de la version 3.3, es posible que fallara en ese momento y no os dieseis cuenta.

En la actualizacion del otrs 3.2 al 3.3 se realiza ese cambio en esa tabla. Ademas, hay que recordar que las migraciones desde version 3.x requieren pasar por todas las versiones 3.0 -> 3.1 -> 3.2 -> 3.3. En versiones 4 y 5 no es necesario pasar por las versiones menores.

Si es el caso las soluciones pasarian por intentar la migracion de nuevo desde ese punto pasando todas las versiones o hacer los cambios manualmente a las tablas revisando que desde tu version 5 tengas la misma estructura de BD que esta foto: https://ftp.otrs.org/pub/otrs/doc/datab ... tabase.png

Un saludo.
We want OTRS certifications in Spain!!

Check out my free addons! :mrgreen:
Post Reply