[Gelöst] Konfigurationsprobleme Apache2 nach Upgrade

Debian macht sich hervorragend als Web- und Mailserver. Schau auch in den " Tipps und Tricks"-Bereich.
Antworten
thomas91
Beiträge: 40
Registriert: 05.04.2012 12:08:53

[Gelöst] Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von thomas91 » 29.04.2019 13:13:39

Hallo zusammen,

ich habe die Tage von Debian 7 ein Upgrade über die Version 8 auf 9 durchgeführt. Auf der Maschine läuft nur das Ticketsystem OTRS, welches nicht per Browser erreichbar ist.
Internal Server Error

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

Please contact the server administrator at webmaster@localhost 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.
Ich habe schon versucht dem Problem auf die Sprünge zu kommen habe jedoch alles nur schlimmer gemacht :facepalm:

Code: Alles auswählen

root@OTRS01:/etc/apache2/sites-available# /etc/init.d/apache2 start
[....] Starting apache2 (via systemctl): apache2.serviceJob for apache2.service failed because the control process exited with error code.
See "systemctl status apache2.service" and "journalctl -xe" for details.
 failed!

Code: Alles auswählen

root@OTRS01:/etc/apache2/sites-available# systemctl status apache2.service
● apache2.service - The Apache HTTP Server
   Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2019-04-29 13:09:53 CEST; 5s ago
  Process: 27687 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
  Process: 9250 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=0/SUCCESS)
  Process: 9691 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
 Main PID: 22078 (code=exited, status=0/SUCCESS)

Apr 29 13:09:53 OTRS01 systemd[1]: Starting The Apache HTTP Server...
Apr 29 13:09:53 OTRS01 apachectl[9691]: AH00526: Syntax error on line 3 of /etc/apache2/sites-enabled/000-default.conf:
Apr 29 13:09:53 OTRS01 apachectl[9691]: Invalid command '----', perhaps misspelled or defined by a module not included in the server configuration
Apr 29 13:09:53 OTRS01 apachectl[9691]: Action 'start' failed.
Apr 29 13:09:53 OTRS01 apachectl[9691]: The Apache error log may have more information.
Apr 29 13:09:53 OTRS01 systemd[1]: apache2.service: Control process exited, code=exited status=1
Apr 29 13:09:53 OTRS01 systemd[1]: Failed to start The Apache HTTP Server.
Apr 29 13:09:53 OTRS01 systemd[1]: apache2.service: Unit entered failed state.
Apr 29 13:09:53 OTRS01 systemd[1]: apache2.service: Failed with result 'exit-code'.
000-default.conf:

Code: Alles auswählen

<VirtualHost *:80>

---- END SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com

        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html

        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
</VirtualHost>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
Ich brauche eure Hilfe :hail:
Zuletzt geändert von thomas91 am 07.05.2019 14:12:03, insgesamt 1-mal geändert.

uname
Beiträge: 12072
Registriert: 03.06.2008 09:33:02

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von uname » 29.04.2019 13:20:44

Die folgenden Zeilen haben in der Konfiguration nichts zu suchen. Genauer gesagt hat SSH nichts mit HTTP bzw. TLS/SSL zu tun.

Code: Alles auswählen

---- END SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
Hast du eine Sicherheitskopie deiner Konfigurationen? Vergleiche die Dateien mal.

thomas91
Beiträge: 40
Registriert: 05.04.2012 12:08:53

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von thomas91 » 29.04.2019 13:32:46

uname hat geschrieben: ↑ zum Beitrag ↑
29.04.2019 13:20:44
Die folgenden Zeilen haben in der Konfiguration nichts zu suchen. Genauer gesagt hat SSH nichts mit HTTP bzw. TLS/SSL zu tun.

Code: Alles auswählen

---- END SSH2 PUBLIC KEY ----
---- END SSH2 PUBLIC KEY ----
Hast du eine Sicherheitskopie deiner Konfigurationen? Vergleiche die Dateien mal.
Leider keine Sicherheitskopie :cry:

Edit:
Ohne die zwei Zeilen startet der Apache2 schon mal :) Leider funktioniert die Seite immer noch nicht

uname
Beiträge: 12072
Registriert: 03.06.2008 09:33:02

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von uname » 29.04.2019 13:37:43

Aktualisiere deine Fehlermeldungen.

thomas91
Beiträge: 40
Registriert: 05.04.2012 12:08:53

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von thomas91 » 29.04.2019 13:44:22

thomas91 hat geschrieben: ↑ zum Beitrag ↑
29.04.2019 13:13:39
Internal Server Error

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

Please contact the server administrator at webmaster@localhost 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.
Das ist noch aktuell. Welche Logs wäre noch interessant? Ich bin leider nicht so gut mit Linux und Apache2.

uname
Beiträge: 12072
Registriert: 03.06.2008 09:33:02

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von uname » 29.04.2019 13:58:52

Hat sich an den obigen Einträgen was geändert?
Auch kannst du mal in /var/log/apache2 schauen und interessante Auszüge posten.

thomas91
Beiträge: 40
Registriert: 05.04.2012 12:08:53

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von thomas91 » 29.04.2019 14:53:57

uname hat geschrieben: ↑ zum Beitrag ↑
29.04.2019 13:58:52
Hat sich an den obigen Einträgen was geändert?
Auch kannst du mal in /var/log/apache2 schauen und interessante Auszüge posten.
Im Access.log sind nur Einträge vom Monitoring.

Error.log

Code: Alles auswählen

[Mon Apr 29 08:08:09.791564 2019] [mpm_prefork:notice] [pid 19331] AH00163: Apache/2.4.25 (Debian) mod_perl/2.0.10 Perl/v5.24.1 configured -- resuming normal operations
[Mon Apr 29 08:08:09.791705 2019] [core:notice] [pid 19331] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 29 08:08:09.797255 2019] [:error] [pid 19355] avahi_entry_group_add_service_strlst("OTRS01") failed: Invalid host name
[Mon Apr 29 08:08:16.086337 2019] [log_config:warn] [pid 19360] (28)No space left on device: [client IP..188:53450] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:08:16.496969 2019] [:error] [pid 19356] mkdir /opt/otrs/var/tmp/CacheFileStorable/TicketSearch/5: No space left on device at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.\n
[Mon Apr 29 08:08:16.497243 2019] [log_config:warn] [pid 19356] (28)No space left on device: [client IP..98:51810] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:08:46.074055 2019] [authz_core:error] [pid 19358] [client IP..188:53614] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 08:08:46.469720 2019] [log_config:warn] [pid 19358] (28)No space left on device: [client IP..188:53614] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:09:06.101669 2019] [authz_core:error] [pid 19357] [client IP..188:53758] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 08:09:09.831022 2019] [core:warn] [pid 19331] AH00045: child process 19357 still did not exit, sending a SIGTERM
[Mon Apr 29 08:09:11.833127 2019] [core:warn] [pid 19331] AH00045: child process 19357 still did not exit, sending a SIGTERM
[Mon Apr 29 08:09:13.835012 2019] [core:warn] [pid 19331] AH00045: child process 19357 still did not exit, sending a SIGTERM
[Mon Apr 29 08:09:15.837090 2019] [core:error] [pid 19331] AH00046: child process 19357 still did not exit, sending a SIGKILL
[Mon Apr 29 08:09:16.838033 2019] [mpm_prefork:notice] [pid 19331] AH00169: caught SIGTERM, shutting down
[Mon Apr 29 08:09:17.258231 2019] [mpm_prefork:notice] [pid 22078] AH00163: Apache/2.4.25 (Debian) mod_perl/2.0.10 Perl/v5.24.1 configured -- resuming normal operations
[Mon Apr 29 08:09:17.258364 2019] [core:notice] [pid 22078] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 29 08:09:17.273142 2019] [:error] [pid 22101] avahi_entry_group_add_service_strlst("OTRS01") failed: Invalid host name
[Mon Apr 29 08:09:17.396120 2019] [log_config:warn] [pid 22105] (28)No space left on device: [client IP..188:53822] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:09:17.400088 2019] [authz_core:error] [pid 22103] [client IP..188:53823] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 08:09:18.038791 2019] [log_config:warn] [pid 22103] (28)No space left on device: [client IP..188:53823] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:09:19.516881 2019] [:error] [pid 22104] mkdir /opt/otrs/var/tmp/CacheFileStorable/TicketSearch/5: No space left on device at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.\n
[Mon Apr 29 08:09:19.517151 2019] [log_config:warn] [pid 22104] (28)No space left on device: [client IP..98:51882] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:09:46.102116 2019] [authz_core:error] [pid 22106] [client IP..188:53981] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 08:09:46.543615 2019] [log_config:warn] [pid 22106] (28)No space left on device: [client IP..188:53981] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 08:10:06.094680 2019] [authz_core:error] [pid 22105] [client IP..188:54128] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 08:10:06.587588 2019] [log_config:warn] [pid 22105] (28)No space left on device: [clie[Mon Apr 29 11:57:51.338128 2019] [mpm_prefork:notice] [pid 22078] AH00169: caught SIGTERM, shutting down
[Mon Apr 29 13:33:17.421890 2019] [mpm_prefork:notice] [pid 1928] AH00163: Apache/2.4.25 (Debian) mod_perl/2.0.10 Perl/v5.24.1 configured -- resuming normal operations
[Mon Apr 29 13:33:17.422047 2019] [core:notice] [pid 1928] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 29 13:33:17.424794 2019] [log_config:warn] [pid 1960] (28)No space left on device: [client IP..188:64939] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:33:17.440242 2019] [:error] [pid 1957] avahi_entry_group_add_service_strlst("OTRS01") failed: Invalid host name
[Mon Apr 29 13:33:46.307850 2019] [authz_core:error] [pid 1959] [client IP..188:65110] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 13:33:46.740234 2019] [log_config:warn] [pid 1959] (28)No space left on device: [client IP..188:65110] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:01.717139 2019] [:error] [pid 1961] mkdir /opt/otrs/var/tmp/CacheFileStorable/TicketSearch/5: No space left on device at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.\n
[Mon Apr 29 13:34:01.717399 2019] [log_config:warn] [pid 1961] (28)No space left on device: [client IP..98:61432] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:01.795195 2019] [log_config:warn] [pid 1962] (28)No space left on device: [client IP..98:61439] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:05.257067 2019] [:error] [pid 1958] mkdir /opt/otrs/var/tmp/CacheFileStorable/TicketSearch/5: No space left on device at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.\n
[Mon Apr 29 13:34:05.257322 2019] [log_config:warn] [pid 1958] (28)No space left on device: [client IP..98:61440] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:06.307610 2019] [authz_core:error] [pid 1960] [client IP..188:65255] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 13:34:06.805699 2019] [log_config:warn] [pid 1960] (28)No space left on device: [client IP..188:65255] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:16.301873 2019] [log_config:warn] [pid 3194] (28)No space left on device: [client IP..188:65323] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:34:46.307947 2019] [authz_core:error] [pid 1959] [client IP..188:65503] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 13:34:46.488064 2019] [log_config:warn] [pid 1959] (28)No space left on device: [client IP..188:65503] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:35:06.310082 2019] [authz_core:error] [pid 1961] [client IP..188:49270] AH01630: client denied by server configuration: /var/www/html/server-status
[Mon Apr 29 13:35:06.504533 2019] [log_config:warn] [pid 1961] (28)No space left on device: [client IP..188:49270] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:35:14.374623 2019] [mpm_prefork:notice] [pid 1928] AH00169: caught SIGTERM, shutting down
[Mon Apr 29 13:35:14.791156 2019] [mpm_prefork:notice] [pid 6761] AH00163: Apache/2.4.25 (Debian) mod_perl/2.0.10 Perl/v5.24.1 configured -- resuming normal operations
[Mon Apr 29 13:35:14.791280 2019] [core:notice] [pid 6761] AH00094: Command line: '/usr/sbin/apache2'
[Mon Apr 29 13:35:14.791582 2019] [:error] [pid 6780] avahi_entry_group_add_service_strlst("OTRS01") failed: Invalid host name
[Mon Apr 29 13:35:16.308081 2019] [log_config:warn] [pid 6781] (28)No space left on device: [client IP..188:49333] AH00646: Error writing to /var/log/apache2/access.log
[Mon Apr 29 13:35:20.961266 2019] [:error] [pid 6782] mkdir /opt/otrs/var/tmp/CacheFileStorable/TicketSearch/5: No space left on device at /opt/otrs/Kernel/System/Cache/FileStorable.pm line 87.\n
IP.98 wäre der Zugriff von mir.

