Wednesday, December 14, 2011

emerg] (28)No space left on device: Couldn't create accept lock (/var/lock/apache2/accept.lock)

if you can't start apache and see this error in apache error.log:

[emerg] (28)No space left on device: Couldn't create accept lock (/var/lock/apache2/accept.lock.11955) (5)
may be several ways making:

  • you exceeded your disk limit.. see df -h to watch free space on disk ( /var partiotion )
if you out of disk space free some space in /var  to start apace
  • Check for semaphore-arrays owned by your apache-user ( www-data  or  apache ...)
# ipcs -s | grep www-data  
( where, www-data - apace user )
if you see there some process, you should remove  the semaphores. It  should immediately solve the problem.

# for semid in `ipcs -s | grep www-data | cut -f2 -d” “`; do ipcrm -s $semid; doneipcs -s | grep www-data | awk '{ print $2 }' | xrags ipcrm sem

  •  you can increase sysctl paramert kernel.sem 

kernel.sem  = 250 32000 100 256 

No comments: