Hauptmenü

Problem bei Updateinstallation, 2017.1 -> 2017.2

Begonnen von christian, 17.11.2017 11:38:49

⏪ vorheriges - nächstes ⏩

christian

Hallo zusammen,

ich glaube ich habe etwas "Mist" gebaut ;)

Beim Update einer CentOS Maschine mit installiertem Kix 2017.1 habe ich ein "yum update" durchgeführt.
Nach dem Systemneustart erscheint beim Aufruf der KIX URL nur noch "500 Internal Server Error".

Hier ein Auszug aus der error_log (Apache)

[Fri Nov 17 10:24:35.639050 2017] [perl:error] [pid 17433] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:24:35.639341 2017] [perl:error] [pid 17433] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:27:09.654451 2017] [perl:error] [pid 1074] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:27:09.657637 2017] [perl:error] [pid 1074] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:33:50.805877 2017] [perl:error] [pid 1064] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:33:50.808378 2017] [perl:error] [pid 1064] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:37:38.089298 2017] [perl:error] [pid 1492] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:37:38.089425 2017] [perl:error] [pid 1492] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:40:24.642141 2017] [perl:error] [pid 1724] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:40:24.642263 2017] [perl:error] [pid 1724] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:42:03.625887 2017] [perl:error] [pid 1739] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:42:03.626045 2017] [perl:error] [pid 1739] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...
[Fri Nov 17 10:42:15.446503 2017] [perl:error] [pid 1745] Can't locate Apache/DBI.pm in @INC (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nBEGIN failed--compilation aborted at /opt/kix/scripts/apache2-perl-startup.pl line 44.\nCompilation failed in require at (eval 2) line 1.\n
[Fri Nov 17 10:42:15.446648 2017] [perl:error] [pid 1745] Can't load Perl file: /opt/kix/scripts/apache2-perl-startup.pl for server OITERFVLAS02.:0, exiting...

Nach manueller (Neu)-Installation von Apache::DBI sieht das Log dann so aus:

[Fri Nov 17 10:50:12.863240 2017] [suexec:notice] [pid 4827] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Nov 17 10:50:13.142628 2017] [auth_digest:notice] [pid 4827] AH01757: generating secret for digest authentication ...
[Fri Nov 17 10:50:13.143373 2017] [lbmethod_heartbeat:notice] [pid 4827] AH02282: No slotmem from mod_heartmonitor
[Fri Nov 17 10:50:13.148412 2017] [mpm_prefork:notice] [pid 4827] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_perl/2.0.10 Perl/v5.16.3 configured -- resuming normal operations
[Fri Nov 17 10:50:13.148437 2017] [core:notice] [pid 4827] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Nov 17 10:51:24.655047 2017] [mpm_prefork:notice] [pid 4827] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Nov 17 10:52:06.097656 2017] [suexec:notice] [pid 1060] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Nov 17 10:52:06.265230 2017] [auth_digest:notice] [pid 1060] AH01757: generating secret for digest authentication ...
[Fri Nov 17 10:52:06.266032 2017] [lbmethod_heartbeat:notice] [pid 1060] AH02282: No slotmem from mod_heartmonitor
[Fri Nov 17 10:52:06.271337 2017] [mpm_prefork:notice] [pid 1060] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_perl/2.0.10 Perl/v5.16.3 configured -- resuming normal operations
[Fri Nov 17 10:52:06.271371 2017] [core:notice] [pid 1060] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Fri Nov 17 10:58:15.178687 2017] [mpm_prefork:notice] [pid 1060] AH00170: caught SIGWINCH, shutting down gracefully
[Fri Nov 17 10:58:31.281080 2017] [suexec:notice] [pid 1058] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Fri Nov 17 10:58:31.475153 2017] [auth_digest:notice] [pid 1058] AH01757: generating secret for digest authentication ...
[Fri Nov 17 10:58:31.475925 2017] [lbmethod_heartbeat:notice] [pid 1058] AH02282: No slotmem from mod_heartmonitor
[Fri Nov 17 10:58:31.480940 2017] [mpm_prefork:notice] [pid 1058] AH00163: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips mod_perl/2.0.10 Perl/v5.16.3 configured -- resuming normal operations
[Fri Nov 17 10:58:31.480964 2017] [core:notice] [pid 1058] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'

Hier noch ein Auszug aus der ssl_error_log

[Fri Nov 17 10:52:13.253312 2017] [:error] [pid 1316] Can't locate Kernel/System/Web/InterfaceAgent.pm in @INC (@INC contains: /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/bin/cgi-bin/index.pl line 25.\nBEGIN failed--compilation aborted at /opt/kix/bin/cgi-bin/index.pl line 25.\n
[Fri Nov 17 10:52:20.304697 2017] [:error] [pid 1317] Can't locate Kernel/System/Web/InterfaceAgent.pm in @INC (@INC contains: /usr/sbin/../../Custom /usr/sbin/../../Kernel/cpan-lib /usr/sbin/../.. /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 . /etc/httpd) at /opt/kix/bin/cgi-bin/index.pl line 25.\nBEGIN failed--compilation aborted at /opt/kix/bin/cgi-bin/index.pl line 25.\n

Hat jemand eine Idee wie ich das wieder "geradegebogen" bekomme?

Vorab vielen Dank und beste Grüße
Christian








christian

Nachtrag:

nach Prüfung der Logs ist mir aufgefallen, dass dort noch Pfade mit /opt/otrs/ stehen. Diesen Ordner gibt es aber nicht (mehr).

Ich habe jetzt testweise einen Symlink "otrs" für den Ordner "kix17" in /opt angelegt. Nun kann ich mich zumindest wieder an KIX anmelden. Das scheint mir aber nicht die endgültige Lösung zu sein.

baracho

Gibt es denn eine allgemeine "Verfahrensanweisungen" für Versionsupdates?
Klar: erstmal Maschine klonen & dort per 'yum update' testen, dennoch würde ich mich über eine Empfehlung für künftige Updates freuen :).

christian

+1 von mir. Eine "Updateanleitung" o.ä. habe ich nämlich auch nicht gefunden.

baracho


marceladm

Hast du Zusatzpakete installiert die vielleicht reinfunken in das Update? Da könnten dann z.b. alte Pfade drin stehen.Ich habe sehr selten Probleme mit dem Update. Setze zwar ein Debian Server ein aber mit einem einfach aptitude update/upgrade ist das ganze Update durch.
mfg
marceladm

alex88

Bei uns läuft das auch auf Debian und ein Update über den Paket Manager ist problemlos möglich. Bei uns läuft das Debian virtuell auf einem Esxi, kurz gesagt setzte ich vorm Update immer alle mailkonten auf invalid, stelle in kix eine systemwartung ein, lösche alle Sitzungen und erstelle über vmware einen snapshots.


Für den Fall der Fälle ist man dann gleich wieder auf der alten datenbasis


mfg


Alex