ukl1967
Goto Top

SSL received a record that exceeded the maximum permissible length. Error code: SSL ERROR RX RECORD TOO LONG

Hallo,

ich hatte versucht ein GetSimpleCMS zu installieren und meine apache2.conf editiert. Nachdem die Installation nicht funktionierte entfernte ich sämtliche Änderrungen in der apache2.conf und startete den Aopachen neu.

Seitdem macht er mir die obige SSL Fehlermeldung und bemängelt Zeile 219 in der apache2.conf als Syntax-Error

IncludeOptional sites-enabled/*.conf


Versiche ich Ihn zu starten gibt er unter systemctl status apache2.service

aus:


apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2018-08-19 18:44:11 CEST; 14s ago
Process: 1174 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 1675 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Process: 2326 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 1225 (code=exited, status=0/SUCCESS)

Aug 19 18:44:10 r2.ukleemann.de systemd[1]: Starting The Apache HTTP Server...
Aug 19 18:44:11 r2.ukleemann.de apachectl[2326]: apache2: Syntax error on line 219 of /etc/apache2/ap
Aug 19 18:44:11 r2.ukleemann.de apachectl[2326]: Action 'start' failed.
Aug 19 18:44:11 r2.ukleemann.de apachectl[2326]: The Apache error log may have more information.
Aug 19 18:44:11 r2.ukleemann.de systemd[1]: apache2.service: Control process exited, code=exited stat
Aug 19 18:44:11 r2.ukleemann.de systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 19 18:44:11 r2.ukleemann.de systemd[1]: Failed to start The Apache HTTP Server.


journalctl -xe
gibt aus:
Aug 19 18:56:01 r2.ukleemann.de systemd[1]: mattermost.service: Main process exited, code=exited, sta
Aug 19 18:56:01 r2.ukleemann.de systemd[1]: mattermost.service: Failed with result 'exit-code'.
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: mattermost.service: Service RestartSec=30s expired, sched
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: mattermost.service: Scheduled restart job, restart counte
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit mattermost.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: Stopped mattermost.service.
-- Subject: Unit mattermost.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit mattermost.service has finished shutting down.
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: Started mattermost.service.
-- Subject: Unit mattermost.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit mattermost.service has finished starting up.
--
-- The start-up result is RESULT.
Aug 19 18:56:31 r2.ukleemann.de systemd[2565]: mattermost.service: Changing to the requested working
Aug 19 18:56:31 r2.ukleemann.de systemd[2565]: mattermost.service: Failed at step CHDIR spawning /opt
-- Subject: Process /opt/mattermost/bin/platform could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /opt/mattermost/bin/platform could not be executed and failed.
--
-- The error number returned by this process is 2.
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: mattermost.service: Main process exited, code=exited, sta
Aug 19 18:56:31 r2.ukleemann.de systemd[1]: mattermost.service: Failed with result 'exit-code'.
lines 3922-3956/3956 (END)




Die apache2.config schaut so aus: https://pastebin.com/QU0UYxAg


Hat jemand eine Idee wie uich das schnell fixen kann?

Danke im Voraus

Uli

Content-Key: 383859

Url: https://administrator.de/contentid/383859

Ausgedruckt am: 19.03.2024 um 04:03 Uhr

Mitglied: falscher-sperrstatus
Lösung falscher-sperrstatus 19.08.2018 um 19:01:18 Uhr
Goto Top
Mitglied: ukl1967
ukl1967 19.08.2018 um 22:50:41 Uhr
Goto Top
Danke sehr für den Link leider war das noch nicht die Lösung.

Ich habe in den vhost Dateien VirtualHost durch -default-
ersetzt und die ports.conf schaut so aus

  1. If you just change the port or add more ports here, you will likely also
  2. have to change the VirtualHost statement in
  3. /etc/apache2/sites-enabled/000-default.conf

Listen 80
Listen 443 https


<IfModule ssl_module>
Listen 443
</IfModule>

<IfModule mod_gnutls.c>
Listen 443
</IfModule>

  1. vim: syntax=apache ts=4 sw=4 sts=4 sr noet



Aber der Fehler bleibt nach wie vor bestehen

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 Sun 2018-08-19 22:45:50 CEST; 2min 47s ago
Process: 1174 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE)
Process: 1675 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE)
Process: 6077 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)
Main PID: 1225 (code=exited, status=0/SUCCESS)

Aug 19 22:45:50 r2.ukleemann.de systemd[1]: Starting The Apache HTTP Server...
Aug 19 22:45:50 r2.ukleemann.de apachectl[6077]: apache2: Syntax error on line 225 of /etc/apache2/ap
Aug 19 22:45:50 r2.ukleemann.de apachectl[6077]: Action 'start' failed.
Aug 19 22:45:50 r2.ukleemann.de apachectl[6077]: The Apache error log may have more information.
Aug 19 22:45:50 r2.ukleemann.de systemd[1]: apache2.service: Control process exited, code=exited stat
Aug 19 22:45:50 r2.ukleemann.de systemd[1]: apache2.service: Failed with result 'exit-code'.
Aug 19 22:45:50 r2.ukleemann.de systemd[1]: Failed to start The Apache HTTP Server.


Aug 19 22:48:26 r2.ukleemann.de systemd[1]: mattermost.service: Main process exited, code=exited, sta
Aug 19 22:48:26 r2.ukleemann.de systemd[1]: mattermost.service: Failed with result 'exit-code'.
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: mattermost.service: Service RestartSec=30s expired, sched
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: mattermost.service: Scheduled restart job, restart counte
-- Subject: Automatic restarting of a unit has been scheduled
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Automatic restarting of the unit mattermost.service has been scheduled, as the result for
-- the configured Restart= setting for the unit.
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: Stopped mattermost.service.
-- Subject: Unit mattermost.service has finished shutting down
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit mattermost.service has finished shutting down.
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: Started mattermost.service.
-- Subject: Unit mattermost.service has finished start-up
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- Unit mattermost.service has finished starting up.
--
-- The start-up result is RESULT.
Aug 19 22:48:57 r2.ukleemann.de systemd[6234]: mattermost.service: Changing to the requested working
Aug 19 22:48:57 r2.ukleemann.de systemd[6234]: mattermost.service: Failed at step CHDIR spawning /opt
-- Subject: Process /opt/mattermost/bin/platform could not be executed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The process /opt/mattermost/bin/platform could not be executed and failed.
--
-- The error number returned by this process is 2.
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: mattermost.service: Main process exited, code=exited, sta
Aug 19 22:48:57 r2.ukleemann.de systemd[1]: mattermost.service: Failed with result 'exit-code'.
lines 3997-4031/4031 (END)


Mattermost ist kpl. entfernt.

Im Voraus danke für eure Hilfe

Uli
Mitglied: 129580
Lösung 129580 20.08.2018 aktualisiert um 01:01:29 Uhr
Goto Top
Hallo,

ich hatte versucht ein GetSimpleCMS zu installieren und meine apache2.conf editiert.

warum überhaupt Änderungen an der zentralen Apache Konfiguration? Normalerweise erstellt man für eine Website eine separate Konfiguration (vhost).

Nachdem die Installation nicht funktionierte entfernte ich sämtliche Änderrungen in der apache2.conf und startete den Aopachen neu.

Was waren das für Änderungen?

Seitdem macht er mir die obige SSL Fehlermeldung und bemängelt Zeile 219 in der apache2.conf als Syntax-Error
IncludeOptional sites-enabled/*.conf

Betreibst du mehrere Webseiten auf deinen Server oder ist das gerade die erste? Wenn das deine erste ist, dann würd ich mal alle vorhandenen vhost deaktivieren. In deinem Fall wären das nur die default vhosts. Anschließend prüf mal, ob der Dienst sich wieder starten lässt.

a2dissite 000-default && a2dissite default-ssl
systemctl start apache2

Wenn er der Apache Dienst sich dann nicht starten lässt, dann würde ich einfach den Apache sauber neuinstallieren.
Geht schneller als nun Herauszufinden, was du an der apache.conf kaputt gemacht hast.

Meine Vermutung ist jedenfalls, dass du vermutlich eine wichtige Option aus der apache.conf entfernt oder überarbeitet hast, was wiederum Folgen auf einer der Parameter in dem default vhost hat, sodass nun ein Syntax Fehler vorliegt. Du kannst das auch mal mit dem Befehl: "apache2ctl configtest" testen. Soweit ich das noch richtig in Erinnerung habe, dann sagt der Befehl nicht nur, ob generell ein Syntax Fehler vorliegt, sondern er gibt eine deutlich präzisere Ausgabe zu dem Syntax Fehler aus (welche Datei, welche Zeile eth.)

P.S: Bitte verwende die Code Tags für Konfigurationen, Ausgaben, Code eth. Dann ist das deutlich übersichtlicher.
...und du hast den Thread als "Gelöst" markiert. Ist das dem so? Wenn ja, dann sei so nett und teile uns kurz mit, was die Ursache war und wie du das letztendlich gelöst hast. face-wink

Viele Grüße,
Exception
Mitglied: ukl1967
ukl1967 24.08.2018 um 09:56:10 Uhr
Goto Top
Hallo,
Danke für die Hilfe. Ursache war ein script das die Festplatte aufräumen soll und versehentlich die SSL-Zertifikate gelöscht hatte d.h. diese existierten nicht mehr. Ich habe mit certbot neue erstellt und nun läuft es wieder.

Gruss

Uli