[emerg] (28)No space left on device: Couldn't create accept lock (/etc/httpd/logs/accept.lock.15449) (5) solution


[Wed Jan 08 18:50:07 2014] [emerg] (28)No space left on device: Couldn't create accept lock (/etc/httpd/logs/accept.lock.15449) (5)

This may happen when trying to restart Apache and you find it dies right after starting and check /var/log/httpd/error_logs.

What is the cause of this?

  1. You could be out of disk space (if you're not then see #2 and below)
  2. You're out of Semaphores, you need to kill all the old ones.


Check to see current Semaphores, if Apache has stopped it should have none.  If you run the command below and see them you need to manually kill them.


ipcs -s
------ Semaphore Arrays --------
key        semid      owner      perms      nsems    
0x00000000 0          apache    600        1        
0x00000000 229377     apache    600        1        
0x00000000 262146     apache    600        1        
0x00000000 294915     apache    600        1        
0x00000000 327684     apache    600        1        
0x00000000 360453     apache    600        1        
0x00000000 1671174    apache    600        1        
0x00000000 1900551    apache    600        1        
0x00000000 8781832    apache    600        1        
0x00000000 8814601    apache    600        1        
0x00000000 8847370    apache    600        1        
0x00000000 8880139    apache    600        1        
0x00000000 8912908    apache    600        1        
0x00000000 8945677    apache    600        1        
0x00000000 8978446    apache    600        1        
0x00000000 13205519   apache    600        1        
0x00000000 13238288   apache    600        1        
0x00000000 13271057   apache    600        1        
0x00000000 13303826   apache    600        1        
0x00000000 13336595   apache    600        1       
 
 

The bash script below will kill all the old semaphores and you should be able to start Apache succesfully after that.


for ipcs in `ipcs -s|awk '{print $2}'`;
do
echo "ipcs=$ipcs"
ipcrm -s $ipcs
done

 


Tags:

emerg, couldn, etc, httpd, logs, wed, restart, apache, var, error_logs, disk, semaphores, manually, ipcs, semaphore, arrays, semid, perms, nsems, bash, succesfully, awk, echo, quot, ipcrm,

Latest Articles

  • QEMU / KVM How To Manually Create Basic Virtual Machine VM
  • Linux wlan0 check all wireless clients
  • PHP Issues With Decoding Strange Smart Quotes And Non-Standard ASCII Characters
  • /etc/iproute2/rt_tables default settings file in Linux Centos 6,7 and most other NIX's
  • bind named error solutions named[2169]: error (no valid DS) resolving / error (broken trust chain) resolving / : error (no valid RRSIG) resolving 'com/DS/IN':
  • iptables how to log ALL dropped incoming packets
  • How To Edit Linux Based NM Network Manager Connection Settings Without GUI
  • Linux Disable IPV6 Centos / Debian / Mint Howto
  • Linux use growisofs to burn a larger file on a BD-R / Bluray Disc
  • Linux partprobe/partx cannot access last and 4th partition
  • DRBD Errors Caused By Physical Corruption
  • mdadm: add new device failed for /dev/sdb4 as 3: Invalid argument solution
  • Linux named / bind how to dump, view and clear the cache!
  • Centos 6 / 7 / 8 How To Change Default nameservers in /etc/resolv.conf when using DHCP / dhclient
  • Adobe Acrobat Reader for Linux to use and view XFA Fillable Forms
  • Debian Linux Mint Ubuntu iptables save and restore settings automatically onboot and reboot
  • Why SMART is not smart at all and doesn't properly predict disk errors that cause a kernel panic or crash
  • scp: ambiguous target error and solution
  • VirtualBox How To Add iSCSI Storage using VBoxManage
  • iSCSI on Centos 7 Configuration and Setup Guide for Initiator and Target