Migration von Windows auf Appliance

Hilfe zu OTRS Problemen aller Art
Post Reply
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Migration von Windows auf Appliance

Post by badwurzach »

Guten Abend zusammen,
da mit Version 4 kein Windows-Installer mehr gibt, testen wir gerade die Migration auf die Appliance. Als Leitfaden nutzen wir folgende Anleitung:
http://otrs.github.io/doc/manual/admin/ ... -appliance

Wir erhalten bei folgender Eingabe auf dem Windows Server 2012R2 einen Fehlermeldung:

Code: Select all

C:\OTRS\OTRS\bin>perl otrs.CloneDB.pl
[Mon Dec  8 21:49:04 2014] otrs.CloneDB.pl: Got no BlobColumns! at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 50.
Die Konfiguration des Moduls OTRSCloneDB sehr ihr im Anhang.
sysconfig-dbclone.PNG
Wir sind aktuell bei Windows Server als auch bei der Appliance auf Version 3.3.10.

Gruß,
Daniel

Kl. Korrekturen für die Anleitung.
Diese Datei gibt es bei uns gar nicht:

Code: Select all

shell> StrawberryPerl\portableshell.bat
Hier ist "OTRS" nach dem Punkt zu viel:

Code: Select all

shell> perl otrs.OTRSCloneDB.pl
You do not have the required permissions to view the files attached to this post.
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
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: Migration von Windows auf Appliance

Post by reneeb »

Die deaktivierten SysConfig-Optionen sollten wieder aktiviert werden.
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
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Migration von Windows auf Appliance

Post by badwurzach »

Bingo! Bingo!
Die Häkchen waren standardmäßig nach der Installation des Pakets (Version 1.0.9) deaktiviert. Darum habe ich mir dabei nichts gedacht.

Aber schon beim nächsten Befehl geht es weiter:

Code: Select all

