logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#1 03-02-2022 11:12:56

le_lutin
Membre
Lieu : Alsace
Distrib. : Debian 12
Noyau : Linux 6.1
(G)UI : Gnome - IceWM
Inscription : 01-11-2019

[RÉSOLU] Plantage Apache

Bonjour,
avant hier j’ai eu un plantage Apache sur mon VPS qui héberge une dizaine de sites Wordpress, une instance Nextcloud et une instance Galette. Fouillant dans les logs, je trouve ça.
J’ai redémarré Apache manuellement vers midi et tout est rentré dans l’ordre.
J'aimerais bien comprendre la cause afin que ça ne se reproduise pas.
Ça ressemble à une belle crise de nerfs, qu’en pensez vous ?
Config : Debian 10, Apache 2.4.38, VPS avec 3Go RAM
merci et belle journée.

apache2: Memory allocation failed `No such file or directory' @ fatal/tiff.c/RegisterTIFFImage/2317.
[Tue Feb 01 09:12:13.905700 2022] [php7:error] [pid 22751] [client 5.157.59.66:39030] script '/var/www/ades/mini.php' not found or unable to stat, referer: https://asso-ades.fr
/mini.php
[Tue Feb 01 10:34:52.679861 2022] [core:error] [pid 25139] [client 45.146.165.37:50326] AH00126: Invalid URI in request POST /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh HTTP/1.1
[Tue Feb 01 10:51:52.229513 2022] [mpm_prefork:notice] [pid 487] AH00171: Graceful restart requested, doing restart

libgomp: could not create thread pool destructor.
[Tue Feb 01 10:51:59.242057 2022] [core:warn] [pid 25788] AH00098: pid file /var/run/apache2/apache2.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Feb 01 10:51:59.248458 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:51:59.248511 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:02.648396 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:04.823257 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:04.823297 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:09.313391 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:09.682268 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:09.682300 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:12.235853 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:12.452189 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:12.452228 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:18.897304 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:22.192659 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:22.192732 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:22.273831 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:25.486421 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:25.486473 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:28.948328 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:31.591276 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:31.591321 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:31.952191 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:32.177213 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:32.177284 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:38.627442 2022] [mpm_prefork:notice] [pid 25788] AH00171: Graceful restart requested, doing restart
[Tue Feb 01 10:52:39.062903 2022] [mpm_prefork:notice] [pid 25788] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 10:52:39.062941 2022] [core:notice] [pid 25788] AH00094: Command line: '/usr/sbin/apache2'
[Tue Feb 01 10:52:39.243562 2022] [mpm_prefork:notice] [pid 25788] AH00169: caught SIGTERM, shutting down
[Tue Feb 01 12:08:47.684049 2022] [mpm_prefork:notice] [pid 27365] AH00163: Apache/2.4.38 (Debian) mod_fcgid/2.3.9 OpenSSL/1.1.1d configured -- resuming normal operations
[Tue Feb 01 12:08:47.684184 2022] [core:notice] [pid 27365] AH00094: Command line: '/usr/sbin/apache2'

Dernière modification par le_lutin (08-12-2022 18:04:34)

Hors ligne

#2 03-02-2022 21:50:12

redmail
Membre
Lieu : Belgique
Distrib. : Debian GNU/Linux 11 (bullseye)
Noyau : Linux 5.10.0-11-amd64
(G)UI : xfce
Inscription : 03-02-2022

Re : [RÉSOLU] Plantage Apache

Bonsoir le_lutin

Cela semble être un problème de mémoire. (soit un manque soit un script php mal optimisé)

Que donne un free -h 

Maintenant, 10 sites WP + Nextcloud + ... avec 3G de RAM... big_smile

Hors ligne

#3 04-02-2022 08:46:56

le_lutin
Membre
Lieu : Alsace
Distrib. : Debian 12
Noyau : Linux 6.1
(G)UI : Gnome - IceWM
Inscription : 01-11-2019

Re : [RÉSOLU] Plantage Apache

Salut redmail,

free -h
              total        used        free      shared  buff/cache   available
Mem:          2,9Gi       759Mi       277Mi       159Mi       1,9Gi       1,9Gi
Swap:         1,0Gi        36Mi       987Mi
 


que veux-tu dire avec ta dernière ligne ?

Hors ligne

#4 04-02-2022 11:02:57

redmail
Membre
Lieu : Belgique
Distrib. : Debian GNU/Linux 11 (bullseye)
Noyau : Linux 5.10.0-11-amd64
(G)UI : xfce
Inscription : 03-02-2022

Re : [RÉSOLU] Plantage Apache

Hello Le_lutin

Je veux dire que ton serveur est quand même assez chargé par rapport à ses ressources. Rien que nextcloud est assez gourmand + 10 WP + mysql/mariadb + (je ne sais pas ce qu'est Galette) etc...

Je pense que apache s'est planté suite à un problème de mémoire, mais ton free -h ne semble pas catastrophique non plus... Mais celui-ci n'est la situation qu'a un instant donné... Tu as fais un reboot du serveur après le crach d'apache ?    Pour en savoir plus sur l'utilisation de la mémoire, il faudrait monitorer cela (mais donc ajouter encore une couche...)

L'idéal serait de rajouter de la RAM au serveur, mais tu peux essayer d'ajouter un peu plus de swap. Tu utilises du LVM ?

Bonne journée

Hors ligne

#5 04-02-2022 11:07:28

le_lutin
Membre
Lieu : Alsace
Distrib. : Debian 12
Noyau : Linux 6.1
(G)UI : Gnome - IceWM
Inscription : 01-11-2019

Re : [RÉSOLU] Plantage Apache

salut redmail,
merci pour les infos.
Galette c'est un logiciel de gestion des adhérents d'une association : https://galette.eu je ne pense pas que ça soit très gourmand.
oui, j'ai fait un reboot du serveur après le crash d'Apache, bien que le fait de redémarrer Apache a suffi à faire revenir les services.
Je vais voir pour rajouter de la RAM et / ou de la Swap au serveur.
Non je n'utilise pas LVM.

Dernière modification par le_lutin (04-02-2022 11:08:07)

Hors ligne

#6 04-02-2022 11:13:05

lagrenouille
CA Debian-Facile
Lieu : Toulouse
Distrib. : bookworm
Noyau : d'olive
(G)UI : xfce4 et awesome
Inscription : 28-03-2012
Site Web

Re : [RÉSOLU] Plantage Apache

galette est pas gourmand
mais avec 8Go de RAM tu serais mieux smile

Ce à quoi l'on a pas accès par l'expérience vécue, on a pas d'oreilles pour l'entendre ..Nietzsche
Cela dit, bien que toute notre connaissance s’amorce avec l’expérience, il n’en résulte pas pour autant qu’elle découle dans sa totalité de l’expérience.  E.Kant
une compréhension insane est elle forcément irrationnel ? ..lagrenouille

Hors ligne

#7 04-02-2022 11:38:32

le_lutin
Membre
Lieu : Alsace
Distrib. : Debian 12
Noyau : Linux 6.1
(G)UI : Gnome - IceWM
Inscription : 01-11-2019

Re : [RÉSOLU] Plantage Apache

mdr je vais déjà voir pour augmenter la RAM à 4Go et la SWAP à 2Go … big_smile

Hors ligne

#8 08-12-2022 18:04:17

le_lutin
Membre
Lieu : Alsace
Distrib. : Debian 12
Noyau : Linux 6.1
(G)UI : Gnome - IceWM
Inscription : 01-11-2019

Re : [RÉSOLU] Plantage Apache

hello,
j'ai augmenté la RAM à 4Go et la SWAP à 2Go, et je n'ai plus eu ce plantage.
[RÉSOLU]

Hors ligne

Pied de page des forums