OTRS Update 4 nach 5 error

Hilfe zu OTRS Problemen aller Art
Post Reply
tuxtom
Znuny expert
Posts: 173
Joined: 22 Sep 2016, 11:44
Znuny Version: 6.0.38
Real Name: Tux
Location: Germany
Contact:

OTRS Update 4 nach 5 error

Post by tuxtom »

Moin Alle,
bei dem Update von OTRS 4 nach 5 gibt es bei dem DBUpdate einen Fehler:

als user otrs ausgeführt.
scripts/DBUpdate-to-5.pl

DB ist Innodb
caracterset ist UTF8

Code: Select all

Step 7 of 16: Migrate notifications to event based notifications...[Tue Nov 21 11:43:42 2017] DBUpdate-to-5.pl: DBD::mysql::db do failed: Incorrect string value: '\xE7\xA5\xA8\xE6\x8D\xAE...' for column 'subject' at row 1 at /opt/otrs/Kernel/System/DB.pm line 449.
ERROR: OTRS-DBUpdate-to-5.pl-10 Perl: 5.16.3 OS: linux Time: Tue Nov 21 11:43:42 2017

 Message: Incorrect string value: '\xE7\xA5\xA8\xE6\x8D\xAE...' for column 'subject' at row 1, SQL: '
                INSERT INTO notification_event_message
                    (notification_id, subject, text, content_type, language)
                VALUES (?, ?, ?, ?, ?)'

 Traceback (15985):
   Module: Kernel::System::NotificationEvent::NotificationAdd Line: 365
   Module: main::_MigrateNotifications Line: 1201
   Module: scripts/DBUpdate-to-5.pl Line: 158

error.

[Tue Nov 21 11:43:42 2017] DBUpdate-to-5.pl: Died at scripts/DBUpdate-to-5.pl line 163.

Kann einer helfen?

Gruß, Tom.
-----------------------
Debian
OTRS 6.0.38, ITSM 6
tuxtom
Znuny expert
Posts: 173
Joined: 22 Sep 2016, 11:44
Znuny Version: 6.0.38
Real Name: Tux
Location: Germany
Contact:

[Solved]Re: OTRS Update 4 nach 5 error

Post by tuxtom »

Moin Alle,
hab die Lösung gefunden.

Manuell in der DB:

Code: Select all

ALTER TABLE notification_event_message CONVERT TO CHARACTER SET utf8;
Warum die Tabelle nicht in UTF8 war weiß ich immer noch nicht.
Trotzdem funktioniert jetzt alles.

Gruß, Tom.
-----------------------
Debian
OTRS 6.0.38, ITSM 6
Post Reply