Apache failed to start with the “No space left on device” error.

If you receive the following error while restarting Apache in the server, you need to do the following steps.

[error] (28)No space left on device: Cannot create SSLMutex Configuration Failed

These errors means that there is no available IPC (inter-process communication)  resources in the system, such as semaphores or shared memory segments. You need to check IPC resources which are  used in the server using ‘ipcs’ command:

$ ipcs -a

—— Semaphore Arrays ——–
key        semid      owner      perms      nsems
0x00000000 201293824  apache    600        1

You will be able to see a lot of semaphores under Apache . You need to kill those processes using the following script and restart apache.

$ ipcs -s | grep apache | perl -e ‘while (<STDIN>) {@a=split(/\s+/); print `ipcrm sem $a[1]`}’
$ service httpd restart
Both comments and pings are currently closed.

Comments are closed.