<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sonyboy.dk &#187; semaphore</title>
	<atom:link href="http://www.sonyboy.dk/tag/semaphore/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sonyboy.dk</link>
	<description>Tools, tip, tricks and other stuff I might come up with</description>
	<lastBuildDate>Sat, 04 Sep 2010 19:41:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Apache2 &#8211; No space left on device</title>
		<link>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/</link>
		<comments>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 07:32:59 +0000</pubDate>
		<dc:creator>Sonyboy</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[semaphore]]></category>

		<guid isPermaLink="false">http://www.sonyboy.dk/?p=34</guid>
		<description><![CDATA[I had problems restarting Apache2&#8230; After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user. The following appears to be some of the errors Apache writes in the log. [emerg] (28)No space left on device: Couldn&#8217;t create accept lock or [crit] (28)No space left [...]]]></description>
			<content:encoded><![CDATA[<p>I had problems restarting Apache2&#8230; After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user.</p>
<p>The following appears to be some of the errors Apache writes in the log.</p>
<ul>
<li>
<div class="codesnip-container" >[emerg] (28)No space left on device: Couldn&#8217;t create accept lock</div>
<p> or</li>
<li>
<div class="codesnip-container" >[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed</div>
<p> or</li>
<li>
<div class="codesnip-container" >[error] (28)No space left on device: Cannot create SSLMutex</div>
</li>
</ul>
<p>After stopping Apache I found the semaphores with the following command</p>
<div class="codesnip-container" >ipcs -s | grep www-data</div>
<p>Removing this semaphores immediately solved the problem.</p>
<div class="codesnip-container" >ipcs -s | grep www-data | perl -e &#8216;while (&lt;STDIN&gt;) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</div>]]></content:encoded>
			<wfw:commentRss>http://www.sonyboy.dk/2009/07/22/apache-no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

