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
0
votes
0 answers

Amazon S3 file request error

I am currently attempting to implement Amazon S3 into my rails application but am walking into an issue. The gems i am using is CarrierWave and Fog. This is the error i get when i try visit a file/image url. AccessDenied
Francis Malloch
  • 1,074
  • 9
  • 20
0
votes
1 answer

How to upload(multipart upload) large files to Google Cloud Storage using fog gem

For AWS s3 we have the methods with fog to upload large files in chunks initiate_multipart_upload, upload_part and complete_multipart_upload and are working fine. But if I call the methods like initiate_multipart_upload with google it is showing…
AshokGK
  • 875
  • 1
  • 10
  • 20
0
votes
1 answer

Fog error: undefined method `available?' for MoudleName:Module

I have created new module for fog and its working well but, when I am trying to run tests using command export FOG_MOCK=true && bundle exec shindont getting below error /fog/lib/fog/bin.rb:6:in block in available_providers': undefined…
Ranjan Kumar
  • 49
  • 1
  • 8
0
votes
1 answer

Uploading with jquery-fileupload-rails on rails4 getting forbidden attributes error

I have a Image model which belongs to Gallery. I have an additional/seperate form in my gallery edit page to upload images and associate them with the gallery. I am using Fog with Carrierwave to upload to Rackspace files. The error I get is…
0
votes
1 answer

ruby script to request videos and upload them to s3

Problem: Transfer some videos from openstack(swift) to s3 Gems: fog, aws-sdk I have an array of paths something like: videos_paths = ["videos/attachments/5142/9f988f89ds9f8/lecture.mp4", "videos/attachments/3134/lecture2.mp4" ..... ] I create urls…
radubogdan
  • 2,744
  • 1
  • 19
  • 27
0
votes
1 answer

What AWS S3 permission do I need to get the header of a file?

I'm using the Ruby Gem called Fog to access S3 and I'm trying to tighten permissions. One of the things I'm doing is this: storage.files.head(file_name) where storage was obtained like this: storage =…
Pablo Fernandez
  • 279,434
  • 135
  • 377
  • 622
0
votes
2 answers

Store two versions of a file at once using Carrierwave

I'm using Carrierwave and Fog gems to store a file to my Amazon S3 bucket (to /files/file_id.txt). I need to store a slightly different version of the file to a different location in the bucket (/files/file_id_processed.txt) at the same time (right…
michalvalasek
  • 1,413
  • 1
  • 10
  • 13
0
votes
0 answers

Error while installing fog in ruby 1.8.7

I'm working with fog under ruby 1.9 but in our new requirements we need to support ruby 1.8.x. I research and found this (https://github.com/fog/fog#ruby-187) that suggest adding: gem 'nokogiri', '~>1.5.0' will solve my problem but I'm still…
MemoGarcia
  • 71
  • 1
  • 5
0
votes
1 answer

How to retrieve file with unicode name from Amazon S3 with fog

It works well with files with english symbols in name, but if file has cyrillic name, it fails with exception: "undefined method `body' for…
maksfromspb
  • 177
  • 10
0
votes
1 answer

Fog and Openstack can't specify network by name

I am trying out a new feature for chef called Chef-Metal and it uses Fog as the driver to connect to Openstack. I am having a lot of trouble getting the correct syntax to identify the network I want by name and not :net_id. This is what I have…
jarsever
  • 690
  • 1
  • 7
  • 15
0
votes
1 answer

sitemap_generator and Carrierwave - Change S3 permission, but only temporarily

I am using Rails 3.2 with carrierwave and sitemap_generator. The file is correctly uploaded, but the permissions are not public on S3. How can I set the permission for this "sitemap.xml.gz" file only? My S3 Bucket is normally only open for…
Jan
  • 12,992
  • 9
  • 53
  • 89
0
votes
2 answers

Is there a way to set the default port when using the Ruby Fog Ge

I am trying to use the fog gem to bootstrap a EC2 host that is listening for ssh connections on a different port than 22. Is there a way to force fog to use a different port than 22? I looked in the docs and did not see a way. I can change…
cdub50
  • 23
  • 3
0
votes
1 answer

Upload videos to Amazon S3 using ruby with sinatra

I am building an android app which has a backend written on ruby/sinatra. The data from the android app is coming in the form of json data. The database being used is mongodb. I am able to catch the data on the backend. Now what I want to do is to…
Gautam
  • 1,754
  • 1
  • 14
  • 22
0
votes
1 answer

How to set content_type for Fog storage in Paperclip

I am using paperclip for uploading files to S3 through Fog. However, I am having problem of setting the correct content_type for the text file. I have searched all places on the Internet but I have not found the solution for this issue. Do you have…
The Lazy Log
  • 3,564
  • 2
  • 20
  • 27
0
votes
1 answer

Ruby Excon SSL SocketError: read finished A

Using Ruby on Rails with Carrierwave + Fog, which relies on Excon to connect to S3. The Rails server is being run on AWS EC2. Most of the time, the Carrierwave uploader works fine, but often I get the following error and stack…
matkam
  • 175
  • 1
  • 6