Questions tagged [fog-aws]

15 questions
7
votes
1 answer

Ruby Fog gem: how to create sub-directories?

I have connection = Fog::Storage.new(fog_config) bucket = connection.directories.get(bucket_name) Is there a way (documented, non-documented, work-around) for me to create directories inside of this bucket? Something…
RoundOutTooSoon
  • 9,821
  • 8
  • 35
  • 52
5
votes
5 answers

NameError: uninitialized constant CarrierWave::Storage::Fog

I have tried several solution given on stackoverflow and github, but couldnt find the solution. I am using carrierwave (0.10.0) and fog-aws (0.8.1) gems for my app to upload image to S3. NameError: uninitialized constant…
Pulkit Agarwal
  • 594
  • 1
  • 9
  • 22
2
votes
1 answer

Sinatra CarrierWave Fog - NameError: uninitialized constant Fog

I have been trying to setup CarrierWave with Sinatra and Fog for S3 File Management. I constantly keep running into issues around Fog being undefined. This works fine the moment I change the storage to :file. I have so far also tried solutions…
Anurag Ramdasan
  • 4,189
  • 4
  • 31
  • 53
1
vote
0 answers

AWS S3 Ruby Stream Download: Retry connection during chunk download

I was wondering if someone could help me with a streaming download issue I am having? Currently I have a large GZipped XML file stored in a s3 bucket that I need to download, decompress, and parse daily using ruby. Because of the size of the file I…
Will
  • 386
  • 2
  • 15
1
vote
1 answer

Best practices to use Fog::Logger

What are the best practices to use Fog::Logger. Fog provides 3 types of logging: debug deprecation warning module Fog class Logger @channels = { :deprecation => ::STDERR, :warning => ::STDERR } @channels[:debug] =…
Shaffan
  • 53
  • 10
0
votes
1 answer

rspec How to test the `require`

I have a model that broke my application on Hereku. I read the logs and I saw that I needed to require 'zip' Now I am not sure why it worked on my local or on CI but I would like to write a test that would make sure that require 'zip' in on that…
MZaragoza
  • 10,108
  • 9
  • 71
  • 116
0
votes
1 answer

heroku deploy fails with fog-aws (says formatador "removed")

I have a web site uploading images to AWS using the fog-aws gem. Everything works fine when I run it locally, but it will not deploy to heroku. Standard heroku/ruby buildpack, latest versions of everything: ruby 2.5.1, rails 5.2.2, gem…
0
votes
1 answer

SignatureNotFound with fog-aws and carrierwave

I am using carrierwave and fog-aws while uploading a file to aws and storing the aws url in my local DB table.I have created carrierwave.rb file to config all fog-aws credentials. begin CarrierWave.configure do |config| #…
Smruti
  • 13
  • 5
0
votes
1 answer

Testing Carrierwave with Rails

I recently linked my Rails App with Amazon S3 so that my users can upload files while I host on Heroku. I followed the tutorial at Firehose…
Jeff Zivkovic
  • 547
  • 1
  • 4
  • 20
0
votes
2 answers

I'm getting an error when I try to start my rails server that it can't (carrier_wave) can't load fog

I don't know why but now when I try to start the rails server, either with rails s or bundle exec rails s I get this error: active_support/dependencies.rb:274:in 'require': cannot load such file -- fog (LoadError) It was working and now it won't…
Thermatix
  • 2,757
  • 21
  • 51
0
votes
1 answer

After upload image on S3 I get invalid url

After upload image on S3 I get invalid url. https://s3.amazonaws.com//uploads/... My Carrierwave settings CarrierWave.configure do |config| config.fog_credentials = { :provider => 'AWS', :aws_access_key_id =>…
Andy
  • 863
  • 1
  • 8
  • 20
0
votes
0 answers

Why can't I upload a file larger than 1MB to S3 with carrierwave and fog-aws?

I have implemented a file upload for my rails app using carrierwave, S3 and fog-aws. It works well in my local development environment regardless of file size. But when deployed to AWS, file uploads < 1MB succeed, anything > 1MB has resulted in a…
Sookie J
  • 823
  • 2
  • 8
  • 16
0
votes
1 answer

Fog with Carrierwave upload to S3 default upload path invalid

I'm trying to upload to S3 with Carrierwave and Fog-Aws, and I'm having an issue. For some reason, fog is trying to upload to my bucket at https://{bucket-name}.s3.amazonaws.com But, when I access a file directly from aws, the url format is like…
Charlie Pugh
  • 342
  • 2
  • 18
0
votes
1 answer

ERROR: Could not find a valid gem 'fog-aws' (= 0.8.1)

I am using ruby 2.0.0 and Rails 4.0 . i added gem 'fog' gem "fog-aws" on my gem file when i am trying to bundle install, getting following error An error occurred while installing fog-aws (0.8.1), and Bundler cannot continue. Make sure that `gem…
-1
votes
1 answer

Rails / Puma (systemctl) / Fog worker issue

I am running ruby "3.1.1", rails (7.0.3.1), fog-aws (3.14.0), fog-core (2.3.0) and I start puma using systemd. Requests come in through AWS ALB 443 -> 80. Since implementing the fog-aws Gem my puma_access.log just keeps writing: [31723] ! Unable to…
Ruby Dev
  • 63
  • 6