Note that there are some explanatory texts on larger screens.

plurals
  1. POpaperclip doesn't create thumbnails on heroku
    text
    copied!<p>I've been trying to get paperclip to upload images to amazon s3, but all I get is the original file being uploaded. No thumbnails are generated. My model has this in it:</p> <pre><code> has_attached_file :screenshot, :styles =&gt; { :thumb =&gt; "100x80&gt;", :medium =&gt; "195x150&gt;", :large =&gt; "390x300&gt;" }, :storage =&gt; :s3, :s3_credentials =&gt; "#{RAILS_ROOT}/config/s3.yml", :path =&gt; ":attachment/:id/:style.:extension" </code></pre> <p>The original file is in fact uploaded, but none of thumbnails appear. If I copy the src of a thumb format image, for instance, I get </p> <pre><code>&lt;Error&gt; &lt;Code&gt;NoSuchKey&lt;/Code&gt; &lt;Message&gt;The specified key does not exist.&lt;/Message&gt; &lt;Key&gt;screenshots/8/thumb.png&lt;/Key&gt; &lt;RequestId&gt;B8A408560070E836&lt;/RequestId&gt; − &lt;HostId&gt; HAHUCuNxGKVDvqE3GnhGT1RcBgFGUxa35kqXmyRE+ii60DJS6r22ChDr22cOeCea &lt;/HostId&gt; &lt;/Error&gt; </code></pre> <p>This is running on heroku, which forces me to use a service like amazon. Not a problem but all the documentation I can find makes this look straightforward. I can't find any dependencies (bundler is happy), and I've been using AWS for 2 years now, without these problems, on another site, with a different bucket on the same account. Is it a problem of connecting the bucket to the account? I'm using the same credentials as in the other site. Only the bucket changes. </p> <p>A couple more things. The directories that are being created in the path of the image that is being uploaded are permissions 000 or whatever the aws equivalent is. Nobody is permitted to do anything. </p> <p>using Rails 3.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload