GCPのVMインスタンスでdebian10を使ってwebサーバーをたてております。virtualhostの設定を変更した程度でデフォルトの設定からほとんどなにもカスタマイズしていない状態ですが、apache2の起動をしてから数分すると自然にapacheがダウンするような状態が続いています。起動時間は10分から60分程度でそれ以上は持続してません。
apacheのカスタマイズしている部分は唯一実行ユーザーをwww-dataから任意のログインユーザーに変更しています。
/etc/apache2/envvars export APACHE_RUN_USER=sample_user export APACHE_RUN_GROUP=sample_user
当初oom killerあたりの原因を疑いましたが、そういったログは残っておりませんでした。
設定情報の文法には特に問題なさそうです。
apache
1# apache2ctl configtest 2Syntax OK
手動で再起動をかけると問題なく立ち上がります。
ログは以下のように出ているだけなのですが、他のみておくログなどありますでしょうか。
# journalctl -u apache2 -- Logs begin at Tue 2020-12-08 21:07:11 JST, end at Wed 2020-12-09 22:37:01 JST. -- Dec 08 21:07:14 sample_user systemd[1]: Starting The Apache HTTP Server... Dec 08 21:07:18 sample_user systemd[1]: Started The Apache HTTP Server. Dec 08 21:14:41 sample_user systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Dec 08 21:14:41 sample_user systemd[1]: apache2.service: Failed with result 'exit-code'. Dec 08 21:18:23 sample_user systemd[1]: Starting The Apache HTTP Server... Dec 08 21:18:23 sample_user systemd[1]: Started The Apache HTTP Server. Dec 08 21:39:22 sample_user systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Dec 08 21:39:22 sample_user systemd[1]: apache2.service: Failed with result 'exit-code'. Dec 09 01:55:55 sample_user systemd[1]: Starting The Apache HTTP Server... Dec 09 01:55:55 sample_user systemd[1]: Started The Apache HTTP Server. Dec 09 02:48:05 sample_user systemd[1]: apache2.service: Main process exited, code=exited, status=1/FAILURE Dec 09 02:48:05 sample_user systemd[1]: apache2.service: Failed with result 'exit-code'.
apacheが勝手にstopしてしまった後に残っているプロセスないように見えましたが、どこかにログが残っているでしょうか。
ちょっとわからないのが、定期的にStarting The Apache HTTP Server
を実行しているところです。(勿論cronなどにそのような設定はありません。)
詳しい方いましたらご教授ください。
よろしくお願いいたします。
あなたの回答
tips
プレビュー