Code: Alles auswählen

df -h
Dateisystem    Größe Benutzt Verf. Verw% Eingehängt auf
udev             10M       0   10M    0% /dev
tmpfs           403M     42M  361M   11% /run
/dev/sda1        38G     36G     0  100% /
tmpfs          1006M    164K 1005M    1% /dev/shm
tmpfs           5,0M       0  5,0M    0% /run/lock
tmpfs          1006M       0 1006M    0% /sys/fs/cgroup
tmpfs           202M     16K  201M    1% /run/user/106
tmpfs           202M       0  202M    0% /run/user/0

getphp
Beiträge: 80
Registriert: 14.01.2006 15:23:28

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von getphp » 29.04.2019 15:19:17

Wenn deine Festplatte voll ist, laufen Dienste halt nicht mehr so, wie erwartet ;-)
Gruss
getphp

uname
Beiträge: 12072
Registriert: 03.06.2008 09:33:02

Re: Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von uname » 29.04.2019 15:29:28

Eine volle Partition ist ein beliebter Fehler. Da habe ich früher auch schon mal lange gesucht.

Räum mal auf. Lösche z. B. gedownloadete DEB-Pakete:

Code: Alles auswählen

apt-get clean
Am besten kannst du mal nach ganz großen Dateien suchen. Ich nutze dafür gerne Debianncdu. Erst installieren, wenn wieder etwas Platz ist ;-)

thomas91
Beiträge: 40
Registriert: 05.04.2012 12:08:53

Re: [Gelöst] Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von thomas91 » 07.05.2019 14:13:20

Hey,
apt-get clean
hat leider nicht den gewünschten Erfolg gebracht. Festplatte wurde erweitert jetzt geht wieder alles. Vielen Dank für euere Hilfe :THX:

uname
Beiträge: 12072
Registriert: 03.06.2008 09:33:02

Re: [Gelöst] Konfigurationsprobleme Apache2 nach Upgrade

Beitrag von uname » 07.05.2019 16:08:45

Probiere mal Debianncdu aus und gehe durch die Verzeichnisse. Dauert 5 Minuten.

Antworten