carrierwave backgrounder s3 recreate_versions <p>I'm trying to follow <a href="https://github.com/carrierwaveuploader/carrierwave/wiki/How-to%3A-Recreate-and-reprocess-your-files-stored-on-fog" rel="nofollow">https://github.com/carrierwaveuploader/carrierwave/wiki/How-to%3A-Recreate-and-reprocess-your-files-stored-on-fog</a> instructions, but I was getting errors. my file is called <code>hat.jpg</code></p> <p>I'm using carrierwave_backgrounder so i needed these instructions to process immediately.</p> <pre><code>with_avatar.each do |instance| begin instance.process_avatar_upload = true instance.avatar.cache_stored_file! instance.avatar.retrieve_from_cache!(instance.avatar.cache_name) instance.avatar.recreate_versions! instance.save! rescue =&gt; e Rails.logger.info("ERROR: UserAvatar: #{instance.id} -&gt; #{e}") end end </code></pre> <p>So, i tried it in my console one line at a time. If I set process_avatar_upload = true, the next line fails</p> <pre><code>undefined method `cached?' for nil:NilClass </code></pre> <p>If i run the same command again i get</p> <pre><code>undefined method `content_length' for nil:NilClass </code></pre> <p>Finally, if I run a third time, it seems to work. However, when i get to the recreate_versions! I get this:</p> <pre><code>No such file or directory [my file path]/uploads/tmp/1454615129-9112-7053/square_hat.jpg </code></pre> <p>Its correct, there is no square, because that's what I'm trying to create.</p> <p>How can I recreate my versions on s3? I have a lot of them to do. Thanks.</p>