[APACHE]: service interrompu Le sujet est résolu

Demande d'aide : c'est ici.
Répondre
genpashiro
Membre
Membre
Messages : 214
Inscription : 25 sept. 2018, 15:07
Localisation : Douai, Nord
Status : Hors-ligne

:006:

Je vois que le service apache2 s'est arrêté subitement cette nuit:

Code : Tout sélectionner

sudo  service apache2 status
● apache2.service - The Apache HTTP Server
     Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Sat 2022-02-05 03:51:01 CET; 12h ago
       Docs: https://httpd.apache.org/docs/2.4/
    Process: 71448 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
    Process: 71453 ExecStop=/usr/sbin/apachectl graceful-stop (code=exited, status=0/SUCCESS)
        CPU: 181ms

févr. 05 03:51:01 leblais.net systemd[1]: Starting The Apache HTTP Server...
févr. 05 03:51:01 leblais.net apachectl[71451]: httpd (pid 71415) already running
févr. 05 03:51:01 leblais.net systemd[1]: apache2.service: Succeeded.
févr. 05 03:51:01 leblais.net systemd[1]: Started The Apache HTTP Server.
dans le fichier de log d"erreur d"apache je vois ceci :

Code : Tout sélectionner

[Sat Feb 05 00:00:06.699390 2022] [mpm_prefork:notice] [pid 59142] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Feb 05 00:00:06.699538 2022] [core:notice] [pid 59142] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 05 03:14:52.499500 2022] [php7:warn] [pid 68353] [client 157.55.39.127:33664] PHP Warning:  "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /var/www/kriss/index.php on line 3780
[Sat Feb 05 03:50:49.596601 2022] [mpm_prefork:notice] [pid 59142] AH00170: caught SIGWINCH, shutting down gracefully
[Sat Feb 05 03:50:55.771795 2022] [mpm_prefork:notice] [pid 71415] AH00163: Apache/2.4.52 (Debian) OpenSSL/1.1.1k configured -- resuming normal operations
[Sat Feb 05 03:50:55.772024 2022] [core:notice] [pid 71415] AH00094: Command line: '/usr/sbin/apache2'
[Sat Feb 05 03:51:01.860775 2022] [mpm_prefork:notice] [pid 71415] AH00170: caught SIGWINCH, shutting down gracefully
J'ai un peu de difficultés à comprendre pourquoi Apache s'est arrêté :unknw:

Avez-vous déjà constaté sur vos serveurs web le caught SIGWINCH, shutting down gracefully ?

Serait-ce possible de créer un script qui relance le service automatiquement ?
Avatar de l’utilisateur
piratebab
Site Admin
Site Admin
Messages : 4954
Inscription : 24 avr. 2016, 18:41
Localisation : sud ouest
Status : En ligne

SIGWINCH, il me semble que ça veut dire SIGNAL WINDOW Change. Je ne vois pas le rapport avec mpm et pourquoi ça arrêterai apache.
Avatar de l’utilisateur
lol
Site Admin
Site Admin
Messages : 4974
Inscription : 04 avr. 2016, 12:11
Localisation : Madagascar
Status : Hors-ligne

Salut,

Non Apache2 ne doit pas s'arrêter tout seul.
Tes logs n'expliquent pas pourquoi le serveur Web s'est arrêté.

As-tu regardé les logs complets ?
Le serveur Web fait tourner quels services ?
Règles d'usage du forum. Signalez si vous avez posté votre question sur un autre forum. Explications ici
Debian Unstable. Mate/LXQT. Dieu, en créant l'homme, a quelque peu surestimé ses capacités.
genpashiro
Membre
Membre
Messages : 214
Inscription : 25 sept. 2018, 15:07
Localisation : Douai, Nord
Status : Hors-ligne

dans /var/log/syslog je vois que certbot essaie de renouveler un certificat sur un vhost que j'avais désactivé mais pas supprimer.

A priori, le service certbot a bouclé et a provoquer l'arrêt du service apache2

J'ai supprimé ce certificat letsencrypt, à voir si cela se reproduit.

Merci à vous !
Répondre