views:

26

answers:

0

I'm trying to run the Paperclip thumbnail regeneration task using paperclip:refresh:thumbnails CLASS=Photo but after sitting for ~5 minutes, I get a "rake aborted! Broken pipe" error.

The images are stored on S3.

Here is the full trace on the task:

Shpigford:pugspot_v3 Shpigford$ rake paperclip:refresh:thumbnails CLASS=Photo --trace
(in /Users/Shpigford/Work/Development/pugspot_v3)
** Invoke paperclip:refresh:thumbnails (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute paperclip:refresh:thumbnails
rake aborted!
Your socket connection to the server was not read from or written to within the timeout period. Idle connections will be closed.
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/error.rb:38:in `raise'
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:72:in `request'
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/base.rb:88:in `put'
/Library/Ruby/Gems/1.8/gems/aws-s3-0.6.2/lib/aws/s3/object.rb:241:in `store'
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb:202:in `flush_writes'
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb:199:in `each'
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/storage.rb:199:in `flush_writes'
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:142:in `save'
/Library/Ruby/Gems/1.8/gems/paperclip-2.3.1.1/lib/paperclip/attachment.rb:221:in `reprocess!'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:45
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:26:in `for_all_attachments'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:24:in `each'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:24:in `for_all_attachments'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:22:in `each'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:22:in `for_all_attachments'
/Users/Shpigford/Work/Development/pugspot_v3/lib/tasks/paperclip.rake:44
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/Library/Ruby/Gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

It's just trying to resize ~10 images (though some are as big as 10MB).