Installationprobleme unter CentOS

Hilfe zu OTRS Problemen aller Art
Post Reply
netfox
Znuny newbie
Posts: 8
Joined: 21 Oct 2015, 15:14
Znuny Version: 4.0.13

Installationprobleme unter CentOS

Post by netfox »

Hallo zusammen,
im Zuge der neuen OTRS Version 5 sind wir dabei einen neuen Server unter CentOS 7.0-1406-x86_64 aufzusetzen.
Es wurde nach der Anleitung von OTRS vorgegangen, doch leider haben wir Probleme beim Starten des Dienstes.

Beim Prüfen der Module haben wir das gefunden:

Code: Select all

[root@localhost otrs]# perl /opt/otrs/bin/otrs.CheckModules.pl
  o Apache::DBI......................ok (v1.12)
  o Apache2::Reload..................FAILED! Not all prerequisites for this module correctly installed.
  o Archive::Tar.....................ok (v1.92)
  o Archive::Zip.....................ok (v1.30)
  o Crypt::Eksblowfish::Bcrypt.......Not installed! Use: 'yum install "perl(Crypt::Eksblowfish::Bcrypt)"' (optional - For strong password hashing.)
  o Crypt::SSLeay....................ok (v0.64)
  o Date::Format.....................ok (v2.24)
  o DBI..............................ok (v1.627)
  o DBD::mysql.......................ok (v4.023)
  o DBD::ODBC........................Not installed! (optional - Required to connect to a MS-SQL database.)
  o DBD::Oracle......................Not installed! (optional - Required to connect to a Oracle database.)
  o DBD::Pg..........................Not installed! Use: 'yum install "perl(DBD::Pg)"' (optional - Required to connect to a PostgreSQL database.)
  o Encode::HanExtra.................Not installed! Use: 'yum install "perl(Encode::HanExtra)"' (optional - Required to handle mails with several Chinese character sets.)
  o IO::Socket::SSL..................ok (v1.94)
  o JSON::XS.........................Not installed! Use: 'yum install "perl(JSON::XS)"' (optional - Recommended for faster AJAX/JavaScript handling.)
  o List::Util::XS...................ok (v1.27)
  o LWP::UserAgent...................ok (v6.13)
  o Mail::IMAPClient.................Not installed! Use: 'yum install "perl(Mail::IMAPClient)"' (optional - Required for IMAP TLS connections.)
    o IO::Socket::SSL................ok (v1.94)
  o ModPerl::Util....................Not installed! Use: 'yum install "perl(ModPerl::Util)"' (optional - Improves Performance on Apache webservers dramatically.)
  o Net::DNS.........................ok (v0.72)
  o Net::LDAP........................ok (v0.56)
  o Template.........................ok (v2.24)
  o Template::Stash::XS..............ok (undef)
  o Text::CSV_XS.....................ok (v1.00)
  o Time::HiRes......................ok (v1.9725)
  o Time::Piece......................ok (v1.20_01)
  o XML::LibXML......................ok (v2.0018)
  o XML::LibXSLT.....................ok (v1.80)
  o XML::Parser......................ok (v2.41)
  o YAML::XS.........................Not installed! Use: 'yum install "perl(YAML::XS)"' (required - Very important)
Nun weiß ich dennoch nicht diese Probleme zu lösen, da weder YAML sich installieren lässt:

Code: Select all

[root@localhost otrs]# yum install "perl(YAML::XS)"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: epel.besthosting.ua
 * extras: artfiles.org
 * updates: artfiles.org
Resolving Dependencies
--> Running transaction check
---> Package perl-YAML-LibYAML.x86_64 0:0.38-5.el6 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-YAML-LibYAML-0.38-5.el6.x86_64
--> Finished Dependency Resolution
Error: Package: perl-YAML-LibYAML-0.38-5.el6.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
Auch Apache2:Reload ist nicht verfügbar:

Code: Select all

[root@localhost otrs]# yum install "perl(Apache2::Reload)"
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: epel.besthosting.ua
 * extras: artfiles.org
 * updates: artfiles.org
No package perl(Apache2::Reload) available.
Error: Nothing to do
Folglich fliegen auch im httpd error Log folgende Meldungen:

Code: Select all

