{"id":365,"date":"2010-03-24T17:16:13","date_gmt":"2010-03-24T15:16:13","guid":{"rendered":"http:\/\/www.shukko.com\/x3\/?p=365"},"modified":"2010-03-24T17:16:13","modified_gmt":"2010-03-24T15:16:13","slug":"fix-apache-no-space-left-on-device-couldnt-create-accept-lock-or-cannot-create-sslmutex","status":"publish","type":"post","link":"https:\/\/www.shukko.com\/x3\/2010\/03\/24\/fix-apache-no-space-left-on-device-couldnt-create-accept-lock-or-cannot-create-sslmutex\/","title":{"rendered":"Fix Apache &#8211; No space left on device: Couldn&#8217;t create accept lock or Cannot create SSLMutex"},"content":{"rendered":"<p>When dealing with mem-leaks in my mod_perl-apps I ran into a curious apache-problem. After a while apache could not be started but failed with strange errors like: [emerg] (28)No space left on device: Couldn&#8217;t create accept lock or [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed or [Wed Dec 07 00:00:09 2005] [error] (28)No space left on device: Cannot create SSLMutex There was definitely enough space on the device where the locks are stored (default \/usr\/local\/apache2\/logs\/). I tried to explicetely different Lockfiles using the LockFile-directive but this did not help. I also tried a non-default AcceptMutex (flock) which then solved the acceptlock-issue and ended in the rewrite_log_lock-issue. Only reboot of the system helped out of my crisis. <\/p>\n<p>Solution: There were myriads of semaphore-arrays left, owned by my apache-user.<\/p>\n<p>##  ipcs -s | grep apache <\/p>\n<p>Removing this semaphores immediately solved the problem.<\/p>\n<p> <code><br \/>\nipcs -s | grep apache | perl -e 'while (<STDIN>) { @a=split(\/\\s+\/); print `ipcrm sem $a[1]`}'<br \/>\n<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When dealing with mem-leaks in my mod_perl-apps I ran into a curious apache-problem. After a while apache could not be started but failed with strange errors like: [emerg] (28)No space left on device: Couldn&#8217;t create accept lock or [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed or [Wed Dec 07 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-kategerisiz"],"_links":{"self":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/comments?post=365"}],"version-history":[{"count":1,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/365\/revisions"}],"predecessor-version":[{"id":366,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/posts\/365\/revisions\/366"}],"wp:attachment":[{"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/media?parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/categories?post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shukko.com\/x3\/wp-json\/wp\/v2\/tags?post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}