Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Hilfe zu OTRS Problemen aller Art
Post Reply
lmatt
Znuny newbie
Posts: 8
Joined: 01 Jun 2022, 14:00
Znuny Version: Znuny
Real Name: Lorenz

Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Post by lmatt »

Hallo zusammen,

ich versuche OTRS von 5.0.18 auf die Version 6.0.30 zu migrieren.

Ich bin dafür der Anleitung https://doc.znuny.org/doc/manual/admin/ ... ating.html gefolgt.

Nun bin ich bei dem Punkt angekommen, an dem das Migrationsskript ausgeführt werden soll.

Dabei bekomme ich bei Step 31 (Post changes on article related tables) einen Fehler:

Code: Select all

[Wed Jun  1 09:11:45 2022] DBUpdate-to-6.pl: DBD::mysql::db do failed: Cannot delete or update a parent row: a foreign key constraint fails at /opt/otrs-6.0.30/Kernel/System/DB.pm line 470.
ERROR: OTRS-otrs.Console.pl-Dev::Code::CPANAudit-10 Perl: 5.16.3 OS: linux Time: Wed Jun 1 07:11:45 2022

 Message: Cannot delete or update a parent row: a foreign key constraint fails, SQL: 'DROP TABLE IF EXISTS article_type'

 Traceback (11200):
   Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 394
   Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBArray Line: 342
   Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_DropArticleTypeTable Line: 433
   Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 72
   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.16.3 OS: linux Time: Wed Jun 1 07:11:45 2022

 Message: Error during execution of 'DROP TABLE IF EXISTS article_type'!

 Traceback (11200):
   Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBString Line: 397
   Module: scripts::DBUpdateTo6::Base::ExecuteXMLDBArray Line: 342
   Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::_DropArticleTypeTable Line: 433
   Module: scripts::DBUpdateTo6::PostArticleTableStructureChanges::Run Line: 72
   Module: scripts::DBUpdateTo6::_ExecuteComponent Line: 157
   Module: scripts::DBUpdateTo6::Run Line: 69
   Module: /opt/otrs/scripts/DBUpdate-to-6.pl Line: 87
Was könnte ich hier machen?

Danke und Grüße!
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Post by reneeb »

Hattet ihr irgendwelche Erweiterungen, die neue Artikeltypen erstellt haben? Oder habt ihr selbst welche definiert?
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
lmatt
Znuny newbie
Posts: 8
Joined: 01 Jun 2022, 14:00
Znuny Version: Znuny
Real Name: Lorenz

Re: Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Post by lmatt »

reneeb wrote: 02 Jun 2022, 07:27 Hattet ihr irgendwelche Erweiterungen, die neue Artikeltypen erstellt haben? Oder habt ihr selbst welche definiert?
Hallo,
nein hatten wir nicht.
Gruß
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Post by root »

Hallo,

schicke doch bitte mal das Ergebnis für die beiden, folgenden SQL-Abfragen:

1.) SELECT * FROM article_type;

2.) SELECT DISTINCT(article_type_id) FROM article;

3.) SELECT DISTINCT(article_type_id) FROM article_search;

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
hkais
Znuny expert
Posts: 287
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: Upgrade von 5.0.18 auf 6.0.30 Migrationsskript Fehler (Step 31 of 44: Post changes on article related tables)

Post by hkais »

lmatt wrote: 01 Jun 2022, 14:45 Hallo zusammen,

ich versuche OTRS von 5.0.18 auf die Version 6.0.30 zu migrieren.
hier sind auch die Znuny Profis schon aktiv, daher vllt. überflüssig.

Ich wäre aber erst nach OTRS 5.0.42 gegangen, dann auf Znuny-6.0-latest

d.h.
erst auf OTRS 5.0.42
https://download.znuny.org/releases/otr ... 5.0.tar.gz

dann auf Znuny 6.0.43
https://download.znuny.org/releases/znu ... 6.0.tar.gz

sind schon noch einige Patches von 5.0.18 auf 5.0.42
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
Post Reply