MySQL Fehler beim Update 3.3.3 auf 4.0.5

Hilfe zu OTRS Problemen aller Art
Post Reply
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Beim Versuch des Update eines bestehenden OTRS 3.3.3 mit ITSM 3.1.2 auf Version 4.0.5 wird bei Ausführung des DBupdate.pl Scripts Fehler ausgeworfen, das Script mit "Migration complete" bei Step 15/15 beendet.

Die Anmeldeoberfläche ist zwar danach erreinbar, beim Anmeldeversuch erscheint ein 500 - internal Server error
Im Apache Log erscheint:
[Thu Jan 29 11:09:40.187094 2015] [:error] [pid 1218] Malformed UTF-8 character (fatal) at /opt/otrs//Kernel/System/DB/mysql.pm line 114.\n
Das System besteht aus einem CentOS 6.5 Final und einem MySQL Server, der auf einem zentralen Windows 2008 R2 Server gehostet wird.
colttt
Znuny newbie
Posts: 21
Joined: 27 Jan 2015, 12:29
Znuny Version: 4.0.5

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by colttt »

jetzt sag bitte nicht du hast nachdem es beim upgrade zu fehlern kam, otrs wieder gestartet?

die anleitung zum upgrade hast du aber gelesen, oder? da stand drin wenns zu nem error kommt sollte man erstmal nichts starten und das fixen!

kannst du uns bitte das komplette error-log zeigen/schicken?
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Hier die Ausgabe vom DBUpdate.pl Script:

Code: Select all

Migration started...

Step 1 of 15: Refresh configuration cache... 
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

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

Step 3 of 15: Migrate FontAwesome icons... done.

Step 4 of 15: Migrate ProcessManagement EntityIDs... 
There are process parts that are not yet deployed, automatic deployment is not possible, please review all processes and deploy then manually

There are ACLs that are not yet deployed, automatic deployment is not possible, please review all ACLs and deploy them manually!
done.

Step 5 of 15: Migrate ProcessManagement Dynamic Field Types... done.

Step 6 of 15: Migrate ACLs stored in the DB... done.

Step 7 of 15: Set service notifications... done.

Step 8 of 15: Migrate Settings... done.

Step 9 of 15: Uninstall Merged Feature Add-Ons... ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Config/Files/Support.xml!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Language/de_Support.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Language/es_MX_Support.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Modules/AdminSupport.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Output/HTML/Standard/AdminSupport.dtl!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/Output/HTML/Standard/AdminSupportLicenseText.dtl!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Database.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/OS.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/OTRS.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Webserver/IIS.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Webserver/Apache.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Database/oracle.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Database/mssql.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Database/postgresql.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Database/mysql.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/System/Support/Webserver.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/cpan-lib/Archive/Tar/Constant.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/cpan-lib/Archive/Tar/File.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/Kernel/cpan-lib/Archive/Tar.pm!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

ERROR: OTRS-DBUpdate-to-4.pl-47 Perl: 5.18.2 OS: linux Time: Thu Jan 29 12:01:02 2015

 Message: No such file: /opt/otrs/var/httpd/htdocs/skins/Agent/default/cdone.

Step 10 of 15: Migrate SysConfig settings from DT to Template::Toolkit... done.

Step 11 of 15: Migrate Dynamic Field links from DT to Template::Toolkit... done.

Step 12 of 15: Migrate Generic Agent Process Management Dynamic Fields ... done.

Step 13 of 15: Migrate Notification (Event) Process Management Dynamic Fields ... done.

Step 14 of 15: Clean up the cache... done.

Step 15 of 15: Refresh configuration cache another time... 
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Migration completed!
ss/Support.Default.css!

 Traceback (1886): 
   Module: Kernel::System::Package::_FileRemove Line: 3401
   Module: Kernel::System::Package::PackageUninstall Line: 1162
   Module: main::_UninstallMergedFeatureAddOns Line: 1492
   Module: ./DBUpdate-to-4.pl Line: 176

Notice: DROP TABLE IF EXISTS support_bench_test
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

colttt wrote:jetzt sag bitte nicht du hast nachdem es beim upgrade zu fehlern kam, otrs wieder gestartet?

die anleitung zum upgrade hast du aber gelesen, oder? da stand drin wenns zu nem error kommt sollte man erstmal nichts starten und das fixen!

