critical_create

Head Surfer
October 9th, 2008

critical_create(): semget() failed: No space left on device

From time to time this error pops up when attempting to restart apache. Most sys admins will tell you to reboot the server. However, that can cause unnecessary downtime! Especially if you haven’t completed a fschk in a while. However, here’s a fix that doesn’t require a reboot.

Login via SSH:
RUN This: ipcs
You will get a output like this:

Message Queues:
T ID KEY MODE OWNER GROUP

Shared Memory:
T ID KEY MODE OWNER GROUP

Semaphores:
T ID KEY MODE OWNER GROUP
s 524288 0 –rw——- apache apache
s 9240577 0 –rw——- apache apache
s 6684674 0 –rw——- apache apache
s 393219 0 –rw——- apache apache
s 1048580 0 –rw——- apache apache
s 23658501 0 –rw——- apache apache
s 12976134 0 –rw——- apache apache
s 393223 0 –rw——- apache apache
s 262152 0 –rw——- apache apache
s 262153 0 –rw——- apache apache

If apache’s not up and running, you can “ipcrm” them like this:
ipcrm -s 524288

So you simply run:
ipcrm -s $ID
for each of the ID’s that’s displayed. Once that’s complete simply restart apache! That will clear the Semaphores and you’ll be off to the races.

How To Host A Website is a Web Hosting Review service. We provide web hosting reviews for best hosting, server hosting, cheap hosting and more as we answer the most important website hosting question - How To Host Website pages successfully.

Words visitors used that found this page online:


Disclosure: We are a professional review site that receives compensation from the companies whose products we review. We are independently owned and the opinions expressed here are our own. Please contact us if you would like your web hosting company considered for a web hosting and support review.
Back to top Copyright 2012 © How To Host A Website, An OS Hosting, LLC Company