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
1 answer

Ruby on Rails + Michael Hartl tutorial + VPS = issues with AWS

I have finished Michael Hartl tutorial and I'm trying to deploy it with https://www.digitalocean.com/community/tutorials/how-to-deploy-a-rails-app-with-puma-and-nginx-on-ubuntu-14-04. Unfortunately I'm stuck with RAILS_ENV=production rake db:migrate…
0
votes
1 answer

AWS create instance using 'fog'

I am trying to create an AWS instance using rubygem fog. For some reason the bootstrap method just takes too long (more than 10 minutes) and my script times out. Here is what I am using server = @compute.servers.bootstrap(:key_name => 'mykey', …
ankitrokdeonsns
  • 638
  • 4
  • 18
0
votes
2 answers

Amazon S3 - Carrierwave Image Upload

So, I'm trying to upload an image from the Rails API to S3, using Fog. Whenever I try to upload the image, I get this: Excon::Errors::Forbidden (Expected(200) <=> Actual(403 Forbidden) (...) All access to this object has been disabled It is…
Sebyddd
  • 4,305
  • 2
  • 39
  • 43
0
votes
1 answer

Retrieve runtimeInfo from a VM with Vsphere in Fog (Ruby)

I made a script in ruby which retrieves informations from VM using the Vsphere API with the Fog gem. I'd like to access to VirtualMachine:VirtualMachineRuntimeInfo:runtime in Vsphere API. My problem is that to access this resource I need to retrieve…
Paul
  • 1
  • 2
0
votes
0 answers

How to delete a file from the server using Fog and Carrierwave after it's being downloaded?

Im using Carrierwave and Fog to upload a temporary file to S3. I then use fog_authenticated_url_expiration to give a expiring url to the use. After the user download this file, I want to remove it from S3. How can I do this?
THpubs
  • 7,804
  • 16
  • 68
  • 143
0
votes
1 answer

How To Create Google Compute Engine Instance Using Fog In Ruby

I try with following code but i am getting error, server = connection.servers.create({ :name => "instance-#{Time.now}", :image_name => "debian-7-wheezy-v20150325", :machine_type => "f1-micro", :zone_name => "us-central1-a", …
Vijay
  • 443
  • 4
  • 13
0
votes
0 answers

ckeditor Rails 4 carrierwave s3 fog

I am having a lot of difficulties uploading images to S3 via CarrierWave & Fog. I already had set up carrierwave and s3 and had no problems but then I added Ckeditor. The biggest problem I am having is that all the images I upload using the Ckeditor…
Macgill4444
  • 244
  • 1
  • 12
0
votes
1 answer

Why assets precompile says "canot load such file fog-aws"

I have added fog to my gemfile and run bundle, after that assets:precompile. Gives me that fog-aws can not load. Then add fog-aws too, gives same thing. In project used ruby 1.9.3 What's wrong, i don't understand What can i do to solve…
dilshod
  • 1,831
  • 2
  • 12
  • 11
0
votes
1 answer

bosh deploy get uninitialized constant Fog::AWS::CredentialFetcher (NameError)

I am try deploy stcemcells by use bosh micro. I have a stemcell bosh-stemcell-2719.2-openstack-kvm-centos-go_agent.tgz and a deploy file micro_bosh.yml they are in same folder "my-micro-deployment" my deploy file micro_bosh.yml's content is in…
0
votes
1 answer

Heroku push fog error

When i push my app to heroku server below error was occur and did not start thin server, it works early master push, But unfortunately it has stopped pushing. Blow i added the error log, But in localhost it is working and start thin server , Is that…
0
votes
1 answer

Reprocessing large amount Paperclip styles

I have a decent amount of paperclip attachments(~270k, images) which I want to add another style to. These are all stored on S3 with fog. From initial testing and some back of the napkin calculations it seems like it would take about 2 weeks to do…
Hugo Tunius
  • 2,869
  • 24
  • 32
0
votes
1 answer

Download file from Amazon S3 through Carrierwave and Fog

I have a simple app in Rails which allows me to upload file to Amazon S3 by using Carrierwave and fog. It works fine. I'm now working on downloading the files and display them on the browser. It works. However, the private link (which I set it to be…
Winston
  • 13
  • 4
0
votes
1 answer

Make previously public files private with fog

I have uploaded files to a aws bucket using fog and carrierwave. All these files have been uploaded as public files (this is apparently default behaviour for fog) At the moment i do not want any of these files to be public. I have applied the…
Ole Henrik Skogstrøm
  • 6,353
  • 10
  • 57
  • 89
0
votes
1 answer

Socket Error when uploading CarrierWave image after changing to chruby

My setup was working fine until I switched from RVM to CHRuby. When I restarted the server and loaded the local page, I got a dialog box that looked like…
vanilla_skies
  • 415
  • 5
  • 15
0
votes
1 answer

Local (outside EC2) testing with Fog/Carrierwave and IAM instance profiles?

I understand that I can configure fog to use IAM instance profiles (I’m uploading to S3 via fog/carrierwave) by passing use_iam_profile => true. What I haven’t yet figured out is how to test my code outside of an EC2 instance, like on my local…
bkocik
  • 414
  • 2
  • 5
  • 14