kannst du uns bitte das komplette error-log zeigen/schicken?

Beim erneuten Scriptaufruf erscheint KEIN FEHLER mehr, daher das starten+anmelden, was jedoch zum genannte Fehler führt + 500er Fehler.
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Halt ich korrigiere mich:

Code: Select all

Step 4 of 15: Migrate ProcessManagement EntityIDs... [Tue Feb  3 12:21:08 2015] DBUpdate-to-4.pl: Unquoted string "import" may clash with future reserved word at /opt/otrs/Kernel/cpan-lib/YAML/Mo.pm line 6.
[Tue Feb  3 12:21:08 2015] DBUpdate-to-4.pl: Unquoted string "extends" may clash with future reserved word at /opt/otrs/Kernel/cpan-lib/YAML/Mo.pm line 6.
[Tue Feb  3 12:21:08 2015] DBUpdate-to-4.pl: Unquoted string "has" may clash with future reserved word at /opt/otrs/Kernel/cpan-lib/YAML/Mo.pm line 6.
[Tue Feb  3 12:21:08 2015] DBUpdate-to-4.pl: Unquoted string "import" may clash with future reserved word at /opt/otrs/Kernel/cpan-lib/YAML/Mo.pm line 6.
[Tue Feb  3 12:21:08 2015] DBUpdate-to-4.pl: Subroutine YAML::Mo::import redefined at /opt/otrs/Kernel/cpan-lib/YAML/Mo.pm line 6.

There are process parts that are not yet deployed, automatic deployment is not possible, please review all processes and deploy then manually

There are ACLs that are not yet deployed, automatic deployment is not possible, please review all ACLs and deploy them manually!
done.
colttt
Znuny newbie
Posts: 21
Joined: 27 Jan 2015, 12:29
Znuny Version: 4.0.5

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by colttt »

nunja, ich bin jetzt nicht der fachmann, da ich selbst einsteiger bin aber, das sieht stark nach einem recheproblem aus!
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

Habe ein ähnliches Problem beim Update von 3.3.10 auf 4.0.5.

beim ausführen des Befehls: DBUpdate-to-4.mysql.sql | mysql -p -f -u root otrs
bekomme ich...

Code: Select all

ERROR 1060 (42S21) at line 9: Duplicate column name 'disposition'
ERROR 1060 (42S21) at line 13: Duplicate column name 'disposition'
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
ERROR 1091 (42000) at line 23: Can't DROP 'valid_id'; check that column/key exists
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
ERROR 1091 (42000) at line 33: Can't DROP 'valid_id'; check that column/key exists
ERROR 1050 (42S01) at line 38: Table 'personal_services' already exists
ERROR 1091 (42000) at line 47: Can't DROP 'content_size'; check that column/key exists
ERROR 1050 (42S01) at line 51: Table 'system_maintenance' already exists
und bei DBUpdate-to-4.pl

Code: Select all

Migration started...
Step 1 of 15: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.
Step 2 of 15: Check framework version... [Tue Feb  3 14:04:18 2015] DBUpdate-to-4.pl: Subroutine Load redefined at 
/opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.
Step 3 of 15: Migrate FontAwesome icons... done.
Step 4 of 15: Migrate ProcessManagement EntityIDs... done.
Step 5 of 15: Migrate ProcessManagement Dynamic Field Types... done.
Step 6 of 15: Migrate ACLs stored in the DB... done.
Step 7 of 15: Set service notifications... done.
Step 8 of 15: Migrate Settings... done.
Step 9 of 15: Uninstall Merged Feature Add-Ons... done.
Step 10 of 15: Migrate SysConfig settings from DT to Template::Toolkit... done.
Step 11 of 15: Migrate Dynamic Field links from DT to Template::Toolkit... done.
Step 12 of 15: Migrate Generic Agent Process Management Dynamic Fields ... done.
Step 13 of 15: Migrate Notification (Event) Process Management Dynamic Fields ... done.
Step 14 of 15: Clean up the cache... done.
Step 15 of 15: Refresh configuration cache another time...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.
Migration completed!
:(
Grüße Stoanze

Produktiv: OTRS: 3.3.x
OS: Linux Debian
Apache + MySQL
Feature Add-On: TicketWatchlist & TicketWorkflow
Module: FAQ, iPhoneHandle, Support & MasterSlave
Testing: OTRS: 3.3.x
_________________________________________________________
OTRS 3.2.x
OS: Windows
IIS7 + MS-SQL
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Rooobaaat »

@Tschaefer:
Also ich hab jetzt schon einige OTRS auf Version 4.0.5 gebracht. Berechtigungen stimmen soweit? Was passiert wenn du angenommen (ja mag richtig dreckig sein der Workaround) vor dem Update die ProcessManagement Tables einmal leerst?
Das Skript DBUpdate-to-4.pl wurde als 'otrs'-User ausgeführt?


@colttt:
Das sind keine Rechnerprobleme sondern DB-Probleme ;) Und für unsaubere Datenbanken kann OTRS nichts...

@Stoanze:

Was passiert, wenn du mit mysql -u root -p auf die DB connectest, anschließend ein "use otrs;" ausführst und dann mittels "source DBUpdate-to-4.mysql.sql" die DB-Änderungen einspielst?
Die Infos bzw. Fehlermeldung bedeuten eigentlich nur, das die Tabelle "disposition" bereits existiert oder das die Tabelle 'valid_id' / 'content_size' nicht gedroppt werden kann, da sie nicht existieren. Ansonsten... Was funktioniert denn nicht? Das Migrationsskript ist doch sauber durchgelaufen...
Last edited by Rooobaaat on 04 Feb 2015, 22:30, edited 1 time in total.
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

Kann mich ohne Probleme auf MySQL verbinden und auch auf die otrs-DB wechseln.

Was meinst du mit
Rooobaaat wrote:und dann mittels "source DBUpdate-to-4.mysql.sql" die DB-Änderungen einspielst?
Da das Migrationsskript durchgelaufen ist hatte ich gehofft otrs starten zu können, bekommen jedoch nur 500 Internal Server Error zu sehen und finde auch in den Log Files nichts. :(
Grüße Stoanze

Produktiv: OTRS: 3.3.x
OS: Linux Debian
Apache + MySQL
Feature Add-On: TicketWatchlist & TicketWorkflow
Module: FAQ, iPhoneHandle, Support & MasterSlave
Testing: OTRS: 3.3.x
_________________________________________________________
OTRS 3.2.x
OS: Windows
IIS7 + MS-SQL
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Rooobaaat »

Waren vorher AddOns installiert? Wie z.b. FAQ, iPhoneHandle usw....
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

Ja, diese habe ich aber deinstalliert.... ist aktuell eine Testmaschine um das Update auszuprobieren.

Installierte Add-Ons waren:
iPhoneHandle; FAQ; MasterSlave; TicketWatchlist und Support.

Muss aber später auch ohne Deinstallation und dem damit verbundenen Datenverlust der Module funktionieren :?
Grüße Stoanze

Produktiv: OTRS: 3.3.x
OS: Linux Debian
Apache + MySQL
Feature Add-On: TicketWatchlist & TicketWorkflow
Module: FAQ, iPhoneHandle, Support & MasterSlave
Testing: OTRS: 3.3.x
_________________________________________________________
OTRS 3.2.x
OS: Windows
IIS7 + MS-SQL
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Rooobaaat »

Welchen Fehler schmeißt dein Apache denn in den Logs? Schau unter /var/log/apache2/error_log
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

apache2 error.log sagt mir leider auch nichts.....

Code: Select all

[Wed Feb 04 09:15:28 2015] [error] Kernel::Language does not declare its object dependencies! at /opt/otrs//Kernel/System/ObjectManager.pm line 533\n\tKernel::System::ObjectManager::_DieWithError('Kernel::System::ObjectManager=HASH(0x7ffdf3591008)', 'Error', 'Kernel::Language does not declare its object dependencies!') called at /opt/otrs//Kernel/System/ObjectManager.pm line 208\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7ffdf3591008)', 'Package', 'Kernel::Language') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7ffdf3591008)', 'Kernel::Language') called at /opt/otrs//Kernel/Output/HTML/Layout.pm line 163\n\tKernel::Output::HTML::Layout::new('Kernel::Output::HTML::Layout', 'Lang', '', 'UserLanguage', '') called at /opt/otrs//Kernel/System/ObjectManager.pm line 222\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7ffdf3591008)', 'Package', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7ffdf3591008)', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/Web/InterfaceAgent.pm line 722\n\tKernel::System::Web::InterfaceAgent::Run('Kernel::System::Web::InterfaceAgent=HASH(0x7ffdf3594d88)') called at /opt/otrs/bin/cgi-bin/index.pl line 41\n\tModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler('Apache2::RequestRec=SCALAR(0x7ffdf32c3068)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\teval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7ffdf3645998)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7ffdf3645998)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31\n\tModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7ffdf32c3068)') called at -e line 0\n\teval {...} called at -e line 0\n
ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Wed Feb  4 09:15:30 2015

 Message: Kernel::Language does not declare its object dependencies!

 RemoteAddress: xxxxx
 RequestURI: /otrs/index.pl

 Traceback (2921): 
   Module: Kernel::System::ObjectManager::_DieWithError Line: 529
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 208
   Module: Kernel::System::ObjectManager::Get Line: 176
   Module: Kernel::Output::HTML::Layout::new Line: 163
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 222
   Module: Kernel::System::ObjectManager::Get Line: 176
   Module: Kernel::System::Web::InterfaceAgent::Run Line: 722
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41
   Module: (eval) (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31

[Wed Feb 04 09:15:30 2015] [error] Kernel::Language does not declare its object dependencies! at /opt/otrs//Kernel/System/ObjectManager.pm line 533\n\tKernel::System::ObjectManager::_DieWithError('Kernel::System::ObjectManager=HASH(0x7ffdf359d788)', 'Error', 'Kernel::Language does not declare its object dependencies!') called at /opt/otrs//Kernel/System/ObjectManager.pm line 208\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7ffdf359d788)', 'Package', 'Kernel::Language') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7ffdf359d788)', 'Kernel::Language') called at /opt/otrs//Kernel/Output/HTML/Layout.pm line 163\n\tKernel::Output::HTML::Layout::new('Kernel::Output::HTML::Layout', 'Lang', '', 'UserLanguage', '') called at /opt/otrs//Kernel/System/ObjectManager.pm line 222\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7ffdf359d788)', 'Package', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7ffdf359d788)', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/Web/InterfaceAgent.pm line 722\n\tKernel::System::Web::InterfaceAgent::Run('Kernel::System::Web::InterfaceAgent=HASH(0x7ffdf32c3000)') called at /opt/otrs/bin/cgi-bin/index.pl line 41\n\tModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler('Apache2::RequestRec=SCALAR(0x7ffdf3662b00)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\teval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7ffdf32c3870)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7ffdf32c3870)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31\n\tModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7ffdf3662b00)') called at -e line 0\n\teval {...} called at -e line 0\n
[Wed Feb 04 15:32:55 2015] [error] [client xx] File does not exist: /var/www/favicon.ico
Grüße Stoanze

Produktiv: OTRS: 3.3.x
OS: Linux Debian
Apache + MySQL
Feature Add-On: TicketWatchlist & TicketWorkflow
Module: FAQ, iPhoneHandle, Support & MasterSlave
Testing: OTRS: 3.3.x
_________________________________________________________
OTRS 3.2.x
OS: Windows
IIS7 + MS-SQL
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Rooobaaat wrote:@Tschaefer:
Also ich hab jetzt schon einige OTRS auf Version 4.0.5 gebracht. Berechtigungen stimmen soweit? Was passiert wenn du angenommen (ja mag richtig dreckig sein der Workaround) vor dem Update die ProcessManagement Tables einmal leerst?
Das Skript DBUpdate-to-4.pl wurde als 'otrs'-User ausgeführt?
Bitte definiere "Berechtigungen". Ich habe auf /opt/otrs die otrs.SetPermission.pl mit dem entsprechenden Parametern ausgeführt. Der User für die Dateien ist "otrs", die Gruppe "www-data".

Den Dirty-Hack mit leeren der ProcessManagement Tables muss ich testen.

Das DBUpdate-to-4.pl wurde per "su -c 'blabla' -s /bin/bash otrs" ausgeführt
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Update:

Auch das vorherige Löschen der Inhalte sämtlicher pm_... Tables hat keine Besserung gebracht.
Kann mir jemand sagen, wieso das DBUpdate.pl Script so viele Meldungen über fehlende Dateien meldet ?

Die müssten doch im 4.0.5 tarball inkludiert sein ?
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Rooobaaat »

Ich lese grade was von wegen dem ObjectManager..... Hast du das Perl-Module Template installiert? Sieht so aus als ob das fehlt.
My english is better than your german :P

"Produktiv": OTRS: 5.0.x, OTRS::ITSM 5.0.x
"Testing": OTRS 6 git
OS: Debian 8.0 (Jessie)
Apache2.4.10/MySQL 5.5.41
oleole
Znuny advanced
Posts: 148
Joined: 08 Jun 2012, 10:19
Znuny Version: 4.0.x

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by oleole »

Grundsätzlich funktioniert das Update und die Migration.

Hintergrund deiner Problematik ist, dass Du irgendeinen Step übersehen oder nicht richtig ausgeführt hast. Folgende Dinge müssen sichergestellt sein:

-Als erstes das Support-Paket aus deinem OTRS entfernen, ansonsten failed das Update komplett!

-Alle Dienste stoppen gemäß Anleitung:
http://otrs.github.io/doc/manual/admin/ ... ading.html

-Sichern und neues System gemäß Anleitung aufsetzen

-Berechtigungen setzen: bin/otrs.SetPermissions.pl –web-group=www-data (bei Ubuntu z.Bsp.), ansonsten gemäß Anleitung !

-Check der noch fehlenden benötigten Perl-Module:
/opt/otrs/bin/otrs.CheckModules.pl und benötigte fehlende Module unbedingt installieren

-Database-Schema Update gemäß Anleitung durchführen

-Alle Dienste wieder neu starten

-Scheduler starten: bin/otrs.Scheduler.pl –a reload

Das sollte dann aber auch wirklich klappen ;-)

Viele Grüße

oleole
Produktiv: OTRS 4.0.X | Ubuntu 12.04.2 | Apache2 | MySQL 5.5 | KIX4OTRS
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

Rooobaaat wrote:Ich lese grade was von wegen dem ObjectManager..... Hast du das Perl-Module Template installiert? Sieht so aus als ob das fehlt.

Code: Select all

root@otrs-Testserver:/opt/otrs/bin# perl otrs.CheckModules.pl
  o Apache2::Reload..................ok (v0.12)
  o Archive::Tar.....................ok (v1.52)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......Not installed! Use: 'apt-get install -y libcrypt-eksblowfish-perl' (optional - For strong passwo)
  o Crypt::SSLeay....................ok (v0.57)
  o Date::Format.....................ok (v2.24)
  o DBI..............................ok (v1.612)
  o DBD::mysql.......................ok (v4.016)
  o DBD::ODBC........................Not installed! Use: 'apt-get install -y libdbd-odbc-perl' (optional - Required to connect to a Mase.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'apt-get install -y libdbd-pg-perl' (optional - Required to connect to a Posabase.)
  o Encode::HanExtra.................Not installed! Use: 'apt-get install -y libencode-hanextra-perl' (optional - Required to handle several Chinese character sets.)
  o GD...............................ok (v2.39)
    o GD::Text.......................ok (v0.86)
    o GD::Graph......................ok (v1.44)
  o IO::Socket::SSL..................ok (v1.33)
  o JSON::XS.........................ok (v2.29)
  o List::Util::XS...................ok (v1.21)
  o LWP::UserAgent...................ok (v6.06)
  o Mail::IMAPClient.................ok (v3.25)
    o IO::Socket::SSL................ok (v1.33)
  o ModPerl::Util....................ok (v2.000004)
  o Net::DNS.........................ok (v0.66)
  o Net::LDAP........................ok (v0.4001)
  o PDF::API2........................ok (v2.015)
  o Template.........................ok (v2.22)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v0.73)
  o Time::HiRes......................ok (v1.9719)
  o Time::Piece......................ok (v1.15)
  o XML::Parser......................ok (v2.36)
  o YAML::XS.........................ok (v0.33)
Apache2 error.log

Code: Select all

 RemoteAddress: xxx.xx.xx.xxx
 RequestURI: /otrs/index.pl

 Traceback (1651): 
   Module: Kernel::System::ObjectManager::_DieWithError Line: 529
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 208
   Module: Kernel::System::ObjectManager::Get Line: 176
   Module: Kernel::Output::HTML::Layout::new Line: 163
   Module: Kernel::System::ObjectManager::_ObjectBuild Line: 222
   Module: Kernel::System::ObjectManager::Get Line: 176
   Module: Kernel::System::Web::InterfaceAgent::Run Line: 722
   Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler Line: 41
   Module: (eval) (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.99) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31

[Thu Mar 12 13:07:41 2015] [error] Kernel::Language does not declare its object dependencies! at /opt/otrs//Kernel/System/ObjectManager.pm line 533\n\tKernel::System::ObjectManager::_DieWithError('Kernel::System::ObjectManager=HASH(0x7f7b4efa6ed8)', 'Error', 'Kernel::Language does not declare its object dependencies!') called at /opt/otrs//Kernel/System/ObjectManager.pm line 208\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7f7b4efa6ed8)', 'Package', 'Kernel::Language') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7f7b4efa6ed8)', 'Kernel::Language') called at /opt/otrs//Kernel/Output/HTML/Layout.pm line 163\n\tKernel::Output::HTML::Layout::new('Kernel::Output::HTML::Layout', 'Lang', '', 'UserLanguage', '') called at /opt/otrs//Kernel/System/ObjectManager.pm line 222\n\tKernel::System::ObjectManager::_ObjectBuild('Kernel::System::ObjectManager=HASH(0x7f7b4efa6ed8)', 'Package', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/ObjectManager.pm line 176\n\tKernel::System::ObjectManager::Get('Kernel::System::ObjectManager=HASH(0x7f7b4efa6ed8)', 'Kernel::Output::HTML::Layout') called at /opt/otrs//Kernel/System/Web/InterfaceAgent.pm line 722\n\tKernel::System::Web::InterfaceAgent::Run('Kernel::System::Web::InterfaceAgent=HASH(0x7f7b4efaab50)') called at /opt/otrs/bin/cgi-bin/index.pl line 41\n\tModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler('Apache2::RequestRec=SCALAR(0x7f7b4ecd8de0)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\teval {...} called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 204\n\tModPerl::RegistryCooker::run('ModPerl::Registry=HASH(0x7f7b4f073338)') called at /usr/lib/perl5/ModPerl/RegistryCooker.pm line 170\n\tModPerl::RegistryCooker::default_handler('ModPerl::Registry=HASH(0x7f7b4f073338)') called at /usr/lib/perl5/ModPerl/Registry.pm line 31\n\tModPerl::Registry::handler('ModPerl::Registry', 'Apache2::RequestRec=SCALAR(0x7f7b4ecd8de0)') called at -e line 0\n\teval {...} called at -e line 0\n
Syslog:

Code: Select all

Mar 12 12:23:01 OtrsSyncUpdate OTRS-CGI-10[2501]: [Notice][Kernel::System::AuthSession::DB::CheckSessionID] SessionID: '2OZj2mFFgtjrWdQQFlFvQ0MNQjOeVGge' is invalid!!!
Mar 12 12:30:01 OtrsSyncUpdate /USR/SBIN/CRON[2597]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 12:30:01 OtrsSyncUpdate /USR/SBIN/CRON[2598]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 12:30:02 OtrsSyncUpdate /USR/SBIN/CRON[2595]: (CRON) error (grandchild #2598 failed with exit status 255)
Mar 12 12:30:29 OtrsSyncUpdate OTRS-CGI-10[2529]: [Notice][Kernel::System::Auth::DB::Auth] User: xyz authentication ok (Method: sha256, REMOTE_ADDR: xxx.xx.xx.xxx).
Mar 12 12:30:30 OtrsSyncUpdate OTRS-CGI-10[2529]: [Notice][Kernel::System::Package::PackageInstall] Package already installed, try upgrade!
Mar 12 12:30:31 OtrsSyncUpdate OTRS-CGI-10[2529]: [Error][Kernel::System::Package::PackageUpgrade][Line:725]: Can't upgrade, package 'Support-1.5.4' already installed!
Mar 12 12:32:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 12:35:01 OtrsSyncUpdate /USR/SBIN/CRON[2620]: (otrs) CMD ($HOME/bin/otrs.UnlockTickets.pl --timeout >> /dev/null)
Mar 12 12:40:01 OtrsSyncUpdate /USR/SBIN/CRON[2627]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 12:40:01 OtrsSyncUpdate /USR/SBIN/CRON[2628]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 12:40:01 OtrsSyncUpdate /USR/SBIN/CRON[2630]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl >> /dev/null)
Mar 12 12:42:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 12:45:01 OtrsSyncUpdate /USR/SBIN/CRON[2650]: (otrs) CMD ($HOME/bin/otrs.PendingJobs.pl >> /dev/null)
Mar 12 12:50:01 OtrsSyncUpdate /USR/SBIN/CRON[2656]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 12:50:01 OtrsSyncUpdate /USR/SBIN/CRON[2657]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 12:52:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 12:55:01 OtrsSyncUpdate /USR/SBIN/CRON[2674]: (otrs) CMD ($HOME/bin/otrs.DeleteSessionIDs.pl --expired >> /dev/null)
Mar 12 13:00:01 OtrsSyncUpdate /USR/SBIN/CRON[2680]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 13:00:01 OtrsSyncUpdate /USR/SBIN/CRON[2681]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 13:00:01 OtrsSyncUpdate /USR/SBIN/CRON[2683]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl >> /dev/null)
Mar 12 13:02:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 13:10:01 OtrsSyncUpdate /USR/SBIN/CRON[2712]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 13:10:01 OtrsSyncUpdate /USR/SBIN/CRON[2713]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 13:12:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 13:17:01 OtrsSyncUpdate /USR/SBIN/CRON[2730]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Mar 12 13:20:01 OtrsSyncUpdate /USR/SBIN/CRON[2736]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Mar 12 13:20:01 OtrsSyncUpdate /USR/SBIN/CRON[2737]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl >> /dev/null)
Mar 12 13:20:01 OtrsSyncUpdate /USR/SBIN/CRON[2739]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 13:22:23 OtrsSyncUpdate mpt-statusd: detected non-optimal RAID status
Mar 12 13:30:01 OtrsSyncUpdate /USR/SBIN/CRON[2757]: (otrs) CMD ($HOME/bin/otrs.PostMasterMailbox.pl >> /dev/null)
Mar 12 13:30:01 OtrsSyncUpdate /USR/SBIN/CRON[2758]: (otrs) CMD ($HOME/bin/otrs.GenericAgent.pl -c db >> /dev/null)
Was ich nicht ganz verstehe ist weshalb in der Syslog steht "Package already installed, try upgrade!" ich bekomme jedoch beim direkten abrufen der Module keines angezeigt:

