Questions tagged [fog]

fog describes itself as 'the Ruby cloud services library'.

fog describes itself as 'the Ruby cloud services library'. It is available at https://fog.io/

498 questions
59
votes
3 answers

Warning with fog and AWS: unable to load the 'unf' gem

Every action in a rails console (rails server, rails console, db:migrate, etc.) raises a warning since my last bundle update: [fog][WARNING] Unable to load the 'unf' gem. Your AWS strings may not be properly encoded. I'm sure I didn't change…
Arenzel
  • 1,156
  • 1
  • 11
  • 18
32
votes
6 answers

AWS S3 Disabling SSLv3 Support

We received an email from AWS that basically says 'S3 is disabling SSLv3 Support, access will be cut-off in 15 days'. They then listed some buckets we have (one in production) that are 'currently accepting request from clients that specify SSLv3'.…
user1690146
  • 383
  • 3
  • 14
23
votes
1 answer

How to list all files in an S3 folder using Fog in Ruby

How do I list all the files in a specific S3 "directory" using Fog? I know that S3 doesn't store files in folders but I need a way to limit the returned files to specific "folder" instead of retrieving the entire list in the bucket.
Gerry Shaw
  • 9,178
  • 5
  • 41
  • 45
20
votes
1 answer

Carrierwave fog Amazon S3 images not displaying

I have installed carrierwave and fog, have successfully uploaded the images and viewed them the first time, but now it does not show the images anymore. Here is my config file app/config/initializers/carrierwave.rb CarrierWave.configure do…
Francois
  • 10,465
  • 4
  • 53
  • 64
19
votes
1 answer

Ruby fog gem causing server not to run: cannot load such file -- xmlrpc/client (LoadError)

As the title states, I'm trying to set up an Ubuntu 16.04 system for working on rails apps. When I comment out the fog gem, the server starts locally, and with the gem left in it produces the error message below. Googling doesn't seem to provide…
Mark
  • 6,112
  • 4
  • 21
  • 46
18
votes
2 answers

Access to main app secrets from Rails engine initializer

I have been trying (unsuccessfully) to access the main app's application secrets from within my Rails mountable engine. The whole point of a mountable engine is to provide modularity. Therefore a common pattern would be to provide configurable…
16
votes
1 answer

rails + carrierwave + fog + S3 socket error

I'm having this problem trying to use S3 services with fog and the Jquery File Upload (https://github.com/blueimp/jQuery-File-Upload) The error Excon::Errors::SocketError (getaddrinfo: nodename nor servname provided, or not known (SocketError)):…
Ron
  • 2,215
  • 3
  • 22
  • 30
16
votes
1 answer

Carrierwave check if remote file exists via fog

I know I'm missing something really easy here... CarrierWave::Storage::Fog::File has a method exists? How do I use it? I'm just trying to check whether a previously uploaded file exists on the remote storage. Neither my image object, nor my…
Demelziraptor
  • 1,545
  • 1
  • 14
  • 20
15
votes
1 answer

undefined method `fog_host='

When i'm trying to run my application, i'm getting the following error: config/initializers/carrierwave.rb:4: undefined method `fog_host=' for CarrierWave::Uploader::Base:Class (NoMethodError) Here is my initializers/carrierwave.rb…
mbajur
  • 4,406
  • 5
  • 49
  • 79
14
votes
1 answer

How to use Fog with CarrierWave only in Production

I am using Heroku and S3 with my Rails app. I only have the fog gem installed in production mode because my local computer is a piece of junk. Anyway, it works fine this way and has proven to be the better solution than pulling my hair out to get…
spitfire109
  • 9,651
  • 3
  • 20
  • 28
14
votes
2 answers

301 Moved Permanently after S3 uploading

Im trying to upload images to S3 on Ruby on Rails using carrierwave and fog gems, images are uploaded correctly but when I try tu save the model containing information about the image that was just uploaded Im getting this…
p1nox
  • 623
  • 1
  • 7
  • 13
13
votes
6 answers

How do I update a batch of S3 objects' metadata using ruby?

I need to change some metadata (Content-Type) on hundreds or thousands of objects on S3. What's a good way to do this with ruby? As far as I can tell there is no way to save only metadata with fog.io, the entire object must be re-saved. Seems like…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
13
votes
2 answers

Heroku timeout when uploading big file to s3

I got a problem with my application based on RefineryCMS 1.0.8 deployed on heroku. Heroku have a request timeout of 30 seconds. When uploading a file > 4MO through the RefineryCMS admin, it will sometimes take more than 30 seconds to perform…
Adrien Coquio
  • 4,870
  • 2
  • 24
  • 37
13
votes
2 answers

Fog deprecation warnings when starting Rails server

I migrated my Rails app to Rails 6.0.1 and every time I startup the server I get these Fog deprecation warnings. How can I get rid of them? Funny enough I have a cloned version of this app, which doesn't give these warnings... [fog][DEPRECATION]…
John
  • 6,404
  • 14
  • 54
  • 106
13
votes
2 answers

Can't upload photos to S3 with Fog in Rails : !! #

I was able to upload files in the past but for last day day I have not been able to upload files to my S3 When I try to upload a file from the console like Document.create(remote_file_url: 'http://www.pdf995.com/samples/pdf.pdf') I get…
MZaragoza
  • 10,108
  • 9
  • 71
  • 116
1
2 3
33 34