Apache fällt immer mal aus  [GELÖST]

Allgemeine Diskussionen rund um KeyHelp.
Post Reply
IchBins
Posts: 112
Joined: Thu 19. Nov 2020, 15:07

Apache fällt immer mal aus

Post by IchBins »

Hallo,

seit ein paar Tagen fällt ab und zu der Apache aus.
Die Apache Tasks sind im Putty noch zu sehen.
Wenn ich Apache neu starte geht es einige Minuten und dann ist wieder keine Webseite zu erreichen.
Erst wenn ich den Server neu gestartet habe läuft es für einige Stunden fehlerfrei.
Auf dem Server ist wenig Betrieb. Dem entsprechend ist die Serverlast bei ca. 0,5

Unter /etc/apache2/mods-enabled/mpm_event.conf habe ich folgende Einträge.

StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 256
MaxConnectionsPerChild 0

Wobei ich MaxRequestWorkers, wie in der error.log bemängelt, auf 256 geändert habe. Hat aber leider nichts gebracht.

In der /var/log/apache2/error.log kann ich zur fraglichen Zeit folgende Einträge finden.

[Wed Oct 05 10:14:55.384732 2022] [mpm_event:error] [pid 143264:tid 140294922665280] AH10159: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
suexec policy violation: see suexec log for more details
[Wed Oct 05 10:16:59.530626 2022] [mpm_event:error] [pid 143264:tid 140294922665280] AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
[Wed Oct 05 10:24:39.152842 2022] [mpm_event:notice] [pid 143264:tid 140294922665280] AH00492: caught SIGWINCH, shutting down gracefully
[Wed Oct 05 10:24:42.650472 2022] [core:warn] [pid 143264:tid 140294922665280] AH00045: child process 147456 still did not exit, sending a SIGTERM
[Wed Oct 05 10:24:44.652790 2022] [core:warn] [pid 143264:tid 140294922665280] AH00045: child process 147456 still did not exit, sending a SIGTERM
[Wed Oct 05 10:24:46.655066 2022] [core:warn] [pid 143264:tid 140294922665280] AH00045: child process 147456 still did not exit, sending a SIGTERM
[Wed Oct 05 10:24:48.657343 2022] [core:error] [pid 143264:tid 140294922665280] AH00046: child process 147456 still did not exit, sending a SIGKILL
[Wed Oct 05 10:25:39.688760 2022] [ssl:warn] [pid 647:tid 140506438851904] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 10:25:39.689403 2022] [ssl:error] [pid 647:tid 140506438851904] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=info@keyhelp.de,CN=vmd45894.meinserveranbieter.net,OU=KeyHelp Panel,O=KeyHelp,L=Erfurt,ST=Thuringia,C=DE / issuer: emailAddress=info@keyhelp.de,CN=vmd45894.meinserveranbieter.net,OU=KeyHelp Panel,O=KeyHelp,L=Erfurt,ST=Thuringia,C=DE / serial: 653B578BD169E88E2A2763A690C68395C21DFCE1 / notbefore: Nov 30 13:12:07 2019 GMT / notafter: Nov 27 13:12:07 2029 GMT]
[Wed Oct 05 10:25:39.689414 2022] [ssl:error] [pid 647:tid 140506438851904] AH02604: Unable to configure certificate webmail:443:0 for stapling
[Wed Oct 05 10:25:42.268204 2022] [suexec:notice] [pid 647:tid 140506438851904] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Oct 05 10:25:43.820480 2022] [ssl:warn] [pid 1178:tid 140506438851904] AH01909: webmail:443:0 server certificate does NOT include an ID which matches the server name
[Wed Oct 05 10:25:43.821436 2022] [ssl:error] [pid 1178:tid 140506438851904] AH02217: ssl_stapling_init_cert: can't retrieve issuer certificate! [subject: emailAddress=info@keyhelp.de,CN=vmd45894.meinserveranbieter.net,OU=KeyHelp Panel,O=KeyHelp,L=Erfurt,ST=Thuringia,C=DE / issuer: emailAddress=info@keyhelp.de,CN=vmd45894.meinserveranbieter.net,OU=KeyHelp Panel,O=KeyHelp,L=Erfurt,ST=Thuringia,C=DE / serial: 653B578BD169E88E2A2763A690C68395C21DFCE1 / notbefore: Nov 30 13:12:07 2019 GMT / notafter: Nov 27 13:12:07 2029 GMT]
[Wed Oct 05 10:25:43.821562 2022] [ssl:error] [pid 1178:tid 140506438851904] AH02604: Unable to configure certificate webmail:443:0 for stapling
[Wed Oct 05 10:25:46.693135 2022] [mpm_event:notice] [pid 1178:tid 140506438851904] AH00489: Apache/2.4.54 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n configured -- resuming normal operations
[Wed Oct 05 10:25:46.693681 2022] [core:notice] [pid 1178:tid 140506438851904] AH00094: Command line: '/usr/sbin/apache2'

Keyhelp startet den Apache nicht neu wenn er ausfällt?

Ich hoffe es kann mir jemand helfen.
Vielen Dank im voraus.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Apache fällt immer mal aus

Post by Florian »

Hallo,

mal den Apache Server-Status über Keyhep im Auge behalten und netstat zu Rate ziehen.. Ggf findet ein DDOS statt, da muss die Load nicht hoch sein.
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Apache fällt immer mal aus

Post by BasHeijermans »

Look like you enabled sslusestapling:

https://httpd.apache.org/docs/current/m ... sestapling

