We are running into issues when performing an upgrade on our test system, when we launch the db update script ( scripts/DBUpdate-to-6.pl ) we get an error at step 28 (Post changes on article related tables ...):
Code: Select all
[Thu Jan 25 13:58:56 2018] DBUpdate-to-6.pl: DBD::mysql::db do failed: Cannot add or update a child row: a foreign key constraint fails (`otrsxxx`.`#sql-48ac_19b4`, CONSTRAIT `FK_time_accounting_article_id_id` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)) at /opt/otrs/Kernel/System/DB.pm line 470.
ERROR: OTRS-otrs.Console.pl-Maint::Database::Check-51 Perl: 5.22.1 OS: linux Time: Thu Jan 25 13:58:56 2018
Message: Cannot add or update a child row: a foreign key constraint fails (`otrsxxx`.`#sql-48ac_19b4`, CONSTRAINT `FK_time_accounting_article_id_id` FOREIGN KEY (`article_i`) REFERENCES `article` (`id`)), SQL: 'EXECUTE FKStatement'
Traceback (42918):
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 363
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_RecreateForeignKeysPointingToArticleTable Line: 432
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 66
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-51 Perl: 5.22.1 OS: linux Time: Thu Jan 25 13:58:56 2018
Message: Error during execution of 'EXECUTE FKStatement'!
Traceback (42918):
Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 366
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_RecreateForeignKeysPointingToArticleTable Line: 432
Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 66
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.