[Wed Oct 21 16:53:19.983993 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215: ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Wed Oct 21 16:53:19 2015
[Wed Oct 21 16:53:19.984042 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:
[Wed Oct 21 16:53:19.984068 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:  Message: Can't create directory '/opt/otrs/var/tmp/CacheFileStorable':
[Wed Oct 21 16:53:19.984071 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:
[Wed Oct 21 16:53:19.984082 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:  RemoteAddress: 192.168.1.163
[Wed Oct 21 16:53:19.984093 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:  RequestURI: /otrs/installer.pl
[Wed Oct 21 16:53:19.984096 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:
[Wed Oct 21 16:53:19.984104 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:  Traceback (2553):
[Wed Oct 21 16:53:19.984124 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::Cache::FileStorable::new Line: 46
[Wed Oct 21 16:53:19.984145 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:53:19.984164 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:53:19.984180 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::Cache::new Line: 63
[Wed Oct 21 16:53:19.984222 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:53:19.984242 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:53:19.984261 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::SysConfig::_Init Line: 1643
[Wed Oct 21 16:53:19.984278 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::SysConfig::new Line: 73
[Wed Oct 21 16:53:19.984300 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:53:19.984318 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:53:19.984336 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::Modules::Installer::Run Line: 148
[Wed Oct 21 16:53:19.984358 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: Kernel::System::Web::InterfaceInstaller::Run Line: 126
[Wed Oct 21 16:53:19.984376 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:    Module: /opt/otrs/bin/cgi-bin/installer.pl Line: 39
[Wed Oct 21 16:53:19.984379 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215:
[Wed Oct 21 16:53:19.984428 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] AH01215: mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs/bin/cgi-bin/../../Kernel/System/Cache/FileStorable.pm line 87.
[Wed Oct 21 16:53:19.990537 2015] [cgi:error] [pid 2547] [client 192.168.1.163:52235] End of script output before headers: installer.pl
[Wed Oct 21 16:55:31.400689 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215: ERROR: OTRS-CGI-10 Perl: 5.16.3 OS: linux Time: Wed Oct 21 16:55:31 2015
[Wed Oct 21 16:55:31.400744 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:
[Wed Oct 21 16:55:31.400784 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:  Message: Can't create directory '/opt/otrs/var/tmp/CacheFileStorable':
[Wed Oct 21 16:55:31.400789 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:
[Wed Oct 21 16:55:31.400805 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:  RemoteAddress: 192.168.1.163
[Wed Oct 21 16:55:31.400823 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:  RequestURI: /otrs/installer.pl
[Wed Oct 21 16:55:31.400827 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:
[Wed Oct 21 16:55:31.400838 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:  Traceback (2626):
[Wed Oct 21 16:55:31.400867 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::Cache::FileStorable::new Line: 46
[Wed Oct 21 16:55:31.400897 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:55:31.400925 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:55:31.400994 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::Cache::new Line: 63
[Wed Oct 21 16:55:31.401031 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:55:31.401061 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:55:31.401089 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::SysConfig::_Init Line: 1643
[Wed Oct 21 16:55:31.401115 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::SysConfig::new Line: 73
[Wed Oct 21 16:55:31.401163 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::_ObjectBuild Line: 226
[Wed Oct 21 16:55:31.401192 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::ObjectManager::Get Line: 180
[Wed Oct 21 16:55:31.401219 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::Modules::Installer::Run Line: 148
[Wed Oct 21 16:55:31.401252 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: Kernel::System::Web::InterfaceInstaller::Run Line: 126
[Wed Oct 21 16:55:31.401280 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:    Module: /opt/otrs/bin/cgi-bin/installer.pl Line: 39
[Wed Oct 21 16:55:31.401285 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215:
[Wed Oct 21 16:55:31.401351 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] AH01215: mkdir /opt/otrs/var/tmp/CacheFileStorable: Permission denied at /opt/otrs/bin/cgi-bin/../../Kernel/System/Cache/FileStorable.pm line 87.
[Wed Oct 21 16:55:31.411513 2015] [cgi:error] [pid 2551] [client 192.168.1.163:52240] End of script output before headers: installer.pl
Den Befehl "bin/otrs.SetPermissions.pl --web-group=apache" habe ich natürlich ausgeführt.

So was kann ich nun tun?

Vielen lieben Dank
RStraub
Znuny guru
Posts: 2210
Joined: 13 Mar 2014, 09:16
Znuny Version: 6.0.14
Real Name: Rolf Straub

Re: Installationprobleme unter CentOS

Post by RStraub »

Aus diesem Post:
viewtopic.php?t=19013

Probier's mal mit:
yum install perl-YAML-LibYAML

Für den Apache probier's mal mit:
yum install perl-Apache2-Reload
Currently using: OTRS 6.0.14 -- MariaDB -- Ubuntu 16 LTS
netfox
Znuny newbie
Posts: 8
Joined: 21 Oct 2015, 15:14
Znuny Version: 4.0.13

Re: Installationprobleme unter CentOS

Post by netfox »

Leider nicht, auch schon vorher probiert.

Code: Select all

[root@localhost ~]# yum install perl-YAML-LibYAML
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: epel.besthosting.ua
 * extras: artfiles.org
 * updates: artfiles.org
Resolving Dependencies
--> Running transaction check
---> Package perl-YAML-LibYAML.x86_64 0:0.38-5.el6 will be installed
--> Processing Dependency: perl(:MODULE_COMPAT_5.10.1) for package: perl-YAML-LibYAML-0.38-5.el6.x86_64
--> Finished Dependency Resolution
Error: Package: perl-YAML-LibYAML-0.38-5.el6.x86_64 (epel)
           Requires: perl(:MODULE_COMPAT_5.10.1)
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
 
[root@localhost ~]# yum install perl-Apache2-Reload
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
 * epel: epel.besthosting.ua
 * extras: artfiles.org
 * updates: artfiles.org
No package perl-Apache2-Reload available.
Error: Nothing to do
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Installationprobleme unter CentOS

Post by wurzel »

Hi,

Du brauchst die richtigen Repositories (EPEL?) und/oder CPAN.
Die CPAN Bibliothek funktioniert immer, installiert aber unter Umständen in die falschen Pfade. Da musst Du drauf achten, dass die nicht in /root/perl... oder so installiert werden.

Dann musst Du SELINUX auch abschalten.

mit den richtigen Perl Modulen solltest Du in der Lage sein, das rpm zu installieren, welches einwandfrei funktioniert. (setzt auch die Filepermissions + user + apache config und so weiter)

CentOS (+RHEL) sind die - für mich - kniffligsten Distributionen für die Perl Module. (Ich spreche nicht von Fedora oder Gentoo - wo ich keine Ahnung habe)

viele Grüße
Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Installationprobleme unter CentOS

Post by wurzel »

Hi,

hier ist z.b. ein guter Artikel von Michiel Beijen der die Grundlagen ganz gut beschreibt.
https://huntingbears.nl/2014/12/11/how- ... -centos-7/

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
wurzel
Znuny guru
Posts: 3232
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Installationprobleme unter CentOS

Post by wurzel »

Hi,

Ah, und noch was, die Dokumentation ist - soweit ich weiß - nicht auf dem aktuellsten Stand. Falls ihr da Fehler findet oder irgendwas fehlendes, hilft es der Community natürlich, wenn wir alle die Doku korrigieren. :)

Flo
OTRS 8 SILVER (Prod)
OTRS 8 auf Debian 11 (Test)
Znuny 7.x latest version testing auf Debian 11

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
netfox
Znuny newbie
Posts: 8
Joined: 21 Oct 2015, 15:14
Znuny Version: 4.0.13

Re: Installationprobleme unter CentOS

Post by netfox »

wurzel wrote: Dann musst Du SELINUX auch abschalten.
Gut, das hat mal geholfen um OTRS zu starten. Dennoch sind die Probleme mit den Modulen weiterhin vorhanden.
netfox
Znuny newbie
Posts: 8
Joined: 21 Oct 2015, 15:14
Znuny Version: 4.0.13

Re: Installationprobleme unter CentOS

Post by netfox »

wurzel wrote:Hi,
Du brauchst die richtigen Repositories (EPEL?) und/oder CPAN.
Die CPAN Bibliothek funktioniert immer, installiert aber unter Umständen in die falschen Pfade. Da musst Du drauf achten, dass die nicht in /root/perl... oder so installiert werden.
Wie prüfe ich welche EPEL verwende? Also mein Root Verzeichnis ist leer und CPAN liegt unter /usr/bin/.
Sollte ich auf eine andere Version wechseln?
Rooobaaat
Znuny wizard
Posts: 432
Joined: 11 Sep 2014, 16:28
Znuny Version: OTRS 5.0.x

Re: Installationprobleme unter CentOS

Post by Rooobaaat »

Mit yum repolist.

Aber das kannst du dir sparen, da auf deinem System das EPEL Repository konfiguriert ist.
Siehe:

Code: Select all

Loading mirror speeds from cached hostfile
 * base: centos.copahost.com
[b] * epel: epel.besthosting.ua[/b]
Such doch mal über yum nach allen perl Paketen... z.B. mit

Code: Select all

yum search perl-
Für mod_perl Installation versuche mal folgendes:

Code: Select all

yum install mod_perl
Für die weiteren Module sollte das hier helfen:

Code: Select all

perl-Crypt-Eksblowfish
	perl-Encode-HanExtra
	perl-JSON-XS
        perl-Mail-IMAPClient
        perl-YAML-LibYAML
EDIT:
Was mir gerade noch aufgefallen ist.... Wenn du nen CentOS7 hast, solltest du auch das EPEL Repo für CentOS7 verwenden und nicht das für CentOS6 ;)

Das machst du wie folgt:

wget http://dl.fedoraproject.org/pub/epel/7/ ... noarch.rpm
rpm -ivh epel-release-7-5.noarch.rpm
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
Post Reply