Apache (httpd) fällt plötzlich aus und lässt sich nicht neu starten / (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex

Aus Glaskugel
Zur Navigation springen Zur Suche springen


Ursachensuche

Logge dich als User 'root' auf dem Server ein

Starte den httpd neu.
Wenn das nicht gelingt, dann sieh in die Apache error_log
cat /var/log/httpd/error_log

[Sat Nov 23 00:01:24.740116 2019] [core:emerg] [pid 15443] (28)No space left on device: AH00023: Couldn't create the fcgid-pipe mutex
[Sat Nov 23 00:13:23.515456 2019] [suexec:notice] [pid 28024] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Nov 23 00:13:23.516579 2019] [core:emerg] [pid 28024] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex
AH00016: Configuration Failed
[Sat Nov 23 00:14:24.630645 2019] [suexec:notice] [pid 28172] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Nov 23 00:14:24.631566 2019] [core:emerg] [pid 28172] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex
AH00016: Configuration Failed
[Sat Nov 23 00:16:22.070618 2019] [suexec:notice] [pid 29454] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sat Nov 23 00:16:22.071581 2019] [core:emerg] [pid 29454] (28)No space left on device: AH00023: Couldn't create the rewrite-map mutex

Dieser Fehler resultiert aus einem Mangel an Kommunikationsressourcen innerhalb des Prozesses im System, z. B. Semaphores oder gemeinsam genutzte Speichersegmente.

Lösung in Script-Form

1. Lade das script von hosting.estugo.de herunter
wget --user=Shopbenutzer12 --password='9k2aS2s' -P /root/ https://www.estugo.de/files/scripts/semaphores
2. Script ausführbar machen
chmod +x semaphores
3. Script ausführen
./semaphores

Manuelle Lösung

Passe die Limits in der Konfiguration an:

mkdir -p /etc/sysctl.d/
touch /etc/sysctl.d/99-zz_plesk_semaphores.conf
chmod 755 /etc/sysctl.d/ /etc/sysctl.d/99-zz_plesk_semaphores.conf
chown root:root /etc/sysctl.d/ /etc/sysctl.d/99-zz_plesk_semaphores.conf

Editiere die angelegte Datei

mcedit /etc/sysctl.d/99-zz_plesk_semaphores.conf
und füge Folgendes ein

kernel.msgmni = 64000
kernel.sem = 250****256000 32 1024

Lösche die noch bestehenden Semaphores
ipcs -s | tail -n +4 | head -n -1 | tr -s ' ' | cut -d' ' -f2,3 | while read -r id owner; do [[ $owner == "httpd" ]] && ipcrm -s "$id"; done
Lies die Konfiguration neu ein
sysctl -p
Starte den Apache neu
service httpd start