Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Hilfe zu Znuny Problemen aller Art
Locked
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by Boity »

Hallo,

ich habe ENDLICH OTRS aktuellste Version geschafft zu installieren und möchte nun meine alte Datenbank von 2.2.7 einspielen.



Ist das möglich? Wenn ja bitte um Lösungvorschläge!


Vielen Dank!
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by jojo »

Lies die UPGRADING Datei
"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
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by Boity »

Habe ich und funktioniert nicht.

Du verstehst mich wohl nicht ganz richtig.


Ich habe die aktuellste Version erfolgreich installiert und möchte gern meine Datenbank von OTRS Version 2.2.7 einspielen.

Habe ich gemacht und nun funktioniert nichts mehr -> Kein Login usw.


Soviel dazu "lies die UPGRADING Datei"

Entweder ich verstehe dich falsch und mache was falscher oder oder? :(
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by jojo »

Hast Du auch die Punkte bzgl. der Datenbank Upgrades beachtet?

Code: Select all

If you are running a lower version of OTRS you need to follow the upgrade path
to 2.4 first (1.1->1.2->1.3->2.0->2.1->2.2->2.3->2.4 ...). 

Code: Select all

34    *) Update the database changes with (part 1):
35 	MySQL:
36 	cat $OTRS_HOME/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
37 	PostgreSQL:
38 	cat $OTRS_HOME/scripts/DBUpdate-to-2.4.postgresql.sql | psql otrs
39 	
40 	*) Run the migration script (as OTRS user, _not_ as root):
41 	You must execute the migration script to migrate some data from the old database
42 	structure to the new one. Please run $OTRS_HOME/scripts/DBUpdate-to-2.4.pl!
43 	
44 	*) Update the database changes with (part 2):
45 	MySQL:
46 	cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
47 	PostgreSQL:
48 	cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.postgresql.sql | psql otrs
49 	
"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
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by Boity »

Guten Abend,

in meiner Upgrading-Datei steht nur folgendes :
# --
# UPGRADING - upgrading OTRS
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: UPGRADING,v 1.23 2007/04/02 15:36:53 martin Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

These instructions are for people upgrading OTRS from "2.1" to "2.2".

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

*) Backup everything (database, Kernel/Config.pm, Kernel/Config/GenericAgent.pm, var/*)
(Remember: 5% of all config settings are renamed in OTRS 2.1, so may some of the
Kernel/Config.pm settings will not be compatible)

*) 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.1 and 2.2 are _not_ compatible
(don't use the old themes)!

*) Update the database changes with:
MySQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.2.mysql.sql | mysql -p -f -u root otrs
PostgreSQL:
cat $OTRS_HOME/scripts/DBUpdate-to-2.2.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!)

*) 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.
Wo finde ich die oben genannten Schritte ?

Gruß!
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by jojo »

Sorry hatte gedacht Du hast auf die 2.4.x upgedatet...

Aber auch in Deiner Datei stehen die DB Update Schritte drin!
"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
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by Boity »

Hi,

nee sorry nun war ich wieder bisserl Dumm *g* .


Ich habe natürlich die Version 2.4.2 installiert.

Code: Select all

 cat scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
Enter password:
ERROR 1050 (42S01) at line 7: Table 'notification_event' already exists
ERROR 1050 (42S01) at line 25: Table 'notification_event_item' already exists
ERROR 1060 (42S21) at line 36: Duplicate column name 'f_stop'
ERROR 1061 (42000) at line 44: Duplicate key name 'ticket_until_time'
ERROR 1061 (42000) at line 52: Duplicate key name 'ticket_timeout'
ERROR 1060 (42S21) at line 56: Duplicate column name 'a_in_reply_to'
ERROR 1060 (42S21) at line 60: Duplicate column name 'a_references'
ERROR 1060 (42S21) at line 64: Duplicate column name 'content_id'
ERROR 1060 (42S21) at line 68: Duplicate column name 'content_alternative'
ERROR 1050 (42S01) at line 72: Table 'service_preferences' already exists
ERROR 1050 (42S01) at line 81: Table 'sla_preferences' already exists
ERROR 1060 (42S21) at line 90: Duplicate column name 'phone'
ERROR 1060 (42S21) at line 94: Duplicate column name 'fax'
ERROR 1060 (42S21) at line 98: Duplicate column name 'mobile'
ERROR 1060 (42S21) at line 102: Duplicate column name 'street'
ERROR 1060 (42S21) at line 106: Duplicate column name 'zip'
ERROR 1060 (42S21) at line 110: Duplicate column name 'city'
ERROR 1060 (42S21) at line 114: Duplicate column name 'country'
ERROR 1060 (42S21) at line 118: Duplicate column name 'content_type'
ERROR 1060 (42S21) at line 122: Duplicate column name 'content_type'
ERROR 1060 (42S21) at line 126: Duplicate column name 'content_type'
ERROR 1060 (42S21) at line 130: Duplicate column name 'content_type'
ERROR 1060 (42S21) at line 134: Duplicate column name 'content_type'
ERROR 1060 (42S21) at line 138: Duplicate column name 'content_id'

Code: Select all

server: scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
Enter password:
ERROR 1091 (42000) at line 7: Can't DROP 'move_notify'; check that column/key exists
ERROR 1091 (42000) at line 11: Can't DROP 'state_notify'; check that column/key exists
ERROR 1091 (42000) at line 15: Can't DROP 'lock_notify'; check that column/key exists
ERROR 1091 (42000) at line 19: Can't DROP 'owner_notify'; check that column/key exists
Verstehe nichts mehr :O
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
garwen
Znuny expert
Posts: 260
Joined: 03 Feb 2009, 16:51
Znuny Version: 2.4.7

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by garwen »

Dann würde ich vorschlagen, Du installierst neu und folgst dann der Empfehlung

Code: Select all

If you are running a lower version of OTRS you need to follow the upgrade path
to 2.4 first (1.1->1.2->1.3->2.0->2.1->2.2->2.3->2.4 ...). 
Dabei die DB Upgrades nicht vergessen :)
MfG
~Fredy

Produktiv: OTRS 3.0.11/ openSUSE 11.4 / Apache2, MySQL5 / Exchange 2010
Boity
Znuny newbie
Posts: 83
Joined: 03 Aug 2009, 18:32
Znuny Version: 2.4

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by Boity »

Hi,

aber in der Upgrading-Datei steht ja immer nur was von Update :P ^^


Das heißt ich muss erst :

Code: Select all

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

Code: Select all

cat $OTRS_HOME/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
cat $OTRS_HOME/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
Und dann kann ich meine alte Datenbank einspielen oder versteh ich da was falsch?
OS : Debian7 (64 Bit) // Apache2 + MySQL 5
OTRS-Version: 3.0.11
garwen
Znuny expert
Posts: 260
Joined: 03 Feb 2009, 16:51
Znuny Version: 2.4.7

Datenbank von Version 2.2.7 bei 2.2.4 einspielen - Möglich?

Post by garwen »

Deine Datenbank solltest Du vor den Updates zurückspielen.
Sinn und Zweck ist ja, die alte Struktur Deiner gefüllten Datenbank auf die neue Struktur upzudaten. (z.B. neue Felder einfügen, etc.)
MfG
~Fredy

Produktiv: OTRS 3.0.11/ openSUSE 11.4 / Apache2, MySQL5 / Exchange 2010
Locked