2009-11-02 12 views
42

これは3週間ほど前に起きています。私のウェブサイトの内容は変更されていません。MySQLをバックエンドとして使用するphpBBフォーラムです。Apacheサーバーがクラッシュし続ける "SIGTERMがシャットダウンしました"

何も変わっていませんが、最近2日おきにサーバーがシャットダウンしてアクセスできなくなりました。サービスプロバイダに物理的にマシンを再起動するように通知する必要があります。

ログにあるこれらのSIGTERMエラーに結びついているようです。問題この種の問題を解決する方法や根本的な原因を見つける方法がわかりません。この分野のスキルが不足しています。

誰でも何が起こっている可能性がありますか?

のApache/2.2.3(CentOSの)エラーから

Linuxの2.6.18-028stab057.4#1 SMP金8月1日10時47分59秒MSD 2008 x86_64の

ログ: [通知] SIGTERMを捕まえてシャットダウン

それは私の問題を引き起こしているものではありませんが、それは良いことのようには聞こえません。私は

 
[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/ 
+2

これはserverfault.comに行ってはいけませんか? – mhaller

+0

私はそれが存在することを知らなかった、私はそこにそれを再投稿します、ありがとう。 – Tom

+3

Tomさん、長続きしないスレッドを復活させて申し訳ありませんが、この問題は最後に解決されましたか?私はApache/2.2.3(CentOS)とまったく同じ問題を経験しているようです。 CPU /メモリが最大限に活用され、ハードリセットが必要です。 – Wayne

答えて

16

SIGTERMは(それが自動再起動にINITでセットアップだものとする)はApacheを再起動するために使用されます。静的なコンテンツを提供していなくても本当にクラッシュしているのなら、それはある種のスレッド/接続枯渇問題のように聞こえるでしょう。おそらく接続を開いているDoSですか?

プロバイダが調査する必要がありますか。

+0

それは事です、私のプロバイダは、私のホスティングソリューションの性質のために手に入らないと言っています。私は、これが起き始めてから私の終わりには何も変わっていないと言い続けるが、それは耳の耳に落ちているだけだ。彼らはログを見て、私が聞きたいものではない人を雇うように言う。私はOPにいくつかのログ情報を追加します。 – Tom

+0

22:25:16に「サーバーがMaxClientsに到達しました」という興味深いログと、すべてのアクセス禁止メッセージが表示されます。あなたのアクセスログを見て、その時間中に何が起こっているのかを見てください。 – kdgregory

+0

また、SIGTERMが09:17:58に起こったことに注意してください。キュー内の前のメッセージは05:01:11にありました。これはSIGTERMが意図的だったことを再び示しています。私は以前の活動を見るためにアクセスログをもう一度見るだろう - 私はそれが05:01のどこかで止まると思っている。 – kdgregory

2

を必要に応じて、より多くの情報をログ投稿することができ

あなたが調査するために、プロバイダを尋ねたことがありますか?私はこれが専用サーバーではないと仮定します。

これはセキュリティ上の例外のようであり、somoneはそれを悪用しようとしています/またはこれを引き起こしている一定の時間にプロセスが実行されています。 2日ごとにサーバー上で実行されるものを考えてください。ロギングツール?

SIGTERMはプロセスに送信され、その終了を要求するシグナルです。 SIGTERMのシンボル定数は、ヘッダファイルsignal.hで定義されています。シグナル番号はプラットフォームによって異なる可能性があるため、シンボリックなシグナル名が使用されていますが、大部分のシステムではSIGTERMはシグナル#15です。あなたのプロバイダがその目的のためにSIGTERMを使用しているため、ほぼ確実にあるログに表示さhttp://httpd.apache.org/docs/2.2/stopping.html

エントリ:

+0

サーバはVPSであり、私のプロバイダはこのタイプのものをサポートしていないと私に言った。それは私のコントロール下にあります。 もっとエラーログを投稿した場合、彼の状況を把握するのに役立つでしょうか? – Tom

+0

これでもかまいませんが、これまでのエラーログでは、admin privalgesと一緒にサーバがシャットダウンするように指示されていることがわかりました。 – LiamB

+0

Apacheはそれを定期的に再起動し、そのような署名を付けて、物をきれいにします。自動再起動から復帰していない可能性があります。 – Kzqai

4

L.A.M.P.に謎のSIGTERMシャットダウンがありました。サーバーであり、バージョンが一致していないためにカスタムPHPモジュールでエラーとなっていました。これは、誤動作時にApacheのアクセス/エラーログを調べることで検出されました。エラーログオンをオンにすることを忘れないでください。

+1

これらのエラーログは/ var/logs/httpdにありますか?ログのエラーメッセージのjistを覚えていますか? – Tom

0

this pageから:

私はこの情報が見つかりました:

mod_fastcgiのプロセスマネージャはいえ、特に患者ではありませんが(ここでは改善の余地があります)、それはあまりにもシャットダウンする必要があるため、すべてにSIGTERMを送信それが担当するFastCGIアプリケーションの数です。 Apacheはプロセスマネージャを再起動し、管理されているアプリケーションを再起動します(サーバが起動したばかりの場合のように)。 SIGTERMは、まあ、SIGTERMです - あなたのアプリケーションはすばやく終了する必要があります。

データベースI/OまたはCGIスクリプトの他の部分がタイムリーに対応できない場合(つまり、データ量の増加が遅くなった場合)、mod_fastcgiはスクリプトを強制終了しています......他の人がこれらのドキュメントをどのように解釈しているのか、何が紛失しているのかなどです。

関連する問題