Probleme beim upgrade auf 4.0.0

Hilfe zu Znuny Problemen aller Art
Locked
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Hallo Liebe Community,

ich möchte meinen OTRS-Server Version 3.3.0 rc1 auf 4.0.0 Upgraden um ihn anschliessend auf 5.0.9 zu bekommen.
Betriebsystem ist: Ubuntu 12.04.5

Dabei komme ich jedoch auf einen Fehler (leider ohne Errormeldung)

ich mache alles wie in der Anleitung von OTRS beschrieben, an Punkt 6 bleibt das ganze jedoch hängen.

Befehl: "cat scripts/DBUpdate-to-4.mysql.sql | mysql -p -f -u otrs otrs"

An dieser stelle passiert einfach nichts mehr, kein Fehler kein gar nix.

Auf einem Testserver mit Ubuntu 14.04.3 funktionierte das Update ohne Probleme.

Datenbank ist MySql(5.5.38) mit InnoDB.

Hatte einer von euch vielleicht schon einmal diesen Fehler gehabt und kann mir hier weiterhelfen?

Falls ihr noch etwas benötigt, einfach bescheid geben.

LG
Timo
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probleme beim upgrade auf 4.0.0

Post by jojo »

welche 4er Version nutzt Du? Hoffentlich nicht die 4.0.0. sondern die letzte Version der 4.0.
"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
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Das Problem tritt beim dem Versuch auf von Version 3.3.0 rc1 -> 4.0.0 rc1
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probleme beim upgrade auf 4.0.0

Post by jojo »

Dann probier es mal mit der 4.0.16
"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
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Danke, bin schon dabei.

Aktuell hängt er noch oder Arbeitet halt. Warte mal ein paar Minuten ab auch wenn ich es gewohnt bin das dieser Schritt unter 1 min erledigt ist.
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Nun bekomme ich folgende Fehler ausgespuckt:

Code: Select all

ERROR 1050 (42S01) at line 38: Table 'personal_services' already exists
ERROR 1050 (42S01) at line 51: Table 'system_maintenance' already exists
ERROR 1005 (HY000) at line 66: Can't create table 'otrs.#sql-1acf_140' (errno: 1      21)
ERROR 1005 (HY000) at line 67: Can't create table 'otrs.#sql-1acf_140' (errno: 1      21)
ERROR 1005 (HY000) at line 68: Can't create table 'otrs.#sql-1acf_140' (errno: 1      21)
ERROR 1005 (HY000) at line 69: Can't create table 'otrs.#sql-1acf_140' (errno: 1      21)
ERROR 1005 (HY000) at line 70: Can't create table 'otrs.#sql-1acf_140' (errno: 1      21)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probleme beim upgrade auf 4.0.0

Post by jojo »

dann handelt es sich wohl nicht (mehr) um eine 3.3.er Datenank. D.h. Rollback auf Deine 3.3er Version vor Deinen Updateversuchen und dann nochmal los.
"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
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Habe gerade eben noch das letzte Datenbankbackup eingespielt welches ich vor den Updateversuchen gemacht habe.

Dies ist der Befehl den ich dazu genutzt habe: "mysql -u otrs -p otrs < sicherung.sql "
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probleme beim upgrade auf 4.0.0

Post by jojo »

Du solltest vorher die Datenbank löschen und neu (und leer) anlegen.
"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
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

okay, das heißt ich lösche nun die datenbank otrs und lege spiele sie dann mit hilfe des backups neu ein, korrekt?
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Probleme beim upgrade auf 4.0.0

Post by jojo »

richtig, im Zweifelsfall sollte Dir ein erfahrenerer Datenbankadministrator helfen können
"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
skullcat2x
Znuny newbie
Posts: 20
Joined: 22 Apr 2016, 18:52
Znuny Version: 6.0.1

Re: Probleme beim upgrade auf 4.0.0

Post by skullcat2x »

Vielen Lieben Dank!!

Hat nun wohl alles funktioniert und bin erfolgreich auf Version 5.0.9! :)

Vermutich hat der Schritt 6 sich beim erstmal aufgehangen und dann lag es wirklich nur noch an der Datenbank.

Nochmals Vielen Dank für die schnelle Hilfe.!
Locked