Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreate thumbnails and sending it to AWS #21

Closed
Tenzil opened this issue Dec 29, 2016 · 1 comment
Closed

Recreate thumbnails and sending it to AWS #21

Tenzil opened this issue Dec 29, 2016 · 1 comment

Comments

@Tenzil
Copy link

Tenzil commented Dec 29, 2016

Thank you for your time for creating this gem and answering this question.
The question is i am trying to recreate version and send it AWS S3 i am getting
the following error

Video.first.url.recreate_versions!

Video Load (0.4ms) SELECT "videos".* FROM "videos" LIMIT 1
Aws::S3::Errors::NoSuchKey: The specified key does not exist.
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/seahorse/client/plugins/raise_response_errors.rb:15:in call' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/aws-sdk-core/plugins/s3_sse_cpk.rb:18:in call'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/aws-sdk-core/plugins/param_converter.rb:20:in call' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/seahorse/client/plugins/response_target.rb:21:in call'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/seahorse/client/request.rb:70:in send_request' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-core-2.2.27/lib/seahorse/client/base.rb:207:in block (2 levels) in define_operation_methods'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-resources-2.2.27/lib/aws-sdk-resources/request.rb:24:in call' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-resources-2.2.27/lib/aws-sdk-resources/operations.rb:41:in call'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/aws-sdk-resources-2.2.27/lib/aws-sdk-resources/operation_methods.rb:19:in block in add_operation' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/carrierwave-aws-1.0.1/lib/carrierwave/storage/aws_file.rb:38:in read'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/carrierwave-0.10.0/lib/carrierwave/uploader/cache.rb:77:in sanitized_file' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/carrierwave-0.10.0/lib/carrierwave/uploader/cache.rb:116:in cache!'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/carrierwave-0.10.0/lib/carrierwave/uploader/versions.rb:226:in recreate_versions!' from (irb):6 from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.16/lib/rails/commands/console.rb:47:in start'
from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.16/lib/rails/commands/console.rb:8:in start' from /home/webonise/.rvm/gems/ruby-1.9.3-p551/gems/railties-3.2.16/lib/rails/commands.rb:41:in <top (required)>'
from script/rails:6:in require' from script/rails:6:in

@nsantiago2719
Copy link

I guess you need to configure your AWS configuration and add your access and secret key in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants