ich versuche mich gerade an der Migration von OTRS 6.0.30 zu OTOBO 10.1. Alles in allem bin ich bisher gut vorangekommen, jetzt im Webinterface beim Schritt System migration (4/5) wird Folgendes ausgegeben.
Result of data migration
Copy database.
Could not insert data: Table: ticket – id:1.
Installiert habe ich das ganze auf einem Ubuntu 22.04.2 LTS als Docker Installation.
Jemand eine Idee was das Problem sein kann, bzw. wo ich nach besseren Hinweisen suchen kann?
danke für die schnelle Antwort. Ich habe mich versucht möglichst an die Anleitung zu halten. Es gab dann mit der Docker Version Probleme, da konnte mir ein Kollege damit helfen. Zumindest war alles so weit in Ordnung. Sämtliche Checks vor der Migration waren „grün“ (lokale OTRS Dateien sowie Verbindung zur OTRS MySQL Datenbank). Das Quellsystem ist eine Kopie vom Originalsystem und das Ganze ist in einem vom Produktivsystem getrennten Netz.
Ich kann mich auf die MariaDB einloggen und verbinden. Ich kann auch die otobo Datenbank benutzen. Bin aber Datenbank mäßig wirklich ein blutiger Anfänger … weiß wie es grundsätzlich funktioniert, aber dann ist auch schon fast vorbei.
Aktuell hätte ich gerade den Prompt
MariaDB [otobo]>
Allerdings verstehe ich nicht, warum er dann die Daten in der Tabelle Ticket nicht wegschreiben kann. Bei id1 denk ich mal, dass er da gar nicht drauf kann.
Bei „show tables from otobo;“ kommt eine üppige Auflistung der Tabellen (ca. 130 oder so), unter anderem ist natürlich die ticket auch angelegt.
Bei „SELECT * FROM ticket;“ sagt er mir, „empty set“. Ich nehme mal an, dass sie somit leer ist. Tabelle users ist auch leer, article ist gut gefüllt.
ich habe mal beide Tabellen verglichen und konnte Unterschiede feststellen, jedoch kann ich Relevanz und Tragweite nicht beurteilen. Ich habe die Unterschiede, die ich meine gefunden zu haben mal farblich hervorgehoben.
Problem konnte bisher nach wie vor nicht gelöst werden. Ich habe nochmal komplett von vorne gestartet, dieses mal ohne Docker als native installation.
Bei der Standardmigration, gleicher Fehler.
Dann habe ich die OTRS DB vom OTRS Server gedumpt und am OTOBO Server als OTRS DB importiert. Hier kam es nach wie vor zum gleichen Fehler.
Nächster Versuch ist, wie in der Anleitung beschrieben, das Backup der OTRS Datenbank und der Import mittels Aufbereitungsscripte. Hier kam es bisher zu keinem Fehler, jedoch bei den weiterführenden Schritten tritt jetzt dieser Fehler auf:
Migrate configuration settings.
An error occured during SysConfig migation when writing XML to DB.
Ob der Fehler mit der Ticket-Tabelle jetzt gelöst ist, kann ich aktuell gar nicht überprüfen, da ich jetzt nicht in der Lage bin, die Migration abzuschließen.
Aktueller Stand ist, ich kann die Migration auf folgendem Wege abschließen.
Manuelles Kopieren des OTRS Verzeichnisses auf den neuen Server unter /opt/otrs.
Einen Dump der Datenbank von OTRS.
mysqldump -u otrs -p! otrs > /opt/otrs/otrs.sql
Anschließend den Dump auf dem neuen Server importieren.
CREATE DATABASE otrs;
USE otrs;
SOURCE /path/to/file.sql
Hier das Script für den Export der Daten von der Datenbank ausführen. (In der Beschreibunge „Streamlined migration of the database“).
otobo> cd /opt/otobo otobo> scripts/backup.pl -t migratefromotrs --db-name otrs --db-host=127.0.0.1 --db-user otrs --db-password "secret_otrs_password"
Wie in der Beschreibung dann angegeben, importiere ich mit den Scripts die Datenbankdaten.
otobo> cd otobo> mysql -u root -p otobo < otrs_pre.sqlotobo> mysql -u root -p otobo < otrs_schema_for_otobo.sqlotobo> mysql -u root -p otobo < otrs_data.sqlotobo> mysql -u root -p otobo < otrs_post.sql
Anschließend kann die Migration durchgeführt werden und läuft auch auf keinen Fehler.
Leider stoße ich auf das Problem, dass der Ticketinhalt dann in Plain Text dargestellt wird und nicht in HTML.
Ich mache für diesen Fehler ein neues Ticket aufmachen.
This reply was modified 3 weeks, 1 day ago by Martin Hardi.
Our website uses cookies. Cookies are tiny text files which are saved in your web browser or by your web browser on your device when you access websites. They contain a characteristic character sequence allowing to clearly identify your browser upon your next visit to the website.
You can prevent the setting of cookies at any time by making the appropriate setting in your internet browser. Cookies that have already been set can be deleted manually or automatically at any time. This is possible in all common internet browsers. If the setting of cookies is deactivated in the browser, not all functions of the website may be fully usable.
We deliberately use very little cookies.
Detailed information can be found in section 4 of our Privacy Policy.
Necessary cookies
Essential Cookies are necessary to deliver this website and some of its features correctly.
For this reason, we do not provide any opportunity here to disable them.
Notwithstanding this, you can deactivate all Cookies in your Browser Settings at any time. Please be aware, however, that this might have an impact on the functionality of this website.
More information about the cookies to be set and how long they will be stored can be found in section 4 of our Privacy Poliy: Privacy Policy.
Google Analytics' Cookies
When you visit this website, Google Analytics sets cookies on your system. This will help us analyse how you use our website ans tailor it to the needs of our visitors. Your IP address will be automatically anonymised (IP anonymisation and deactivation of your User ID). Therefore, we cannot trace which data a certain user is accessing. The data are not saved together with any other personal user data.
You can deactivate tracking in your browser if you do not want us to be able to track your visit on our website.
Privacy Policy
Detailed information on the usage of cookies as well as our Privacy Policy can be found here: