Upgrade von 2.2.7 zu 3.0.1

Hilfe zu Znuny Problemen aller Art
Locked
jmalter
Znuny newbie
Posts: 3
Joined: 05 Sep 2007, 08:23

Upgrade von 2.2.7 zu 3.0.1

Post by jmalter »

Habe da mal eine Frage zum Upgrade.

Das Upgrading Dokument hilft da nicht weiter und im Forum habe ich auch nichts dazu gefunden.

Installiert ist die 2.2.7 unter Ubuntu mit den ITSM Modulen.

Meine Schritte die 3.0.1. zu installieren und dann in der Reihenfolge

DBUpdate-to-2.3.mysql.sql
DBUpdate-to-2.3.pl
DBUpdate-to-2.3-post.sql scheitern.

Im DBUpdate-2.3.pl scheitert er z.b. an der Tabelle Ticket weil dort die Spalte archive_flags fehlt.
Diese Spalte wird aber erst in der 3.0 angelegt. Ein grep hat hier geholfen.
Muss ich tatsächlich erst jede Version (2.3 und 2.4) auspacken und dann upgraden. Ist doch irgendwie schwachsinnig, oder?

Gruß

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

Re: Upgrade von 2.2.7 zu 3.0.1

Post by jojo »

Hallo, bitte schreib mal genau auf, wie Du vorgegangen bist.

Achtung: Du möchtest ein System mit ITSM upgraden. ITSM ist noch nicht für die 3.0 vorhanden!
"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
jmalter
Znuny newbie
Posts: 3
Joined: 05 Sep 2007, 08:23

Re: Upgrade von 2.2.7 zu 3.0.1

Post by jmalter »

Hi,

also von Anfang an.

ITSM ist komplett deinstalliert.

Es ist nur noch die 2.2.7 (Linux) installiert.
Als nächstes die 3.0.1 installiert.

Dann das Skript DBUpdate-to-2.3.mysql.sql gestartet.
Dann wollte ich DBUpdate-to-2.3.pl starten

Dann kommen ohne ende Fehler. Einige der Fehler kommen, da er Spalten in Tabellen nicht hat, die es erst seit OTRS3 gibt.
Ich gehe jetzt tatsächlich den Schritt und installiere nacheinander die 2.3, 2.4 und dann die 3.0.
Napsty
Znuny newbie
Posts: 3
Joined: 24 Nov 2010, 09:58
Znuny Version: 2.4.9

Re: Upgrade von 2.2.7 zu 3.0.1

Post by Napsty »

Hallo jmalter,

Hat es so funktioniert, wie du es angekündigt hattest (Upgrade via 2.4) ?
schaffel
Znuny newbie
Posts: 90
Joined: 20 May 2008, 12:50
Znuny Version: 3.1.X
Real Name: Felix
Company: SyroCon Consulting GmbH
Location: Darmstadt

Re: Upgrade von 2.2.7 zu 3.0.1

Post by schaffel »

Ich habe das gleiche Problem bzw. fast
Upgrade von 2.2.7 Suse auf 3.0.3 RedHat
Ich ziehe dabei nur die configs und DB um.

Meine Schritte:
1. DB-Dump einspielen
...
2. frisches otrs auspacken

Code: Select all

 tar -xzf otrs-3.0.3.tar.gz
3. alte configs einfügen

Code: Select all

$otrs/Kernel/Config.pm
$otrs/Kernel/Config/GenericAgent.pm
$otrs/Kernel/Config/Files/ZZZAuto.pm

4. Berechtigungen setzen
5. DB-update (Scripte von 3.0.3 paket) 2.2 -> 2.3

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-2.3.mysql.sql | mysql -p -f -u root otrs
otrs# $otrs/scripts/DBUpdate-to-2.3.pl
Hierbei kommt es zu einem langen Rattenschwanz an Fehlern.

Code: Select all

DBD::mysql::st execute failed: Unknown column 'st.archive_flag' in 'field list' at /opt/otrs-3.0.3/Kernel/System/DB.pm line 553.
ERROR: OTRS-DBUpdate-to-2.3-1 Perl: 5.8.8 OS: linux Time: Wed Dec  8 14:56:01 2010

 Message: Unknown column 'st.archive_flag' in 'field list', SQL: 'SELECT st.id, st.queue_id, sq.name, st.ticket_state_id, st.ticket_lock_id, sp.id, sp.name, st.create_time_unix, st.create_time, sq.group_id, st.tn, st.customer_id, st.customer_user_id, st.user_id, st.responsible_user_id,  st.until_time, st.freekey1, st.freetext1, st.freekey2, st.freetext2, st.freekey3, st.freetext3, st.freekey4, st.freetext4, st.freekey5, st.freetext5, st.freekey6, st.freetext6, st.freekey7, st.freetext7, st.freekey8, st.freetext8, st.freekey9, st.freetext9, st.freekey10, st.freetext10, st.freekey11, st.freetext11, st.freekey12, st.freetext12, st.freekey13, st.freetext13, st.freekey14, st.freetext14, st.freekey15, st.freetext15, st.freekey16, st.freetext16, st.freetime1, st.freetime2, st.freetime3, st.freetime4, st.freetime5, st.freetime6, st.change_time, st.title, st.escalation_update_time, st.timeout, st.type_id, st.service_id, st.sla_id, st.escalation_response_time, st.escalation_solution_time, st.escalation_time, st.archive_flag FROM ticket st, ticket_priority sp, queue sq WHERE sp.id = st.ticket_priority_id AND sq.id = st.queue_id AND st.id = ? LIMIT 1'

 Traceback (3451):
   Module: Kernel::System::Ticket::TicketGet (v1.477) Line: 999
   Module: Kernel::System::Ticket::TicketEscalationIndexBuild (v1.477) Line: 2326
   Module: main::MigrateEscalation (v1.26) Line: 278
   Module: /opt/otrs/scripts/DBUpdate-to-2.3.pl (v1.26) Line: 97

