Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Hilfe zu Znuny Problemen aller Art
Locked
skyman2000
Znuny newbie
Posts: 13
Joined: 19 Jan 2010, 10:16
Znuny Version: 2.4.5

Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Post by skyman2000 »

Hallo Kollegen,
ich habe jetzt in mehreren Version das Update durchgeführt....teilweise auf die Version 3.2.rc1 und dann weiter. Sobald ich das Update mache bekomme ich folgende Fehler bei der Migration:

hier die Migration auf die Version 3.2.6 !! bei der Migration auf die Version 3.2.rc1 gibt es keinerlei Fehler bei der Migration jedoch sieht der Fehler im Logfile ->###### unten nach Erstellung eines Tickets genauso aus......eine Migration auf 3.3 ist nicht möglich hier bricht der Teil Migration dann ab.

Migration started...

Step 1 of 10: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm line 7.
done.

Step 2 of 10: Check framework version... done.

Step 3 of 10: Cleanup UserPreferences... done.

Step 4 of 10: Updating toolbar configuration... done.

Step 5 of 10: Updating AgentTicketZoom window configuration... done.

Step 6 of 10: Dropping obsolete columns from article_search... Check if columns exist.
Columns found, drop them.
ALTER TABLE article_search DROP a_freetext1
ALTER TABLE article_search DROP a_freetext2
ALTER TABLE article_search DROP a_freetext3
ALTER TABLE article_search DROP a_freekey1
ALTER TABLE article_search DROP a_freekey2
ALTER TABLE article_search DROP a_freekey3
done.

Step 7 of 10: Dropping unused indexes on article_flag... SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHERE table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_article_id_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_article_id_id', 'SELECT ''INFO: Foreign key constraint FK_article_flag_article_id_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
SET @FKExists := (SELECT COUNT(*) FROM information_schema.table_constraints WHERE table_schema = DATABASE() AND table_name = 'article_flag' AND constraint_name = 'FK_article_flag_create_by_id')
OK
SET @FKSQLStatement := IF( @FKExists > 0, 'ALTER TABLE article_flag DROP FOREIGN KEY FK_article_flag_create_by_id', 'SELECT ''INFO: Foreign key constraint FK_article_flag_create_by_id does not exist, skipping.''' )
OK
PREPARE FKStatement FROM @FKSQLStatement
OK
EXECUTE FKStatement
OK
DROP INDEX article_flag_create_by ON article_flag
DBD::mysql::db do failed: Can't DROP 'article_flag_create_by'; check that column/key exists at /opt/otrs/Kernel/System/DB.pm line 475.
ERROR: OTRS-DBUpdate-to-3.2-10 Perl: 5.16.0 OS: linux Time: Mon Dec 23 09:14:21 2013

Message: Can't DROP 'article_flag_create_by'; check that column/key exists, SQL: 'DROP INDEX article_flag_create_by ON article_flag'

Traceback (11672):
Module: main::_DropArticleFlagIndexes (unknown version) Line: 488
Module: /opt/otrs/scripts/DBUpdate-to-3.2.pl (unknown version) Line: 109

Index was not present
DROP INDEX article_flag_article_id_article_key ON article_flag
OK
ALTER TABLE article_flag ADD CONSTRAINT FK_article_flag_article_id_id FOREIGN KEY (article_id) REFERENCES article (id)
DBD::mysql::db do failed: Cannot add or update a child row: a foreign key constraint fails (`otrs`.`#sql-6f4_23`, CONSTRAINT `FK_article_flag_article_id_id` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)) at /opt/otrs/Kernel/System/DB.pm line 475.
ERROR: OTRS-DBUpdate-to-3.2-10 Perl: 5.16.0 OS: linux Time: Mon Dec 23 09:15:15 2013

Message: Cannot add or update a child row: a foreign key constraint fails (`otrs`.`#sql-6f4_23`, CONSTRAINT `FK_article_flag_article_id_id` FOREIGN KEY (`article_id`) REFERENCES `article` (`id`)), SQL: 'ALTER TABLE article_flag ADD CONSTRAINT FK_article_flag_article_id_id FOREIGN KEY (article_id) REFERENCES article (id)'

