<?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/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>The Present Group Journal &#187; troubleshooting</title>
	<atom:link href="http://blog.thepresentgroup.com/category/troubleshooting/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.thepresentgroup.com</link>
	<description>Exploring new models of support for contemporary artists, musing on the art world and people who make stuff, and documenting our life running the Present Group subscription art project.</description>
	<lastBuildDate>Wed, 01 Jun 2016 20:47:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<!-- podcast_generator="podPress/8.8" -->
		<copyright>&#xA9;The Present Group </copyright>
		<managingEditor>oliver@thepresentgroup.com (The Present Group)</managingEditor>
		<webMaster>oliver@thepresentgroup.com(The Present Group)</webMaster>
		<category></category>
		<ttl>1440</ttl>
		<itunes:keywords>art, artist interviews, contemporary art, subscription art</itunes:keywords>
		<itunes:subtitle>We interview one artist every season to learn about their practice, ideas and life as a working artist. 
</itunes:subtitle>
		<itunes:summary>The Present Group is a quarterly art subscription project.  We enable a community of subscribers to fund contemporary artists projects and receive limited edition artwork in return. Each work is accompanied by an audio artist interview and critical essay to help our subscribers gain insight into the piece, its creator and his/her practice, or recurring themes in the contemporary art world. 

Founded in 2006, the goals of The Present Group are to create new avenues of support for artists, create consistently thought-provoking, editionable works in a variety of media, to engage and expose a broader public to the joys of art collecting, and provide a free online resource for anyone interested in contemporary art.  
http://www.thepresentgroup.com
</itunes:summary>
		<itunes:author>The Present Group</itunes:author>
		<itunes:category text="Arts"/>
<itunes:category text="Arts">
  <itunes:category text="Visual Arts"/>
</itunes:category>
		<itunes:owner>
			<itunes:name>The Present Group</itunes:name>
			<itunes:email>oliver@thepresentgroup.com</itunes:email>
		</itunes:owner>
		<itunes:block>No</itunes:block>
		<itunes:explicit>no</itunes:explicit>
		<itunes:image href="http://blog.thepresentgroup.com/images/tpg-box.jpg" />
		<image>
			<url>http://blog.thepresentgroup.com/images/tpg-box-small.jpg</url>
			<title>The Present Group Journal</title>
			<link>http://blog.thepresentgroup.com</link>
			<width>144</width>
			<height>144</height>
		</image>
		<item>
		<title>Our Chinese tcpsndbuf Error</title>
		<link>http://blog.thepresentgroup.com/2010/07/25/our-chinese-tcpsndbuf-error/</link>
		<comments>http://blog.thepresentgroup.com/2010/07/25/our-chinese-tcpsndbuf-error/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 19:58:10 +0000</pubDate>
		<dc:creator>Oliver</dc:creator>
				<category><![CDATA[hosting knowledge base]]></category>
		<category><![CDATA[systems administration]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[web hosting]]></category>

		<guid isPermaLink="false">http://blog.thepresentgroup.com/?p=1813</guid>
		<description><![CDATA[A couple weeks ago we noticed in Virtuozzo that we were getting a lot of tcpsndbuf &#8220;Black Zones&#8221;.  Thankfully, it wasn&#8217;t taking down the server, but it was disheartening.  Checking our bean counters the failcnt (the last number) was huge: tcpsndbuf        192296     192296    2867477    4096277  151117486 Why was it happening? After a little research into [...]]]></description>
			<content:encoded><![CDATA[	<p>A couple weeks ago we noticed in Virtuozzo that we were getting a lot of tcpsndbuf &#8220;Black Zones&#8221;.  Thankfully, it wasn&#8217;t taking down the server, but it was disheartening.  Checking our bean counters the failcnt (the last number) was <em>huge</em>:</p>
	<blockquote><p>tcpsndbuf        192296     192296    2867477    4096277  151117486</p></blockquote>
	<h2 class="blue">Why was it happening?</h2>
	<p>After a little research into what a<a href="http://wiki.openvz.org/UBC_secondary_parameters#tcpsndbuf"> tcpsndbuf</a> is and why this error might arise, it turned out that most people have this problem when tons of emails are being sent out all at once.  If you think this is your problem, check your mail log to see if anything&#8217;s fishy.  Look at what was happening email-wise at the time of the &#8220;black zone&#8221;.  <a href="http://wiki.vpslink.com/Linux_HOWTO:_Find_and_Secure_Rogue_PHP_Mail_Scripts" target="_blank">Here&#8217;s a post </a>about tracking down a rogue email script.</p>
	<p>Another reason this might happen is when <a href="http://forums.vpslink.com/centos/2446-tcpsndbuf-failcount-very-high-have-no-idea-why.html" target="_blank">large files are being downloaded simultaneously</a>.</p>
	<h2 class="blue">Tracking it down</h2>
	<p>First we checked the mail logs to see if one of our clients had a script that was spamming, or sending out newsletters to a giant email list or some other nefarious plot was at hand.  No dice, they&#8217;re good citizens.</p>
	<p>Next we checked the bandwidth usage and noticed that one domain in particular was using much more than usual (like 20 times what it usually uses per month).  This site was a blog that ran a <a href="http://boehners.com/?cat=44" target="_blank">weekly feature</a> tracing a single song through all its manifestations being covered by other artists.  Each post had 5 &#8211; 10 mp3s. Now we were getting somewhere.</p>
	<p>Checking out their apache access logs it turned out that these audio files had been discovered by a website in China.  There were tons requests for the audio files with no referer, originating from an IP in China, or from the site itself.</p>
	<h2 class="blue">Fixing It</h2>
	<p>I&#8217;m not trying to hook China up with free Xiu Xiu mp3s so here&#8217;s how we stopped them.  Basically we set up an .htaccess file that rejected requests for audio files where the referer didn&#8217;t at least have our domain name in it, or that came directly from the offending site.  Here&#8217;s the code:</p>
	<blockquote><p>RewriteEngine On<br />
RewriteCond %{REQUEST_URI} /audio/.*<br />
RewriteCond %{HTTP_REFERER} !.*theDomainInQuestion.* [OR]<br />
RewriteCond %{HTTP_REFERER} .*the\.incomingIP\.fromTheChinese\.site.*<br />
RewriteRule .* &#8211; [F]</p></blockquote>
	<p>The problem with this method is that it&#8217;s pretty strict.  Because it will refuse any downloads that don&#8217;t come directly from the domain, this means it will deny links from an RSS feed too.  You could get around this limitation by changing line 3 to something like:</p>
	<blockquote><p>RewriteCond %{HTTP_REFERER} ^$ [OR]</p></blockquote>
	<p>which would prevent requests from no referer, and then tweak it from there, adding more [OR]s to block specific sites.</p>
	<p>In consultation with the site owners we decided this strict method was fine.  We added a notice to each post in their RSS feed explaining the problem and notifying readers that the audio files were available on the site.
</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.thepresentgroup.com/2010/07/25/our-chinese-tcpsndbuf-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
