OTRS UPDATE 2.0.4 auf 2.3.2

Hilfe zu Znuny Problemen aller Art
Locked
farukotrs
Znuny newbie
Posts: 35
Joined: 13 Mar 2008, 18:33

OTRS UPDATE 2.0.4 auf 2.3.2

Post by farukotrs »

also folgendes ... ich sitze mal wieder in der tinte

wir haben hier otrs laufen ... derzeitige version ist 2.0.4 welches ich auf die aktuellste version updaten will 2.3.2

ich habe folgendes durchgeführt:

testweiße habe ich ein neues system aufgesetzt ... und dort das neue otrs installiert (2.3.2)

danach habe ich einen dump von der otrs datenbank auf dem alten system (2.0.4) gemacht .. otrs.sql

dann habe ich diesen dump (otrs.sql) in das neue system eingespielt (mysql -p -u root otrs < otrs.sql)

dann habe ich das Schema upgedatet (dump war 2.0.4 schema also zuerst auf 2.1)
mysql -f -p otrs < /opt/otrs/scripts/DBUpdate-to-2.1.mysql.sql

dann weiter auf schema 2.2
mysql -f -p otrs < /opt/otrs/scripts/DBUpdate-to-2.2.mysql.sql

danach bin ich nach der unten angeführten anleitung vorgegangen wie man von 2.2 auf 2.3 updatet
These instructions are for people upgrading OTRS from "2.2" to "2.3".

*) Stop all your services (e. g. rcotrs stop-force)

