DB-Fehler nach Upgrade 2.0.4 -> 2.4.9

Hilfe zu Znuny Problemen aller Art
Locked
darie
Znuny newbie
Posts: 2
Joined: 11 Apr 2011, 09:16
Znuny Version: 2.4.9

DB-Fehler nach Upgrade 2.0.4 -> 2.4.9

Post by darie »

Hallo,

ich habe unser OTRS von Version 2.0.4 auf Version 2.4.9 aktualisiert. Ich habe natürlich auf alle Zwischenversionen (2.1.x, 2.2.x, 2.3.x) ein Upgrade gemacht und die Infos aus der Upgradedatei befolgt. Es gab auch keine Fehlermeldung. Nun stelle ich allerdings fest das unsere Standardantworten fehlen.

Ich wollte jetzt eine neue Signatur (Admin Page-> Signatur) Abspeichern, erhalte aber folgende SQL-Fehlermeldung:
Unknown column 'content_type' in 'field list', SQL: 'INSERT INTO signature (name, text, content_type, comments, valid_id, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, current_timestamp, ?, current_timestamp, ?)'


Was nun? Da lief wohl das Update doch schief? Problem ist, dass das ein Produktives System ist. Ich könnte also nur in absoluten Notfällen zurück, da das mit Datenverlust (Ticketverlust) verbunden wäre.

Und jetzt sehe ich beim manuellen Ausführen von bin/PostMasterMailbox.pl zusätzlich noch folgenden Fehler :(
POP3: Message 1/1 (support/server2.ennovatis.de)
DBD::mysql::st execute failed: Unknown column 'ar.content_type' in 'field list' at /opt/otrs-2.4.9/Kernel/System/DB.pm line 559.
ERROR: OTRS-PMAccount-12 Perl: 5.10.0 OS: linux Time: Mon Apr 11 11:08:35 2011

Message: Unknown column 'ar.content_type' in 'field list', SQL: 'SELECT ar.text0, ar.text1, ar.charset, ar.content_type, ar.system_address_id FROM auto_response_type art, auto_response ar, queue_auto_response qar WHERE qar.queue_id = ? AND art.id = ar.type_id AND qar.auto_response_id = ar.id AND art.name = ?'

Traceback (30249):
Module: Kernel::System::AutoResponse::AutoResponseGetByTypeQueueID (v1.35.2.1) Line: 294
Module: Kernel::System::TemplateGenerator::AutoResponse (v1.34.2.2) Line: 500
Module: Kernel::System::Ticket::Article::SendAutoResponse (v1.232.2.4) Line: 2599
Module: Kernel::System::Ticket::Article::ArticleCreate (v1.232.2.4) Line: 334
Module: Kernel::System::PostMaster::FollowUp::Run (v1.65) Line: 273
Module: Kernel::System::PostMaster::Run (v1.83) Line: 318
Module: Kernel::System::MailAccount::POP3::_Fetch (v1.6.2.1) Line: 165
Module: Kernel::System::MailAccount::POP3::Fetch (v1.6.2.1) Line: 45
Module: Kernel::System::MailAccount::MailAccountFetch (v1.9) Line: 380
Module: main::Fetch (v1.10) Line: 181
Module: /opt/otrs//bin/PostMasterMailbox.pl (v1.10) Line: 94


LG
Daniel
darie
Znuny newbie
Posts: 2
Joined: 11 Apr 2011, 09:16
Znuny Version: 2.4.9

Re: DB-Fehler nach Upgrade 2.0.4 -> 2.4.9

Post by darie »

Aha,

es scheinen einige Anweisungen vom Updatescript nicht ausgeführt worden zu sein, zum Beispiel folgende:

124 # alter table standard_response
125 # ----------------------------------------------------------
126 ALTER TABLE standard_response ADD content_type VARCHAR (250) NULL;
127 # ----------------------------------------------------------
128 # alter table auto_response
129 # ----------------------------------------------------------
130 ALTER TABLE auto_response ADD content_type VARCHAR (250) NULL;

Ich mache gerade ein Backup der DB.
Was wäre denn jetzt die klügste Variante? Kann man das Script noch einmal drüber jagen, doer lieber die Felder manuell anlegen?
Locked