<?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>Common Media, Inc. &#187; paperclip</title>
	<atom:link href="http://www.commonmediainc.com/tag/paperclip/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.commonmediainc.com</link>
	<description>Online Communities and Web Development</description>
	<lastBuildDate>Fri, 06 May 2011 15:10:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Passenger, Paperclip, and Permissions (another route)</title>
		<link>http://www.commonmediainc.com/2009/06/09/passenger-paperclip-and-permissions-another-route/</link>
		<comments>http://www.commonmediainc.com/2009/06/09/passenger-paperclip-and-permissions-another-route/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 15:41:28 +0000</pubDate>
		<dc:creator>pjmorse</dc:creator>
				<category><![CDATA[Phusion Passenger]]></category>
		<category><![CDATA[Ruby on Rails]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.commonmediainc.com/?p=112</guid>
		<description><![CDATA[We had issues with file uploads recently on a site using Paperclip to handle uploads and served with Passenger. The site worked fine in development, but in production the uploads would fail. Checking the production log showed that Paperclip was producing the following error: [paperclip] An error was received while processing: #&#60;Paperclip::NotIdentifiedByImageMagickError: /tmp/passenger.1358/var/stream.25635.1 is not [...]]]></description>
			<content:encoded><![CDATA[<p>We had issues with file uploads recently on a site using <a href="http://www.thoughtbot.com/projects/paperclip">Paperclip</a> to handle uploads and served with <a href="http://www.modrails.com">Passenger</a>. The site worked fine in development, but in production the uploads would fail. Checking the production log showed that Paperclip was producing the following error:</p>
<pre>[paperclip] An error was received while processing: #&lt;Paperclip::NotIdentifiedByImageMagickError: /tmp/passenger.1358/var/stream.25635.1 is not recognized by the 'identify' command.&gt;</pre>
<p>A web search produced <a href="http://railsforum.com/viewtopic.php?id=18627">this railsforum thread</a> with some helpful advice, specifically to set</p>
<pre>Paperclip.options[:command_path] = "/usr/local/bin"</pre>
<p>in an initializer for Paperclip. Our problem was environment-specific, though, so we put it in the <code>config/environment/production.rb</code> file instead. No luck.</p>
<p>So I checked the Apache logs to see what error Passenger was producing. It wasn&#8217;t throwing an error of its own; instead we were seeing a lot of</p>
<pre>[DEPRECATION] S3 support through RightAWS is deprecated. S3 support will be changed to AWS::S3 in a future version.</pre>
<p>&#8230;in the Apache error log. It turned out that our development boxes were all using <a href="http://amazon.rubyforge.org/">the <code>aws-s3</code> gem</a>, and the production box was still on <a href="http://rightaws.rubyforge.org/"><code>RightAWS</code></a>. When we installed <code>aws-s3</code> on the server, the problem was solved.</p>
<p>So if you&#8217;re having Passenger and Paperclip problems, make sure you&#8217;re using the right interface with s3 as part of your troubleshooting process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.commonmediainc.com/2009/06/09/passenger-paperclip-and-permissions-another-route/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