C:\OTRS\OTRS\bin>perl otrs.CloneDB.pl -n
[2014-12-08 22:50:28] Checking table acl...
[2014-12-08 22:50:29] Checking table acl_sync...
[2014-12-08 22:50:29] Checking table article...
[2014-12-08 22:50:30] Checking table article_attachment...
[Mon Dec  8 22:50:35 2014] otrs.CloneDB.pl: Use of uninitialized value $TmpResult in pattern match (m//) at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 270.
[Mon Dec  8 22:50:35 2014] otrs.CloneDB.pl: Use of uninitialized value $TmpResult in concatenation (.) or string at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 275.
 Can't write /tmp/OTRSCloneDB.log: No such file or directory [Mon Dec  8 22:50:35 2014] otrs.CloneDB.pl: Was not possible to complete the data transfer.
Fehler gelöst (Pfad angepasst):
clonedb-logfile.PNG
Nun wird's aber unheimlich:

Code: Select all

C:\OTRS\OTRS\bin>perl otrs.CloneDB.pl -n
[2014-12-08 23:01:55] Checking table acl...
[2014-12-08 23:01:55] Checking table acl_sync...
[2014-12-08 23:01:55] Checking table article...
[2014-12-08 23:01:56] Checking table article_attachment...
[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Malformed UTF-8 character (unexpecte d non-continuation byte 0x76, immediately after start byte 0xfa) in print at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.
[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Code point 0x0000 is not Unicode, may not be portable at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.

[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Malformed UTF-8 character (unexpected non-continuation byte 0x4f, 2 bytes after start byte 0xfb, expected 5 bytes) in print at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.
[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Code point 0x0000 is not Unicode, may not be portable at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.

[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Malformed UTF-8 character (unexpected non-continuation byte 0x4c, immediately after start byte 0xf5) in print at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.
[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Code point 0x0000 is not Unicode, may not be portable at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.

[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Malformed UTF-8 character (unexpected non-continuation byte 0x20, 4 bytes after start byte 0xfd, expected 6 bytes) in print at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.
[Mon Dec  8 23:02:20 2014] otrs.CloneDB.pl: Code point 0x0000 is not Unicode, may not be portable at C:/OTRS/OTRS/Kernel/System/CloneDB/Driver/Base.pm line 292.
You do not have the required permissions to view the files attached to this post.
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
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: Migration von Windows auf Appliance

Post by reneeb »

Ich kenne das CloneDB leider nicht, kann da also nicht wirklich weiterhelfen...
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
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Migration von Windows auf Appliance

Post by jojo »

Du hast nicht utf8 Zeichen in Deiner Datenbank. Diese werden durch das Script ersetzt
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Migration von Windows auf Appliance

Post by badwurzach »

jojo wrote:Du hast nicht utf8 Zeichen in Deiner Datenbank. Diese werden durch das Script ersetzt
Das ist also völlig normal? das geht nämlich über eine Stunde so.
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Migration von Windows auf Appliance

Post by badwurzach »

ich habe mir das Logfile OTRSCloneDB.log (ca. 60MB) angeschaut. Es taucht regelmäßig Zeilen mit "invalid utf8 value" auf.
Beispiel 1:

Code: Select all

On table: article_attachment, column: content, id: 10 - exists an invalid utf8 value.
 <html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
....
Dem Quelltext zu urteilen, handelt es sich um eine Worddatei.

Beispiel 2:

Code: Select all

On table: article_attachment, column: content, id: 58 - exists an invalid utf8 value.
 ‰PNG


   
IHDR       »;Å   sRGB ®Îé   gAMA  ±üa   	pHYs  à  ÃÇo¨d  0KIDATx^흘U•ï¾qFq¹^½WÞouEQ!¨<Jx¥ „§0ò!Ðx¯::
$‚ƒ :"`¼òTš@ÈC’tŸt'!:‰¼âWwíGíZµö®:uNŸîôéüߢٵöÚk类³þÙuNwG1   P‚hi¥ƒÁ`°ª†  €R@0   ”‚      ¥€`   (  @)    JÁ   P
  €R@0   ”‚      ¥€`   (  @)    JÁ   PŠÆÆ
   ÍÉ\`Ky5&¶   y¸ûî»·Œ`l|c3ƒÁšÈ 0+eƒ•2ƒÁJƒÁ`¥l Æ«   ¢P Á˜:{i?Û4²9åmº±¹åm†±y•’ögg]VÆþÂí¹®2ö$·ùÝU­]Ø‚åÅö”oϯ(¶™¾-\Y`OmÑ‹yöLž-^•g³òì…—‚öl-YíÛìb[ú²osŠ­ãas«Zg·ye¬²†Û_ËزµÎž+i]ëŒÍ/oÝë-(oË_%{¾&[±aa¶håkÍkŒŒA0¸0ä#cžT“"ÁÍS2©Â<µ “
...
Heißt die Meldung "On table..." er hat die Daten kopiert oder nicht? Denn invalid heißt für ich ein Fehler ist aufgetreten.
Das Skript beendet sich trotzdem mit "Dry run sucessfully finished".
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
ltkvien
Znuny newbie
Posts: 8
Joined: 17 Dec 2014, 10:30
Znuny Version: 4.0.3

Re: Migration von Windows auf Appliance

Post by ltkvien »

Hi, after running the commend -n, I received "Dry run sucessfully finished", too. But run -r, it's in trouble: viewtopic.php?f=62&t=27490&p=110878#p110878.

Did you run ok with -r? I'm using OTRS on WS2012R2 and SQL Server 2012 with IIS
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Migration von Windows auf Appliance

Post by Rooobaaat »

read my post in your thread.
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
ltkvien
Znuny newbie
Posts: 8
Joined: 17 Dec 2014, 10:30
Znuny Version: 4.0.3

Re: Migration von Windows auf Appliance

Post by ltkvien »

Hi Rooobaaat, and kindly read my reply to your post again. :lol:
badwurzach
Znuny newbie
Posts: 45
Joined: 07 Jan 2013, 21:02
Znuny Version: 6.x
Real Name: DW

Re: Migration von Windows auf Appliance

Post by badwurzach »

Die deaktivierten SysConfig-Optionen sollten wieder aktiviert werden.
sysconfig_clonedb.PNG
You do not have the required permissions to view the files attached to this post.
Aktuell: OTRS6 CE (GIT), Ubuntu 18.04 LTS (with KeyHelp)
ItemsGmbH
Znuny newbie
Posts: 7
Joined: 22 Dec 2014, 12:54
Znuny Version: 3.3.8 jetzt 4.0.3
Real Name: Martin Peuker
Company: Items GmbH

Re: Migration von Windows auf Appliance

Post by ItemsGmbH »

Hallo,
ich hatte das selbe Problem zu lösen. Ich konnte die Migration Fehlerfrei durchziehen, nachdem ich in die Base.pm editiert habe. Bei mir lag Sie in c:\otrs\otrs\Kernel\system\CloneDB\Driver\.

Ich hab keine wirklich Ahnung von Perl, wir haben eine Modifikation ab Zeile 260 vorgenommen, das hat mein Problem gelöst. Und zwar haben wir erst gar nicht versucht die angehängten Dateien zwangsweise in UTF-8 zu konvertieren bevor Sie Base64 decodiert werden, da sie in der MySQL DB Teils ISO, teils binary waren.

Gern kann ich meine Modifiziert zumailen, wenn gewünscht.

freundliche Grüße
Martin
stoepsel2k
Znuny newbie
Posts: 14
Joined: 16 Jan 2015, 15:33
Znuny Version: 3.3.1

Re: Migration von Windows auf Appliance

Post by stoepsel2k »

Kann ich die modifizierte Datei bitte einmal bekommen ? Vielen Dank.
Geiselhart
Znuny newbie
Posts: 20
Joined: 21 Feb 2012, 12:46
Znuny Version: OTRS 6.5.1
Real Name: Geiselhart

Re: Migration von Windows auf Appliance

Post by Geiselhart »

Hallo.

Habe genau das selbe Problem und bekomme es einfach nicht gefixt.
Kann die Änderung in der Base.pm verfügbar gemacht werden?
beastmoar
Znuny expert
Posts: 163
Joined: 02 Jul 2008, 08:37

Re: Migration von Windows auf Appliance

Post by beastmoar »

Ich hab die Migration jetzt endlich geschafft, was habt ihr genau für ein Problem? Gerne auch per PN...

Grüße
Alex
Julian0o
Znuny newbie
Posts: 55
Joined: 14 May 2014, 13:28
Znuny Version: 5.0.7

Re: Migration von Windows auf Appliance

Post by Julian0o »

Bin auch gerade dran, hänge auch an UTF-8.

Wäre super wenn ihr die Infos für alle zur Verfügung stellt. Auch ich habe MySQL auf Windows im Einsatz.
OTRS 5.x & KIX4OTRS
Harty
Znuny newbie
Posts: 21
Joined: 11 Apr 2013, 12:25
Znuny Version: 4.0.8

Re: Migration von Windows auf Appliance

Post by Harty »

Hallo beastmoar, ich hänge leider ebenfalls an der CloneDB Thematik fest. Siehe viewtopic.php?f=62&t=27601#p112273

Hat da irgend jemand noch eine Idee zu? Wäre super
OTRS: 4.0.8
OS: OTRS Appliance
DB: PostgreSQL
ItemsGmbH
Znuny newbie
Posts: 7
Joined: 22 Dec 2014, 12:54
Znuny Version: 3.3.8 jetzt 4.0.3
Real Name: Martin Peuker
Company: Items GmbH

Re: Migration von Windows auf Appliance

Post by ItemsGmbH »

Sorry Jungs,

ich hab irgendwie nicht gesehen das hier einige Nachfrage war, ich bin unter Email erreichbar, die öffentlichen Nachfragen hab ich nicht gesehen.

Grüße
Martin
ItemsGmbH
Znuny newbie
Posts: 7
Joined: 22 Dec 2014, 12:54
Znuny Version: 3.3.8 jetzt 4.0.3
Real Name: Martin Peuker
Company: Items GmbH

Re: Migration von Windows auf Appliance

Post by ItemsGmbH »

Ohne Garantien, das die Umgebung bei euch meiner entspricht... Ist halt ein "Dreckiger Hack"
Base.zip
You do not have the required permissions to view the files attached to this post.
stoepsel2k
Znuny newbie
Posts: 14
Joined: 16 Jan 2015, 15:33
Znuny Version: 3.3.1

Re: Migration von Windows auf Appliance

Post by stoepsel2k »

Es hat funktioniert !

1000 Dank !

Das ist aber echt mal nicht so toll, dass das nicht einfach so funktioniert. Verstehe nicht, warum er nicht dierekt die Finger davon lässt, man definiert doch ganz klar welche Tabellen unberührt bleiben sollen im SysConf.
DaRocco
Znuny newbie
Posts: 3
Joined: 29 Jul 2013, 15:33
Znuny Version: 3.2.9

Re: Migration von Windows auf Appliance

Post by DaRocco »

Nach benutzen der Base.pm komme ich schon ein ganzes Stück weiter.
Allerdings kommt jetzt folgende Fehlermeldung (siehe Bild):
You do not have the required permissions to view the files attached to this post.
Post Reply