Use of uninitialized value in pattern match (m//) at /opt/otrs-3.0.3/Kernel/System/Ticket.pm line 2332.
ERROR: OTRS-DBUpdate-to-2.3-1 Perl: 5.8.8 OS: linux Time: Wed Dec  8 14:56:01 2010

 Message: Need ID or Name!

 Traceback (3451):
   Module: Kernel::System::Queue::QueueGet (v1.127) Line: 760
   Module: Kernel::System::Ticket::TicketEscalationPreferences (v1.477) Line: 2135
   Module: Kernel::System::Ticket::TicketEscalationIndexBuild (v1.477) Line: 2361
   Module: main::MigrateEscalation (v1.26) Line: 278
   Module: /opt/otrs/scripts/DBUpdate-to-2.3.pl (v1.26) Line: 97
Dieser Fehler kommt immer wieder...
Irgendwann ist das Script dann fertig.

Code: Select all

NOTICE: Migrate the escalation calculation...  done.
NOTICE: Migrate the service sla relations...  done.
NOTICE: Migrate the link object...  done.

Migration of the system completed!
Das höhrt sich sehr nach dem oben beschriebenen Problem an.
Ich habe dann spaßeshalber weiter upgegradet.
also

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-2.3.mysql.sql | mysql -p -f -u root otrs 
5. Dann DB-update (Scripte von 3.0.3 paket) 2.3 -> 2.4

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-2.4.mysql.sql | mysql -p -f -u root otrs
otrs# $otrs/scripts/DBUpdate-to-2.4.pl
Daraufhin erhalte ich einen weiteren Fehler diverse male:

Code: Select all

DBD::mysql::st execute failed: Unknown column 'comments' in 'field list' at /opt/otrs-3.0.3/Kernel/System/DB.pm line 553.
ERROR: OTRS-DBUpdate-to-2.4-1 Perl: 5.8.8 OS: linux Time: Wed Dec  8 14:59:04 2010

 Message: Unknown column 'comments' in 'field list', SQL: 'SELECT id, name, subject, text, content_type, charset, valid_id, comments, create_time, create_by, change_time, change_by FROM notification_event WHERE name = ?'

 Traceback (8227):
   Module: Kernel::System::NotificationEvent::NotificationGet (v1.6) Line: 162
   Module: Kernel::System::NotificationEvent::NotificationAdd (v1.6) Line: 239
   Module: main::MigrateCustomerNotification (v1.13) Line: 224
   Module: /opt/otrs/scripts/DBUpdate-to-2.4.pl (v1.13) Line: 101

DBD::mysql::st fetchrow_array failed: fetch() without execute() at /opt/otrs-3.0.3/Kernel/System/DB.pm line 616.
DBD::mysql::db do failed: Unknown column 'comments' in 'field list' at /opt/otrs-3.0.3/Kernel/System/DB.pm line 422.
ERROR: OTRS-DBUpdate-to-2.4-1 Perl: 5.8.8 OS: linux Time: Wed Dec  8 14:59:04 2010

 Message: Unknown column 'comments' in 'field list', SQL: 'INSERT INTO notification_event (name, subject, text, content_type, charset, valid_id, comments, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, current_timestamp, ?, current_timestamp, ?)'

 Traceback (8227):
   Module: Kernel::System::NotificationEvent::NotificationAdd (v1.6) Line: 252
   Module: main::MigrateCustomerNotification (v1.13) Line: 224
   Module: /opt/otrs/scripts/DBUpdate-to-2.4.pl (v1.13) Line: 101
Das Script schließt mit:

Code: Select all

NOTICE: Migrate queue based customer notifications...  done.

Migration of the system completed!
Jetzt habe ich noch post.sql ausgeführt:

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-2.4-post.mysql.sql | mysql -p -f -u root otrs
5. Dann DB-update (Scripte von 3.0.3 paket) 2.4 -> 3.0

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-3.0.mysql.sql | mysql -p -f -u root otrs
otrs# cat $otrs/scripts/DBUpdate-to-3.0.pl
Das Script lief ohne Probleme:

Code: Select all

Migration started...
Step 1 of 4: Refresh configuration cache... done.
Step 2 of 4: Migrating theme configuration... done.
Step 3 of 4: Cleaning up the permission table... done.
Step 4 of 4: Cleanup pending time of tickets without pending state-type... done.
Migration completed!
Der Volständigkeit halber noch

Code: Select all

root# cat $otrs/scripts/DBUpdate-to-3.0-post.mysql.sql | mysql -p -f -u root otrs
leider konnte ich noch nicht prüfen was vom System jetzt funktioniert.
production: OTRS 5.0.X | OTRS:ITSM 5.0.X | AWS-RDS MariaDB 10.1.X | CentOS 7

Gibt es im Raum Frankfurt/Darmstadt OTRS/ITSM-Benutzer, die an einem Erfahrungsaustausch interessiert sind? Dann meldet euch um mit Gleichgesinnten über OTRS in der Praxis und den ganzen Rest zu reden.
Locked