Traceback (11672):
Module: main::_DropArticleFlagIndexes (unknown version) Line: 488
Module: /opt/otrs/scripts/DBUpdate-to-3.2.pl (unknown version) Line: 109

Index was not present
ALTER TABLE article_flag ADD CONSTRAINT FK_article_flag_create_by_id FOREIGN KEY (create_by) REFERENCES users (id)
OK
Step 8 of 10: Migration cache backend configuration... done.

Step 9 of 10: Clean up the cache... done.

Step 10 of 10: Refresh configuration cache another time...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAAuto.pm line 7.
done.

Migration completed!

!!!!!!!!!!!!!!!!!!!!!!!!! Soweit so gut

die Version läuft dann erst einmal soweit !!

Wenn ich aber neue Tickets erstelle kommt folgender Fehler im Log:

###########################
Mon Dec 23 11:50:03 2013 error OTRS-otrs.GenericAgent.pl-10 Unknown column 'internal_field' in 'field list', SQL: 'SELECT id, internal_field, name, label, field_order, field_type, object_type, config, valid_id, create_time, change_time FROM dynamic_field WHERE id = ?'
Mon Dec 23 11:50:03 2013 error OTRS-otrs.GenericAgent.pl-10 Unknown column 'internal_field' in 'field list', SQL: 'SELECT id, internal_field, name, label, field_order, field_type, object_type, config, valid_id, create_time, change_time FROM dynamic_field WHERE id = ?'
Mon Dec 23 11:50:03 2013 error OTRS-otrs.GenericAgent.pl-10 Unknown column 'internal_field' in 'field list', SQL: 'SELECT id, internal_field, name, label, field_order, field_type, object_type, config, valid_id, create_time, change_time FROM dynamic_field WHERE id = ?'


Jetzt bin ich nicht sicher ob das Kritisch ist oder auch nicht. Ich würde gerne die neue Version nutzen bleibe aber erst einmal auf der alten Version hängen.

Vielleicht kann mit jemand sagen was zu tun ist. Scheinbar wirkt sich der Fehler dann weiter so aus das bei einer weiteren Migration nach 3.3 die Migration generell mit Fehler abbricht und nicht genutzt werden kann.

!!!!!!!!!!Hilfe erbeten!!!!!!!!!!!!!

Danke Euch
Holger


Produktiv": OTRS: 2.4.6,
OS: OpenSuse 11.2 auf Vmware Vsphere 4.0
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Post by jojo »

Du musst direkt von der 3.1.8 auf die 3.2.13 und dann am besten auf die 3.3.3. gehen.

Ein Zwischenschritt über einen Release Kandidaten ist nicht sinnvoll und erst recht nicht nötig
"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
skyman2000
Znuny newbie
Posts: 13
Joined: 19 Jan 2010, 10:16
Znuny Version: 2.4.5

Re: Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Post by skyman2000 »

auch wenn ich auf die 3.2.13 gehe habe ich den gleichen Fehler ......

die Migration danach auf die 3.3.3 klappt ebenfalls nicht....

danke für deine Hilfe...noch eine Idee zum Fehler oder was man machen könnte?
Holger


Produktiv": OTRS: 2.4.6,
OS: OpenSuse 11.2 auf Vmware Vsphere 4.0
Apache2/MySQL 5
skyman2000
Znuny newbie
Posts: 13
Joined: 19 Jan 2010, 10:16
Znuny Version: 2.4.5

Re: Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Post by skyman2000 »

habe es eben nochmals auf die letzte Version getestet...gleiches Ergebnis leider!

Fehler bei 3.2.13 derselbe wie bei 3.2.6

was könnte man tun?
Holger


Produktiv": OTRS: 2.4.6,
OS: OpenSuse 11.2 auf Vmware Vsphere 4.0
Apache2/MySQL 5
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: Update von 3.1.18 auf 3.2.6 /3.2.rc1 Hilfe

Post by jojo »

bitte folge der UPGRADING Datei, Du hast irgendwas vergessen
"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
Locked