apacheを朝再起動。
なぜかサイトに繋がらず。
/var/log/messages
Sep 27 00:00:00 kernel: pid 2062 (httpd), jid 0, uid 0: exited on si gnal 11 (core dumped)
httpd-error.log
[Wed Sep 27 00:00:00.193390 2023] [mpm_prefork:notice] [pid 2062] AH00171: Graceful restart requested, doing restart
0 0 * * *のcronの影響か?調べます。
00 * * *
loglotationの動作時間で、スクリプトで指定されたディレクトリが無いのを確認。存在しないユーザーとグループでmysqlrouterの関連をcreateしていたのも確認。修正。cronのコマンドはエラー出力無しを確認。様子見です。
修正後もダウン。二日連続。
三日目。サービスは起動している
# service apache24 status
apache24 is running as pid 2056.
というかcore dumpを吐いて再起動が掛かっている。
/httpd.core昨日のタイムスタンプで???
gdbで内容確認
gdb /usr/local/sbin/httpd -c /httpd.core
GNU gdb (GDB) 13.1 [GDB v13.1 for FreeBSD]
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type “show copying” and “show warranty” for details.
This GDB was configured as “x86_64-portbld-freebsd13.2”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
https://www.gnu.org/software/gdb/bugs/.
Find the GDB manual and other documentation resources online at:
http://www.gnu.org/software/gdb/documentation/.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from /usr/local/sbin/httpd…
(No debugging symbols found in /usr/local/sbin/httpd)
[New LWP 100196]
warning: Could not load shared library symbols for [vdso].
Do you need “set solib-search-path” or “set sysroot”?
Core was generated by `/usr/local/sbin/httpd’.
Program terminated with signal SIGSEGV, Segmentation fault.
Address not mapped to object.
0 0x000000083e095c20 in ?? ()
(gdb)
cronで動作しているlogrotateを再設定。今晩の動作を待つ。
9/30サービスは落ちてた。起動させる。正常に起動は掛かる。
サービスが起動していないという事は、再起動が掛かっていないのだろう。
なぜこの時間確認できたかというと、父を急患に連れて行ったため。
10/1 1:01
介護に起こされやっと落ち着く。
昨日の夕方再起動後、問題は発生しておらず。よってapache24サービスも問題なし。
10/2 問題なし
10/3 httpdでcore dumped。apache24は停止。vdso?openssl?
/etc/sslのopenssl.cnfをmvして再起動
gdb /usr/local/sbin/httpd -c /httpd.core