{"id":27,"date":"2009-09-17T17:04:45","date_gmt":"2009-09-17T21:04:45","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=27"},"modified":"2013-03-20T08:38:59","modified_gmt":"2013-03-20T12:38:59","slug":"apache-no-space-left-on-device-couldnt-create-accept-lock","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/apache-no-space-left-on-device-couldnt-create-accept-lock","title":{"rendered":"Apache: [emerg] (28)No space left on device: Couldn&#8217;t create accept lock"},"content":{"rendered":"<p><span style=\"color: #0000ff;\"><strong>semget:<\/strong><\/span><span style=\"color: #0000ff;\"><strong> [emerg] (28)  No space left on device OR Apache: No space left on device: Couldn&#8217;t create accept lock<\/strong><\/span><\/p>\n<p>You may receive <strong>&#8220;No space left on device&#8221;<\/strong> message while starting the Apache service, however, it has nothing to do with the disk space. The reason behind the error message is Semaphores.<\/p>\n<p>You will have to <strong>kill the active semaphore processes in order to start Apache service<\/strong> successfully. To list the PIDs of the active semaphore processes, execute:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># ipcs -s\r\n<\/strong><\/span><strong>------ Semaphore Arrays --------\r\nkey\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 semid\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 owner\u00a0 \u00a0 \u00a0 perms\u00a0\u00a0\u00a0\u00a0\u00a0 nsems\r\n0x00000000 366673220\u00a0\u00a0\u00a0 apache\u00a0\u00a0\u00a0 600\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\r\n0x00000000 366706589\u00a0\u00a0\u00a0 apache\u00a0\u00a0\u00a0 600\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\r\n0x00000000 366732358\u00a0\u00a0\u00a0 apache\u00a0\u00a0\u00a0 600\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1\r\n0x00000000 366734353 \u00a0\u00a0 apache\u00a0\u00a0\u00a0 600\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 1<\/strong><\/pre>\n<\/blockquote>\n<p>It will list all the PIDs which need to be killed:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># ipcrm -s PID<\/strong><\/span><\/pre>\n<\/blockquote>\n<p>If you have a long list of processes, execute the following commands:<\/p>\n<blockquote>\n<pre><span style=\"color: #0000ff;\"><strong># ipcs -s | grep apache | awk ' { print $2 } ' | xargs ipcrm sem<\/strong><\/span><\/pre>\n<\/blockquote>\n<p><strong>Replace &#8221;apache&#8217; in the above command with the actual &#8220;owner&#8221; of the processes returned in the &#8220;ipcs -s&#8221; command. <\/strong>Apache will start successfully once these processes are killed.<\/p>\n<p><strong>What is a Semaphore?<\/strong><br \/>\nSemaphores are use to communicate between active processes. Apache write down some information of such processes before the communication actually begins and if Apache fails to write the information, it results in the &#8220;No space left on device: Couldn&#8217;t create accept lock&#8221; error message.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>semget: [emerg] (28)  No space left on device OR Apache: No space left on device: Couldn&#8217;t create accept lock<br \/>\nYou may receive &#8220;No space left on device&#8221; message while starting the Apache service, however, it has nothing to do with the disk space. The reason behind the error message is Semaphores.<br \/>\nYou will have to kill the active semaphore processes in order to start Apache service successfully. To list the PIDs of the active semaphore processes, execute:<\/p>\n<p># ipcs -s<br \/>\n&#8212;&#8212; Semaphore Arrays &#8212;&#8212;&#8211;<br \/>\nkey\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 semid\u00a0\u00a0\u00a0\u00a0 \u00a0\u00a0 owner\u00a0 \u00a0 \u00a0 perms\u00a0\u00a0\u00a0\u00a0\u00a0 nsems<br \/>\n0x00000000 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[517,1071,515,512,1072,513],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/27"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=27"}],"version-history":[{"count":11,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions"}],"predecessor-version":[{"id":396,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/27\/revisions\/396"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=27"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=27"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=27"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}