Code: Select all

root@otrs-Testserver:/opt/otrs/bin# perl otrs.PackageManager.pl -a list
+----------------------------------------------------------------------------+
root@otrs-Testserver:/opt/otrs/bin#
Bekomme das Update auf OTRS-4.0.5 nicht zum laufen :(
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

So, der gefühlte 20. Versuch:

Jedesmal beim anwenden des

cat scripts/DBUpdate-to-4.mysql.sql | mysql -p -f -u root otrs :

Code: Select all

INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
INFO: Foreign key constraint FK_ticket_history_valid_id_id does not exist, skipping.
ERROR 1050 (42S01) at line 38: Table 'personal_services' already exists
ERROR 1050 (42S01) at line 51: Table 'system_maintenance' already exists
ERROR 1005 (HY000) at line 66: Can't create table 'otrs_update.#sql-6dc_360aa' (errno: 121)
ERROR 1005 (HY000) at line 67: Can't create table 'otrs_update.#sql-6dc_360aa' (errno: 121)
ERROR 1005 (HY000) at line 68: Can't create table 'otrs_update.#sql-6dc_360aa' (errno: 121)
ERROR 1005 (HY000) at line 69: Can't create table 'otrs_update.#sql-6dc_360aa' (errno: 121)
ERROR 1005 (HY000) at line 70: Can't create table 'otrs_update.#sql-6dc_360aa' (errno: 121)
Wenn ich das Update dann mit dem DBUpdate-to-4-pl weiterführe bekomme ich zwar nur


Code: Select all

Migration started...

Step 1 of 15: Refresh configuration cache...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Step 2 of 15: Check framework version... [Wed Mar 18 11:51:23 2015] DBUpdate-to-4.pl: Subroutine Load redefined at /opt/otrs/Kernel/Config/Files/ZZZAuto.pm line 7.
done.

Step 3 of 15: Migrate FontAwesome icons... done.

Step 4 of 15: Migrate ProcessManagement EntityIDs...
There are process parts that are not yet deployed, automatic deployment is not possible, please review all processes and deploy then manually

There are ACLs that are not yet deployed, automatic deployment is not possible, please review all ACLs and deploy them manually!
done.

Step 5 of 15: Migrate ProcessManagement Dynamic Field Types... done.

Step 6 of 15: Migrate ACLs stored in the DB... done.

Step 7 of 15: Set service notifications... done.

Step 8 of 15: Migrate Settings... done.

Step 9 of 15: Uninstall Merged Feature Add-Ons... done.

Step 10 of 15: Migrate SysConfig settings from DT to Template::Toolkit... done.

Step 11 of 15: Migrate Dynamic Field links from DT to Template::Toolkit... done.

Step 12 of 15: Migrate Generic Agent Process Management Dynamic Fields ... done.

Step 13 of 15: Migrate Notification (Event) Process Management Dynamic Fields ... done.

Step 14 of 15: Clean up the cache... done.

Step 15 of 15: Refresh configuration cache another time...
If you see warnings about 'Subroutine Load redefined', that's fine, no need to worry!
done.

Migration completed!
Nach Neustart von Apache und Co gibts beim Login:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at Stuff@me.moc to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.
Und im Log erneut, wie immer wie schon tausend mal vorher:

Code: Select all

[Wed Mar 18 11:52:34.300532 2015] [:error] [pid 2048] Malformed UTF-8 character (fatal) at /opt/otrs//Kernel/System/DB/mysql.pm line 114.\n
Tschaefer
Znuny newbie
Posts: 8
Joined: 02 Feb 2015, 11:55
Znuny Version: 3.3.3

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Tschaefer »

Das Problem lässt sich scheinbar nicht lösen, es ist immer noch unklar warum der Fehler auftritt.

Da es ja keinen offiziellen Support gibt:


Falls jemand semi-Professionellen Support für die Community Edition anbietet, könnte man ggf. eine Übereinkunft treffen.
Bitte per PM anschreiben, danke
Stoanze
Znuny newbie
Posts: 62
Joined: 15 Jan 2014, 10:53
Znuny Version: 3.3.10
Real Name: Stefan Steinhauser
Company: HERMOS AG
Location: Altötting - Bayern

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Stoanze »

Ich habe das Update aktuell auf einem Testsystem durch, jedoch kann ich keine genaue Angaben zur Lösung oder Ursache des MySQL Fehlers geben. Bei :?
Grüße Stoanze

Produktiv: OTRS: 3.3.x
OS: Linux Debian
Apache + MySQL
Feature Add-On: TicketWatchlist & TicketWorkflow
Module: FAQ, iPhoneHandle, Support & MasterSlave
Testing: OTRS: 3.3.x
_________________________________________________________
OTRS 3.2.x
OS: Windows
IIS7 + MS-SQL
Isotop7
Znuny newbie
Posts: 1
Joined: 08 Feb 2016, 08:30
Znuny Version: 4.0.15

Re: MySQL Fehler beim Update 3.3.3 auf 4.0.5

Post by Isotop7 »

Hallo zusammen,

zunächst einmal Entschuldigung wenn ich den Thread von den Toten auferwecke aber ich hatte am Wochenende das selbe Problem und hoffe, dass ich hier noch jemandem weiterhelfen kann.

Ich hatte ebenso einen Fehler 500 nach dem Update von 3.1.1 auf 4.0.15 nach dem LDAP-Login.

Ich konnte den Fehler auf die Tabelle "user_preferences" zurückführen. Mit migriertem Inhalt aus dem alten System trat der Fehler auf, leerte ich die Tabelle war alles gut.
Die Spalte "preferences_value" wurde von nchar auf longblob geändert und da hat es anscheinend die Konvertierung zerhauen.

Zur Info:

Altsystem:
Windows Server 2008 R2
OTRS 3.1.1
Strawberry Perl
Apache2
MSSQL

Neues System:
Ubuntu Server 14.04
OTRS 4.0.15
Apache2 mit mod_perl
MySQL


Ich hoffe, dass ich jemandem helfen konnte!

Gruß,
Isotop7
Post Reply