You may want to turn that off.
KeyHelp doesn't enable that as I can't find it anywhere in my Apache2 configs.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
User avatar
Florian
Keyweb AG
Posts: 1243
Joined: Wed 20. Jan 2016, 02:28

Re: Apache fällt immer mal aus

Post by Florian »

BasHeijermans wrote: Wed 5. Oct 2022, 16:53 Look like you enabled sslusestapling:

https://httpd.apache.org/docs/current/m ... sestapling

You may want to turn that off.
KeyHelp doesn't enable that as I can't find it anywhere in my Apache2 configs.
Diese Meldung ist normal und kommt immer ins Log beim Neustart des Apache. Das verursacht auch nicht die Probleme, die hier beschrieben wurden.

Code: Select all

AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting
Das ist das Entscheidende.Jetzt muss man eben klären wo es herkommt.
Mit freundlichen Grüßen / Best regards
Florian Cheno

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
User avatar
BasHeijermans
KeyHelp Translator
Posts: 158
Joined: Mon 20. Jun 2022, 12:01
Location: Heppen Belgium
Contact:

Re: Apache fällt immer mal aus

Post by BasHeijermans »

I found this as well to the errors it's showing:

https://itecnotes.com/server/debian-apa ... a-sigkill/

Hopefully those answers help you fix it.
Greetings Bas.

Ik heb KeyHelp naar het Nederlands vertaald, contacteer me als er translatie fouten zijn.
(I have translated KeyHelp into Dutch, contact me if there are translation errors.)
Next version 24 of KeyHelp 100% translated.
IchBins
Posts: 112
Joined: Thu 19. Nov 2020, 15:07

Re: Apache fällt immer mal aus

Post by IchBins »

Hallo,

heute war wieder das Problem. Das selbe wie letztens. Ein Apache Neustart reicht nur Minuten und dann muss der Server neu gestartet werden, damit es Stunden läuft.

Beim Apache-Server-Status war diese Nacht ca. 2 Uhr noch alles in Ordnung

[Sat Oct 08 06:28:12.354939 2022] [mpm_event:error] [pid 1175:tid 139629463240000] AH10159: server is within MinSpareThreads of MaxRequestWorkers, consider raising the MaxRequestWorkers setting
[Sat Oct 08 06:30:00.492587 2022] [mpm_event:error] [pid 1175:tid 139629463240000] AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

Apache-Server-Status knapp 22 Minuten nachdem ich den Apache neu gestartet hatte.
Apache Server Status for localhost (via 127.0.0.1)
Server Version: Apache/2.4.54 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1n
Server MPM: event
Server Built: 2022-06-09T04:26:43
Current Time: Saturday, 08-Oct-2022 08:02:25 CEST
Restart Time: Saturday, 08-Oct-2022 07:40:34 CEST
Parent Server Config. Generation: 1
Parent Server MPM Generation: 0
Server uptime: 21 minutes 50 seconds
Server load: 0.89 0.79 0.67
Total accesses: 3291 - Total Traffic: 42.8 MB - Total Duration: 978003
CPU Usage: u29.82 s11.7 cu0 cs0 - 3.17% CPU load
2.51 requests/sec - 33.4 kB/second - 13.3 kB/request - 297.175 ms/request
238 requests currently being processed, 37 idle workers
Scoreboard Key:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
WWWWWWWWWWWWWWWW_WWWWWWWWWWWWWWWWWW_WWWWWWWWWWWWWWWWWWWWWWWWWWWW
WWWWWWWWWWWWWWWWWWWWWWWWWWWWWW_WWWWWWWWRWWWWWWWWWWWWWWWWWWWWWWWW
WW_WW_WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW_WW_WWWWWR_WWWWWWWWW
_WW_WWW_WWWWWWWWWWWWWWWWW_WWWWWWWWWW_WW_W_W__WW_WWWWWWW_C__WW___
WW__RW_____WW______.............................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................

Bei Process count war nichts auffälliges.

Ausgabe von Netstat ist im Anhang
Attachments
netstat.txt
(148.97 KiB) Downloaded 52 times
User avatar
24unix
Posts: 1560
Joined: Sun 21. Jun 2020, 17:16
Location: Kollmar
Contact:

Re: Apache fällt immer mal aus

Post by 24unix »

IchBins wrote: Sat 8. Oct 2022, 10:18 consider raising the MaxRequestWorkers setting
Und, hast Du mal considert? :)
mfg Micha
--
If Bill Gates had a nickel for every time Windows crashed …
… oh wait, he does.
IchBins
Posts: 112
Joined: Thu 19. Nov 2020, 15:07

Re: Apache fällt immer mal aus

Post by IchBins »

Ja...was ich als letztes geschrieben habe war schon nach einer Erhöhung. Hat auch nicht funktioniert.

Jetzt ist mpm_event so eingestellt.
StartServers 4
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 800
ServerLimit 32
MaxConnectionsPerChild 10000

Heute gemacht:
Da immer ein Name aufgetreten ist, habe ich mir mal die Webseiten des Kunden angeschaut. Eine Domain hat sich im Browser tot geladen.
Da habe ich den Namen des Verzeichnisses geändert.
Nach Apache Neustart war bis jetzt das Problem nicht mehr.
Ob es jetzt daran lag oder nur Zufall ist werden die nächsten Stunden zeigen.
IchBins
Posts: 112
Joined: Thu 19. Nov 2020, 15:07

Re: Apache fällt immer mal aus  [GELÖST]

Post by IchBins »

Ursache war offensichtlich ein Amok laufendes Script. Seitdem das deaktiviert wurde ist der Fehler nicht mehr aufgetreten.

Vielen Dank für die Hilfe.
Post Reply