Cpanel

cPanel httpd Down – No space left on device: could not create accept mutex

HTTPD service mati dan entah kenapa tidak bisa di start.

[root@server ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2021-06-25 21:00:05 WIB; 14s ago
Process: 6943 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=1/FAILURE)
Main PID: 10128 (code=killed, signal=KILL)

Jun 25 21:00:04 server.kreston.co.id systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Jun 25 21:00:05 server.kreston.co.id restartsrv_httpd[6943]: [Fri Jun 25 21:00:05.150135 2021] [core:emerg] [pid 6960:tid 47069429560384] (28)No space left on device: AH00023: Couldn't create the...accept mutex
Jun 25 21:00:05 server.kreston.co.id restartsrv_httpd[6943]: (28)No space left on device: could not create accept mutex
Jun 25 21:00:05 server.kreston.co.id restartsrv_httpd[6943]: AH00015: Unable to open logs
Jun 25 21:00:05 server.kreston.co.id systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 25 21:00:05 server.kreston.co.id systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
Jun 25 21:00:05 server.kreston.co.id systemd[1]: Unit httpd.service entered failed state.
Jun 25 21:00:05 server.kreston.co.id systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Padahal setelah di cek disk space masih oke.

[root@server ~]# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9G 4.0K 1.9G 1% /dev/shm
tmpfs 1.9G 322M 1.6G 17% /run
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/vda1 78G 58G 18G 78% /
/dev/loop0 3.3G 16M 3.1G 1% /tmp
tmpfs 379M 0 379M 0% /run/user/0

Penyebab service Apache tidak berjalan karena semaphore, jadi semaphore ini digunakan untuk komunikasi antara proses yang aktif dari suatu aplikasi. Kalau di Apache, semaphore ini digunakan untuk komunikasi antara parent dengan child process.

Sekarang kita cek isi semaphore server.

ipcs -s

Wow, pasti banyak entry yang ada. Sekarang kita coba hapus.

for i in `ipcs -s | awk '/nobody/ {print $2}'`; do (ipcrm -s $i); done

Kemudian coba start httpd.

Leave a Reply

Your email address will not be published. Required fields are marked *