cordump.com

Apache disk full error, with lots of free disk space

by daven on May.12, 2008, under Uncategorized

Occasionally when attempting to start or restart Apache 2.2.X you may get an error like “No space left on device: Couldn’t create accept lock” in the error logs. No a quick df shows that you have plenty of space left on all filesystems so what now…
Apache uses semaphores to control its sub processes and sometimes those semaphore’s don’t get closed properly and the error you are getting actually means Help! and can’t get anymore semaphore’s.
Now to see if this is actually the case you can check the following command:

ipcs -s | grep

If you see a lot of entries, espically if Apache does not start, then this is probably your issue. Fortunately, there is an easy way to resolve the issue, just run the command below to kill all semaphores owned by .

ipcs -s | grep | perl -e ‘while () { @a=split(/\s+/); print `ipcrm sem $a[1]`}’

You do run everything as unique users don’t you? Other wise any other running applications or apache instances owned probably were killed and need to be restarted.


Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...