Installation von ITSM 6.0.30 schlägt fehl

Hilfe zu OTRS Problemen aller Art
Post Reply
mhlue
Znuny newbie
Posts: 2
Joined: 19 Aug 2021, 08:12
Znuny Version: 6.0.36
Real Name: Samuel Walter
Company: Musikhochschule Lübeck

Installation von ITSM 6.0.30 schlägt fehl

Post by mhlue »

Hallo Zusammen,

unser System ist Cent OS 7 mit MariaDB und aktuell Znuny 6.0.36.

Vor einigen Tagen haben wir von OTRS 6.0.9 auf Znuny 6.0.36 geupdatet. Nun wollten wir erstmalig ITSM in Version 6.0.30 installieren. Vor der Installation haben wir in "/etc/my.cnf" die nachfolgende Zeile ergänzt:

Code: Select all

"max_allowed_Packet = 64M" 
Alle für OTRS benötigten Perl-Packages sind installiert. Für die Installation von ITSM haben wir als user "otrs" folgenden Befehl verwendet:

Code: Select all

bin/otrs.Console.pl Admin::Package::Install https://download.znuny.org/releases/itsm/bundle6/:ITSM-6.0.30.opm
Leider erscheint jedoch folgende Fehlermeldung:

Code: Select all

Notice: Install /opt/otrs/Kernel/Config/Files/XML/FrameworkITSM.xml (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/GeneralCatalog.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ImportExport.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ITSMChangeManagement.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ITSMConfigurationManagement.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ITSMCore.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ITSMIncidentProblemManagement.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM/ITSMServiceLevelManagement.opm (660)!
Notice: Install /opt/otrs/var/packagesetup/ITSM.pm (660)!
[Thu Aug 19 16:03:54 2021] otrs.Console.pl: DBD::mysql::db do failed: MySQL server has gone away at /opt/otrs/Kernel/System/DB.pm line 471.
ERROR: OTRS-otrs.Console.pl-Admin::Package::Install-70 Perl: 5.16.3 OS: linux Time: Thu Aug 19 16:03:54 2021

 Message: MySQL server has gone away, SQL: 'INSERT INTO package_repository (name, version, vendor, filename,  content_type, content, install_status,  create_time, create_by, change_time, change_by) VALUES  (?, ?, ?, ?, 'text/xml', ?, 'not installed',  '2021-08-19 16:03:54', 1, '2021-08-19 16:03:54', 1)'

 Traceback (18532):
   Module: Kernel::System::Package::RepositoryAdd Line: 409
   Module: Kernel::System::Package::PackageInstall Line: 606
   Module: Kernel::System::Console::Command::Admin::Package::Install::Run Line: 109
   Module: (eval) Line: 461
   Module: Kernel::System::Console::BaseCommand::Execute Line: 455
   Module: Kernel::System::Console::InterfaceConsole::Run Line: 81
   Module: bin/otrs.Console.pl Line: 37

Error: Package installation failed.

Was könnte hier das Problem sein? So langsam gehen mir die Ideen aus.

Danke für eure Hilfe!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Installation von ITSM 6.0.30 schlägt fehl

Post by root »

Hallo,

Die /etc/my.cnf ist die zentrale Konfiguration für den MySQL/MariaDB Client.

Trag das mal auch noch in die /etc/my.cnf.d/server.cnf im [mysqld] Abschnitt mit ein. Und restarte den MySQL/MariaDB Dienst.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
mhlue
Znuny newbie
Posts: 2
Joined: 19 Aug 2021, 08:12
Znuny Version: 6.0.36
Real Name: Samuel Walter
Company: Musikhochschule Lübeck

Re: Installation von ITSM 6.0.30 schlägt fehl

Post by mhlue »

Hallo root,

wenn ich das unter "/etc/my.cnf.d/server.cnf" im Bereich [mysqld] eintrage, dann lässt sich MariaDB nicht mehr starten und folgende Meldung erscheint:

Code: Select all

"/usr/libexec/mysqld: unknown variable 'max_allowed_Packet=64" 
Durch Zufall und mit Hilfe des Befehls

Code: Select all

grep -R max_allowed_packet /etc

habe ich herausgefunden, dass OTRS im Verzeichnis "/etc/my.cnf.d/" noch eine eigene Datei Namens "otrs.cnf" hat. Hier war noch folgende Einstellung gesetzt:

Code: Select all

max_allowed_packet=20M
Nachdem ich auch diesen Wert auf "64M" gesetzt hatte, ließ sich ITSM problemlos installieren.

Bitte dieses Thema als gelöst markieren!
Vielen Dank nochmal für deine Unterstützung!
root
Administrator
Posts: 3934
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Installation von ITSM 6.0.30 schlägt fehl

Post by root »

mhlue wrote: 20 Aug 2021, 09:19

Code: Select all

grep -R max_allowed_packet /etc

habe ich herausgefunden, dass OTRS im Verzeichnis "/etc/my.cnf.d/" noch eine eigene Datei Namens "otrs.cnf" hat. Hier war noch folgende Einstellung gesetzt:

Code: Select all

max_allowed_packet=20M
Hallo,

also von OTRS ist die Datei nicht. Zumindest nicht aus dem RPM oder aus einem der Archive.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply