ich will auf unserem Znuny 6.5.4 von MariaDB auf PostGreSQL wechseln. Habe dafür das CloneDB aus der Paketverwaltung installiert.
Wenn ich die Konvertierung mit dry-run teste sieht alles gut aus.
Code: Select all
[2024-07-01 15:04:51] Checking table web_upload_cache...
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x1B51A0 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x1E3A67 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x1B56F6 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x175877 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x3BBDBF4 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Unicode surrogate U+DF36 is illegal in UTF-8 at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x1FB838 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Unicode surrogate U+DF9E is illegal in UTF-8 at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x172176 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x11DDB2 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x158F7D is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x175BFB is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x1E0E78 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Unicode surrogate U+DAEB is illegal in UTF-8 at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x25B1E9C7 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x3378E9D is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x118B2C is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Unicode surrogate U+DFF2 is illegal in UTF-8 at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Unicode surrogate U+D9B7 is illegal in UTF-8 at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x127745 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[Mon Jul 1 15:04:51 2024] otrs.Console.pl: Code point 0x14D7A9 is not Unicode, may not be portable in print at /opt/znuny-6.5.4/Kernel/System/CloneDB/Driver/Base.pm line 325.
[2024-07-01 15:04:51] Checking table xml_storage...
Dry run successfully finished.
Done.
Code: Select all
[Mon Jul 1 14:55:11 2024] otrs.Console.pl: DBD::Pg::db do failed: ERROR: insert or update on table "ticket_history" violates foreign key constraint "fk_ticket_history_article_id_id"
[Mon Jul 1 14:55:11 2024] otrs.Console.pl: DETAIL: Key (article_id)=(154710) is not present in table "article".
[Mon Jul 1 14:55:11 2024] otrs.Console.pl: CONTEXT: SQL statement "ALTER TABLE ticket_history ADD CONSTRAINT FK_ticket_history_article_id_id FOREIGN KEY (article_id) REFERENCES article (id)"
[Mon Jul 1 14:55:11 2024] otrs.Console.pl: PL/pgSQL function inline_code_block line 8 at SQL statement at /opt/znuny-6.5.4/Kernel/System/DB.pm line 497.
ERROR: OTRS-otrs.Console.pl-Maint::Database::Clone-32 Perl: 5.34.0 OS: linux Time: Mon Jul 1 14:55:11 2024
Message: ERROR: insert or update on table "ticket_history" violates foreign key constraint "fk_ticket_history_article_id_id"
DETAIL: Key (article_id)=(154710) is not present in table "article".
CONTEXT: SQL statement "ALTER TABLE ticket_history ADD CONSTRAINT FK_ticket_history_article_id_id FOREIGN KEY (article_id) REFERENCES article (id)"
PL/pgSQL function inline_code_block line 8 at SQL statement, SQL: 'DO $$
BEGIN
IF NOT EXISTS (
SELECT 1
FROM pg_constraint
WHERE LOWER(conname) = LOWER('FK_ticket_history_article_id_id')
) THEN
ALTER TABLE ticket_history ADD CONSTRAINT FK_ticket_history_article_id_id FOREIGN KEY (article_id) REFERENCES article (id);
END IF;
END$$;
'
Traceback (15142):
Module: Kernel::System::CloneDB::Backend::PopulateTargetStructuresPost Line: 455
Module: Kernel::System::Console::Command::Maint::Database::Clone::Run Line: 121
Module: (eval) Line: 461
Module: Kernel::System::Console::BaseCommand::Execute Line: 455
Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
Module: bin/otrs.Console.pl Line: 37
Error: ERROR: Could not generate structures in target database!
[2024-07-01 14:55:11] Creating structures in target database (phase 2/2)
Versionen:
Znuny: 6.5.4
Linux: Ubuntu 22.04.4 LTS
MariaDB: 10.6.18
Danke und viele Grüsse, Sascha