stopping stop httpd graceful linux apache crash sigterm

linux - httpd - stop apache 2.4 windows



El servidor Apache sigue fallando, "atrapó SIGTERM, cerrándose" (4)

¿Le ha pedido a su proveedor que investigue? Supongo que este no es un servidor dedicado,

A primera vista, esto parece una excepción de seguridad y alguien está intentando explotarlo / o hay un proceso ejecutándose en un momento determinado que está causando esto, ¿puedes pensar en algo que se ejecute en el servidor cada 2 días? Herramientas de registro?

SIGTERM es la señal enviada a un proceso para solicitar su terminación. La constante simbólica para SIGTERM se define en el archivo de cabecera signal.h. Los nombres simbólicos de las señales se utilizan porque los números de las señales pueden variar en todas las plataformas, sin embargo, en la gran mayoría de los sistemas, SIGTERM es la señal # 15.

Esto comenzó a suceder hace tres semanas más o menos. El contenido de mi sitio web no ha cambiado, es solo un foro phpBB que usa MySQL como back-end.

Nada ha cambiado en más de un año, pero recientemente, cada dos días más o menos, el servidor simplemente se apaga y no se puede acceder en absoluto, tengo que notificar a mi proveedor de servicios para reiniciar físicamente la máquina.

Parece estar relacionado con estos errores SIGTERM que encuentro en los registros. El problema es que no tengo idea de cómo solucionar este tipo de cosas o encontrar la causa porque mis habilidades en esta área son insuficientes.

Alguien tiene alguna idea de lo que podría estar pasando?

Apache / 2.2.3 (CentOS)

20051115

Linux 2.6.18-028stab057.4 # 1 SMP vie 1 ago 10:47:59 MSD 2008 x86_64

Del registro de errores: [Dom 01 de noviembre 15:18:53 2009] [aviso] capturado SIGTERM, cerrando

No estoy del todo seguro de que eso sea lo que me está causando mis problemas, pero no suena como algo bueno.

Puedo publicar más información de registro si es necesario

[Sun Nov 01 05:07:17 2009] [notice] Digest: generating secret for digest authentication ... [Sun Nov 01 05:07:17 2009] [notice] Digest: done [Sun Nov 01 05:07:19 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 05:07:19 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 05:07:19 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 05:07:19 2009] [warn] WARNING: Attempt to change ServerLimit ignored during restart [Sun Nov 01 05:07:19 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Sun Nov 01 15:16:11 2009] [error] [client 127.0.0.1] Invalid method in request get [Sun Nov 01 15:18:53 2009] [notice] caught SIGTERM, shutting down [Sun Nov 01 15:19:27 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 15:19:27 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 15:19:27 2009] [notice] Digest: generating secret for digest authentication ... [Sun Nov 01 15:19:27 2009] [notice] Digest: done [Sun Nov 01 15:19:27 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Sun Nov 01 15:19:27 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Sun Nov 01 15:19:27 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Sun Nov 01 15:19:27 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Sun Nov 01 16:42:31 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 16:47:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 16:59:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:37:42 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:54 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:55 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 17:44:56 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 18:14:45 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 18:40:30 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:10:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:35:10 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:43:07 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 20:43:46 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:25:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:26:03 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 21:56:57 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:21:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:16 2009] [error] server reached MaxClients setting, consider raising the MaxClients setting [Sun Nov 01 22:25:17 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:18 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:20 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:21 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:25:22 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:46:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:52:56 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:07 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 22:56:58 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:00:41 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:09:59 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:23:49 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:27:14 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:36:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Sun Nov 01 23:54:06 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:12:44 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:12:50 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:13:23 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:39:06 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:52:50 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 00:53:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:38 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:39 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:13:40 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:23:01 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:43:47 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:45:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:46:27 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 01:47:25 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:23:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:25:37 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:25:38 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:52:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 02:52:51 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 03:49:29 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 03:49:48 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 04:35:33 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/README [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde2 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde3 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/horde-3.0.9 [Mon Nov 02 04:46:01 2009] [error] [client 66.96.201.63] File does not exist: /var/www/vhosts/default/htdocs/Horde [Mon Nov 02 04:46:02 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:06 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/README [Mon Nov 02 05:01:06 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde [Mon Nov 02 05:01:07 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde2 [Mon Nov 02 05:01:08 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde3 [Mon Nov 02 05:01:08 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/horde-3.0.9 [Mon Nov 02 05:01:09 2009] [error] [client 58.246.73.74] File does not exist: /var/www/vhosts/default/htdocs/Horde [Mon Nov 02 05:01:09 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:10 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 05:01:11 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/ [Mon Nov 02 09:17:58 2009] [notice] caught SIGTERM, shutting down [Mon Nov 02 09:18:58 2009] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Mon Nov 02 09:18:58 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Nov 02 09:18:58 2009] [notice] Digest: generating secret for digest authentication ... [Mon Nov 02 09:18:58 2009] [notice] Digest: done [Mon Nov 02 09:18:58 2009] [notice] mod_python: Creating 4 session mutexes based on 10 max processes and 0 max threads. [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] RSA server certificate CommonName (CN) `plesk'' does NOT match server name!? [Mon Nov 02 09:18:58 2009] [warn] Init: SSL server IP/port conflict: default-64-6-237-192:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:83) vs. webmail:443 (/etc/httpd/conf.d/zz010_psa_httpd.conf:159) [Mon Nov 02 09:18:58 2009] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Mon Nov 02 09:18:58 2009] [notice] Apache/2.2.3 (CentOS) configured -- resuming normal operations [Mon Nov 02 09:32:34 2009] [error] [client ::1] Directory index forbidden by Options directive: /var/www/html/


SIGTERM se utiliza para reiniciar Apache (siempre que esté configurado en init para reiniciar automáticamente): http://httpd.apache.org/docs/2.2/stopping.html

Las entradas que ve en los registros casi seguramente existen porque su proveedor usó SIGTERM para ese propósito. Si realmente se cuelga, ni siquiera sirve contenido estático, entonces eso suena como un problema de agotamiento de hilos / conexiones. Tal vez un DoS que mantiene conexiones abiertas?

Definitivamente debería ser algo para que tu proveedor investigue.


Tuve misteriosos cierres SIGTERM en nuestro servidor LAMP, y resultó ser un error en un módulo PHP personalizado, que fue causado por versiones no coincidentes. Se encontró al buscar en los registros de acceso / error de apache en el momento del mal funcionamiento. No olvide activar el registro de errores.


de esta página :

Encontré esta información:

El gestor de procesos mod_fastcgi no es particularmente paciente (hay margen de mejora aquí) y, dado que también debe cerrarse, envía un SIGTERM a todas las aplicaciones FastCGI de las que es responsable. Apache reiniciará el administrador de procesos y reiniciará sus aplicaciones administradas (como si el servidor recién se hubiera iniciado). SIGTERM es, bueno, SIGTERM: tu aplicación debería salir rápidamente.

Lo que esto implica para mí es que si Database I / O, o alguna otra parte de la secuencia de comandos CGI, no responde de manera oportuna (es decir, cada vez más lento con el crecimiento del volumen de datos), ese mod_fastcgi está matando la secuencia de comandos .... ... es así como otras personas interpretan estos documentos o qué me estoy perdiendo ...