*) Backup everything (database, Kernel/Config.pm, Kernel/Config/GenericAgent.pm, var/*)

*) Make sure that you have backed up everything ;-)

*) If possible try this install on a separate machine, althoug
I had always only production machines to upgrade

*) Install the new release (tar or RPM)

*) If you use the tar:

a) the OTRS themes between 2.2 and 2.3 are _not_ compatible
(don't use the old themes)!

*) Update the database changes with (part 1):
MySQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.3.mysql.sql | mysql -p -f -u root otrs
PostgreSQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.3.postgresql.sql | psql otrs

(Don't worry about the error messages, you can update all previous version
with this script and in the most cases your database has already the most changes!)

*) Run the migration script (as OTRS user, _not_ as root):
You must execute the migration script to migrate some data from the old database
structure to the new one. Please run $OTRS_HOME/scripts/DBUpdate-to-2.3.pl!

*) Update the database changes with (part 2):
MySQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.3-post.mysql.sql | mysql -p -f -u root otrs
PostgreSQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.3-post.postgresql.sql | psql otrs

*) If _no_ RPM is used, execute $OTRS_HOME/bin/SetPermissions.sh!

*) Restart your services (e. g. rcotrs restart-force or each service manually)

*) Log in as 'root@localhost' and select Admin -> SysConfig to make sure that
OTRS updates the configuration files



... so

was jetzt nicht funktioniert ist das ich mich bei dem frisch upgedateten OTRS nur mit root@localhost anmelden kann ...
wenn ich mir mit phpmyadmin die otrs datenbank anschaue sehe ich das es passen müsste ... alle user sind im system ... alle tickets ..
nur müsste ich mich doch auch z.b. mit meinem (auf dem alten otrs) otrs benutzer einloggen können was nicht geht ..
wenn ich mich beim neuen OTRS mit root@localhost anmelde komme ich rein aber das system wirkt junfräulich ... keine user ... kein nichts :(((

pls help ... ich muss das bis morgen fertigkriegen und der den ich eigentlich fragen könnte hasst mich zur zeit ..

für die bemühungen bedanke ich mich im voraus


pps

ich habe die tickets gefunden! und draufgekommen das die user weg sind ... schonmal n anfang =)
farukotrs
Znuny newbie
Posts: 35
Joined: 13 Mar 2008, 18:33

OTRS UPDATE 2.0.4 auf 2.3.2

Post by farukotrs »

also jetzt hab ich was rausgefunden

die "alte - 2.0.4" otrs datenbank hat eine tabelle die sich users nennt ... da stehen die ganzen benutzerinformationen

bei dem neuen otrs "datenbank 2.3. schema" gibts eine zusätzliche tabelle die sich "system_user" nennt ...
ich habe mittels csv die user von der tabelle system_user in die tabelle user kopiert
VÓILA

es funkt

mal sehen was jetzt noch aller nicht kommt

bitte aber dennoch um infos bezüglich
OS: Debian STABLE
OTRS 2.4.7.
MYSQL 5
Apache2
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Andre Bauer »

Sieht für mich so aus, als ob das Updatescript nicht oder fehlerhaft ausgeführt wurde...
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
farukotrs
Znuny newbie
Posts: 35
Joined: 13 Mar 2008, 18:33

OTRS UPDATE 2.0.4 auf 2.3.2

Post by farukotrs »

ja sieht fast so aus

ich denke mal das einer von den scripts falsch ausgeführt wurde ... oder gar n bug hat ?aber dann dürfts ja wohl nicht nur bei mir sein ... ?!

cat $OTRS_HOME/scripts/DBUpdate-to-2.3.mysql.sql | mysql -p -f -u root otrs

$OTRS_HOME/scripts/DBUpdate-to-2.3.pl

cat $OTRS_HOME/scripts/DBUpdate-to-2.3-post.mysql.sql | mysql -p -f -u root otrs
OS: Debian STABLE
OTRS 2.4.7.
MYSQL 5
Apache2
Spike
Znuny newbie
Posts: 18
Joined: 19 Sep 2006, 08:56
Znuny Version: 2.3.1

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Spike »

Hallo,

hab exakt selbes Problem:

Ich update von 2.0.4 auf 2.3.2. Habe deshalb 2.3.2 auf der Testumgebung installiert, apache konfiguriert, etc.

Dumpe die Datenbank (2.0.4.), spiele sie auf dem neuen Server ein.
Fuehre:
cat DBUpdate-to-2.1.mysql.sql | mysql -p -f -u root otrs
cat DBUpdate-to-2.2.mysql.sql | mysql -p -f -u root otrs
cat DBUpdate-to-2.3.mysql.sql | mysql -p -f -u root otrs

Und schon beim Update auf 2.1 kommen schon fehler:
ERROR 1050 (42S01) at line 46: Table 'ticket_watcher' already exists

Nun gut das ist ja noch nicht so "schlimm". Das die Tabelle bereits existiert, nehme ich mal als "nicht schlimm" hin, da die Tabelle spaetestens hier angelegt werden sollte.

Update von 2.1 auf 2.2:
ERROR 1050 (42S01) at line 7: Table 'customer_company' already exists
ERROR 1050 (42S01) at line 46: Table 'ticket_type' already exists
ERROR 1062 (23000) at line 60: Duplicate entry 'default' for key 2
ERROR 1091 (42000) at line 100: Can't DROP 'ticket_id'; check that column/key exists
ERROR 1061 (42000) at line 104: Duplicate key name 'ticket_watcher_ticket_id'
ERROR 1050 (42S01) at line 106: Table 'service' already exists
ERROR 1050 (42S01) at line 124: Table 'service_customer_user' already exists
ERROR 1050 (42S01) at line 137: Table 'sla' already exists
ERROR 1072 (42000) at line 159: Key column 'service_id' doesn't exist in table

Die Dubletten, machen mir hier Sorgen und das er "service_id" nicht findet, finde ich auch schon bedenklich...

Update von 2.2 auf 2.3:
ERROR 1050 (42S01) at line 8: Table 'users' already exists
ERROR 1050 (42S01) at line 12: Table 'queue_preferences' already exists
ERROR 1050 (42S01) at line 21: Table 'service_sla' already exists
ERROR 1050 (42S01) at line 29: Table 'link_type' already exists
ERROR 1050 (42S01) at line 43: Table 'link_state' already exists
ERROR 1050 (42S01) at line 57: Table 'link_object' already exists
ERROR 1050 (42S01) at line 66: Table 'link_relation' already exists
ERROR 1060 (42S21) at line 140: Duplicate column name 'first_response_notify'
ERROR 1060 (42S21) at line 144: Duplicate column name 'update_notify'
ERROR 1060 (42S21) at line 148: Duplicate column name 'solution_notify'
ERROR 1050 (42S01) at line 154: Table 'article_search' already exists
ERROR 1061 (42000) at line 178: Duplicate key name 'ticket_watcher_user_id'
ERROR 1050 (42S01) at line 193: Table 'mail_account' already exists
ERROR 1060 (42S21) at line 197: Duplicate column name 'account_type'
ERROR 1062 (23000) at line 225: Duplicate entry 'Normal' for key 2
ERROR 1062 (23000) at line 231: Duplicate entry 'ParentChild' for key 2
ERROR 1062 (23000) at line 237: Duplicate entry 'Valid' for key 2
ERROR 1062 (23000) at line 243: Duplicate entry 'Temporary' for key 2

Auf hier wieder Dubletten...

Muss ich vor 2.3 noch 2.2.2.sql ausfueheren? Ich hab es bisher noch nicht versucht, da kein "mysql" im Dateisuffix steht.

Beim ausfuehren der DBUpdate-to-2.3.pl hagelst auch noch ein haufen Errors wie z.B. "No UserLogin found for '12'!

Nach "cat DBUpdate-to-2.3-post.mysql.sql | mysql -p -f -u root otrs":
ERROR 1091 (42000) at line 7: Can't DROP 'service_id'; check that column/key exists

Wenn ich mich einlogge (root@localhost) sehe ich, nicht mal mehr die RAW Queue noch kann ich mich mit anderen Usern einloggen.

Ich werde jetzt noch einmal das Updateprozedere ausfuehren, diesmal mit "DBUpdate-to-2.2.2.sql" vor ...2.3.sql und die Tabelle wie farukotrs das gemacht hat umbennen.

Ansonsten weiss ich atm echt nicht weiter.

Gruss
Forcid
Znuny newbie
Posts: 71
Joined: 10 Mar 2008, 16:40

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Forcid »

dito... immernoch das gleiche problem

sieht wohl nach nem bug in den scripten aus...
Produktiv OTRS 2.4.4
PHP 5.2.6
Apache 2.2.8
SuSE 11.0
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

OTRS UPDATE 2.0.4 auf 2.3.2

Post by jojo »

hast Du vor dem Einspielen des 2.0er Dumps die DB gedropt und wieder neu angelegt? Wenn Nein, mach dies bevor Du die Sicherung einspielst.
"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
Forcid
Znuny newbie
Posts: 71
Joined: 10 Mar 2008, 16:40

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Forcid »

hab ich getan, geht trotzdem nicht, fehler sind beschrieben im anderen thread...
http://otrs-forum.de/viewtopic.php?f=33&t=2473
Produktiv OTRS 2.4.4
PHP 5.2.6
Apache 2.2.8
SuSE 11.0
Spike
Znuny newbie
Posts: 18
Joined: 19 Sep 2006, 08:56
Znuny Version: 2.3.1

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Spike »

jojo wrote:hast Du vor dem Einspielen des 2.0er Dumps die DB gedropt und wieder neu angelegt? Wenn Nein, mach dies bevor Du die Sicherung einspielst.
Ich hab 2.3.2 auf einem Testsystem installiert und mit der installer.pl eine Datenbank angelegt. Da muss ich doch die frische "Huelle" nicht droppen oder?

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

OTRS UPDATE 2.0.4 auf 2.3.2

Post by jojo »

schau mal in Deinen Dump ob es die Tabellen, die er als bereits existent anmeckert dort gibt.

Wenn ja -> kein 2.0

Wenn nein stimmt was anderes nicht...

Vorgehen für das Update der Datenbank:

Anmelden am Mysql nach Ausführung des OTRS Installers:
mysql -u root -p otrs

Alte Datenbank dropen:
drop database otrs;

Datenbank neu anlegen:
create database otrs charset utf8;

Datenbankdump (2.0.4 konvertiert auf utf-8) einspielen:
use otrs;
source /pfad/zum/dump.sql

Update auf 2.1:
source /opt/otrs/scripts/DBUpdate-to-2.1.mysql.sql

Update auf 2.2:
source /opt/otrs/scripts/DBUpdate-to-2.2.mysql.sql

Update auf 2.3 Teil 1:
source /opt/otrs/scripts/DBUpdate-to-2.3.mysql.sql

Achtung: jetzt das update Perlscript ausführen

Update auf 2.3 Teil 2:
source /opt/otrs/scripts/DBUpdate-to-2.3-post-mysql.sql
"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
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

OTRS UPDATE 2.0.4 auf 2.3.2

Post by jojo »

Spike wrote:
jojo wrote:hast Du vor dem Einspielen des 2.0er Dumps die DB gedropt und wieder neu angelegt? Wenn Nein, mach dies bevor Du die Sicherung einspielst.
Ich hab 2.3.2 auf einem Testsystem installiert und mit der installer.pl eine Datenbank angelegt. Da muss ich doch die frische "Huelle" nicht droppen oder?

Gruss
Doch, da der Installer ja alle Tabellen initial anlegt
"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
Spike
Znuny newbie
Posts: 18
Joined: 19 Sep 2006, 08:56
Znuny Version: 2.3.1

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Spike »

Hallo Jojo,

sieht jetzt schon besser. Habs nun genau nach deiner Anleitung gemacht und es sieht jetzt schon besser aus. Ich kann mich jetzt mit meinen alten Usern anlegen, jedoch sehe ich keine Queues und keine Tickets. Wenn ich danach suche finde ich sie zwar, aber es gibt ja noch unbearbeitete Tickets die in den Queues liegen sollten.

Habe noch Apache-errormsgs:
-e: DBD::mysql::st fetchrow_array failed: fetch() without execute() at %OTRS-PATH//Kernel/System/DB.pm line 624

Und Mysql-errormsg:
[Warning] Warning: Enabling keys got errno 2 on otrs.#sql-7742_12

War das DB Update nun erfolgreich und liegt es nur noch an Apache/ModPerl oder liegts noch an MySQL?

Gruss
Spike
Znuny newbie
Posts: 18
Joined: 19 Sep 2006, 08:56
Znuny Version: 2.3.1

OTRS UPDATE 2.0.4 auf 2.3.2

Post by Spike »

Spike wrote:Hallo Jojo,

sieht jetzt schon besser. Habs nun genau nach deiner Anleitung gemacht und es sieht jetzt schon besser aus. Ich kann mich jetzt mit meinen alten Usern anlegen, jedoch sehe ich keine Queues und keine Tickets. Wenn ich danach suche finde ich sie zwar, aber es gibt ja noch unbearbeitete Tickets die in den Queues liegen sollten.

Habe noch Apache-errormsgs:
-e: DBD::mysql::st fetchrow_array failed: fetch() without execute() at %OTRS-PATH//Kernel/System/DB.pm line 624

Und Mysql-errormsg:
[Warning] Warning: Enabling keys got errno 2 on otrs.#sql-7742_12

War das DB Update nun erfolgreich und liegt es nur noch an Apache/ModPerl oder liegts noch an MySQL?

Gruss
Problem scheint geloest:
Fehler war:
/usr/sbin/mysqld: Can't create/write to file '/var/lib/mysql_binlog/mysql.tmp/ibuaw74M' (Errcode: 2)

unter "/var/lib/mysql_binlog" gab es kein "mysql.tmp" Verzeichnis. Nach dem Anlegen des genannten Verzeichnisses, habe ich nun auch die Queues mit den Tickets.

Muss mysql.tmp von OTRS oder MySQL angelegt werden oder muss man das tatsaechlich von Hand machen?

Gruss
Locked