คืออยู่ดีๆ httpd ก็ดับครับ ขึ้น error 500 internal server
start หรือ restart ก็ไม่ได้ ต้อง reboot เครื่องใหม่ถึงจะกลับมา start ได้ครับ
มันเกิดจากอะไรได้บ้างเหรอครับ
ดูใน log มันขึ้นแบบนี้ครับ
2016:03:17-07:13:01: service httpd wasn’t running, starting it
2016:03:17-07:13:07: service httpd didn’t start, re-starting it
2016:03:17-07:14:01: service httpd wasn’t running, starting it
2016:03:17-07:14:07: service httpd didn’t start, re-starting it
2016:03:17-07:15:01: service httpd wasn’t running, starting it
2016:03:17-07:15:07: service httpd didn’t start, re-starting it
2016:03:17-07:16:01: service httpd wasn’t running, starting it
2016:03:17-07:16:07: service httpd didn’t start, re-starting it
2016:03:17-07:17:01: service httpd wasn’t running, starting it
2016:03:17-07:17:07: service httpd didn’t start, re-starting it
2016:03:17-07:18:01: service httpd wasn’t running, starting it
2016:03:17-07:18:07: service httpd didn’t start, re-starting it
2016:03:17-07:19:01: service httpd wasn’t running, starting it
2016:03:17-07:19:07: service httpd didn’t start, re-starting it
2016:03:17-07:20:01: service httpd wasn’t running, starting it
2016:03:17-07:20:07: service httpd didn’t start, re-starting it
2016:03:17-07:21:01: service httpd wasn’t running, starting it
2016:03:17-07:21:07: service httpd didn’t start, re-starting it
2016:03:17-07:22:01: service httpd wasn’t running, starting it
2016:03:17-07:22:07: service httpd didn’t start, re-starting it
2016:03:17-07:23:01: service httpd wasn’t running, starting it
2016:03:17-07:23:07: service httpd didn’t start, re-starting it
2016:03:17-07:24:01: service httpd wasn’t running, starting it
2016:03:17-07:24:07: service httpd didn’t start, re-starting it
2016:03:17-07:25:01: service httpd wasn’t running, starting it
2016:03:17-07:25:07: service httpd didn’t start, re-starting it
2016:03:17-07:26:01: service httpd wasn’t running, starting it
2016:03:17-07:26:07: service httpd didn’t start, re-starting it
2016:03:17-07:27:01: service httpd wasn’t running, starting it
2016:03:17-07:27:07: service httpd didn’t start, re-starting it
2016:03:17-07:28:01: service httpd wasn’t running, starting it
2016:03:17-07:28:07: service httpd didn’t start, re-starting it
2016:03:17-07:29:01: service httpd wasn’t running, starting it
2016:03:17-07:29:07: service httpd didn’t start, re-starting it
2016:03:17-07:30:01: service httpd wasn’t running, starting it
2016:03:17-07:30:07: service httpd didn’t start, re-starting it
2016:03:17-07:31:01: service httpd wasn’t running, starting it
2016:03:17-07:31:07: service httpd didn’t start, re-starting it
2016:03:17-07:32:01: service httpd wasn’t running, starting it
2016:03:17-07:32:07: service httpd didn’t start, re-starting it
2016:03:17-07:33:01: service httpd wasn’t running, starting it
2016:03:17-07:33:07: service httpd didn’t start, re-starting it
2016:03:17-07:34:01: service httpd wasn’t running, starting it
2016:03:17-07:34:07: service httpd didn’t start, re-starting it
2016:03:17-07:35:01: service httpd wasn’t running, starting it
2016:03:17-07:35:07: service httpd didn’t start, re-starting it
2016:03:17-07:36:01: service httpd wasn’t running, starting it
2016:03:17-07:36:07: service httpd didn’t start, re-starting it
2016:03:17-07:38:01: service httpd wasn’t running, starting it
2016:03:17-07:38:07: service httpd didn’t start, re-starting it
ถ้าดูใน apache error log แล้วเจอประมาณว่า no space left on device น่าจะเกิดจาก semaphore เต็ม ดังนั้นพอ reboot ถึงหาย
ลองปรับเพิ่มค่าตัวนี้ดู โดยการแก้ไฟล์ /etc/sysctl.conf แล้วเพิ่มสองบรรทัดนี้เข้าไป
kernel.msgmni = 1024
kernel.sem = 250 256000 32 1024
จากนั้นสั่ง
sysctl -p
ทีนึง น่าจะโอเคละครับ
ขอบคุณครับ เดี๋ยวไปดูก่อนครับ
ได้ผลยังไง แจ้งให้ทราบด้วยนะครับ เผื่อสมาชิกท่านอื่นเจอปัญหา จะได้นำไปแก้ไขได้ถูก
ผมไปหาเจอ no space left on device เหมือนที่คุณ Minddragon บอกเลยครับ
มันขึ้นมาแบบนี้ซ้ำๆ กันไปเรื่อยๆ จนถึงเวลาที่ reboot เครื่องครับ
หลังจาก reboot มันก็ยังไม่เป็นอีกเลยครับ
ขอบคุณ Minddragon มากครับ
[Thu Mar 17 05:22:03 2016] [warn] RSA server certificate CommonName (CN)
localhost' does NOT match server name!? [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.aaa.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.111.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.222.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.333.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.444.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.555.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: SSL server IP/port conflict: www.bbb.com:443 ... [Thu Mar 17 05:22:03 2016] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Thu Mar 17 05:22:03 2016] [notice] mod_ruid2/0.9.8 enabled [COLOR=#ff0000][Thu Mar 17 05:22:03 2016] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.32463) (5)[/COLOR] [Thu Mar 17 05:23:02 2016] [warn] RSA server certificate CommonName (CN)
localhost’ does NOT match server name!?
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.aaa.com:443 …
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.111.bbb.com:443…
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.222.bbb.com:443…
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.333.bbb.com:443…
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.444.bbb.com:443…
[Thu Mar 17 05:23:02 2016] [warn] Init: SSL server IP/port conflict: www.555.bbb.com:443…
[Thu Mar 17 05:23:02 2016] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!!
[Thu Mar 17 05:23:02 2016] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Thu Mar 17 05:23:02 2016] [warn] module rpaf_module is already loaded, skipping
[Thu Mar 17 05:23:03 2016] [warn] RSA server certificate CommonName (CN)localhost' does NOT match server name!? [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.aaa.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.111.bbb.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.222.bbb.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.333.bbb.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.444.bbb.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: SSL server IP/port conflict: www.555.bbb.com:443 ... [Thu Mar 17 05:23:03 2016] [warn] Init: You should not use name-based virtual hosts in conjunction with SSL!! [Thu Mar 17 05:23:03 2016] [notice] mod_ruid2/0.9.8 enabled [Thu Mar 17 05:23:03 2016] [warn] pid file /var/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [COLOR=#ff0000][Thu Mar 17 05:23:03 2016] [emerg] (28)No space left on device: Couldn't create accept lock (/var/log/httpd/accept.lock.15191) (5)[/COLOR] [Thu Mar 17 05:23:08 2016] [warn] RSA server certificate CommonName (CN)
localhost’ does NOT match server name!?