-
-
Notifications
You must be signed in to change notification settings - Fork 351
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
cannot load such file -- fog (LoadError) #401
Comments
That appears to be a somewhat older version of carrierwave, could you try updating to see if that solves the issue? |
Wasn't expecting this to work, but it did! I was using version 1.1.0 of carrierwave, and after updating it to 1.2.1 my code worked. Thanks @geemus |
@guilpejon awesome, honestly I wasn't sure either, but thought it was worth a try before we dug in. Thanks for the update! |
We are seeing the same problem with Carrierwave 1.2.1 - @guilpejon , what was the change you did exactly? Thanks! |
@lpradovera In my case I just updated Carrierwave to version 1.2.1 and I was able to start the server, but unfortunately I realized afterwards that fog-aws was still not working properly, so I returned to fog since I couldn't spend any more time debugging it. I will start a new issue here about it when I get the chance, and I suggest you to do the same. |
Your |
In our case, |
just copy CarrierWave.configure do |config|
config.storage = Fog
config.fog_directory = 'mybucket'
config.fog_public = false
config.fog_attributes = {'Cache-Control' => 'max-age=315576000'}
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: 'access_key',
aws_secret_access_key: 'secret_key',
aws_signature_version: 2,
endpoint: 'http://my.domain:7480',
path_style: true,
region: 'us-east-1'
}
end |
I have an application working with fog, carrierwave and AWS, and then I decided to switch to
fog-aws
.All I did was change
gem 'fog'
togem 'fog-aws'
in myGemfile
, and I thought it would work right away, but now the server won't start.The error seems to be happening inside my
config.fog_credentials
code in my carrierwave initialization file.I tried adding
require 'fog/aws'
but it didn't worked, and it returnsfalse
when I try to do this require on the console as well, even though I can run this lineFog::Storage.new(provider: 'AWS', aws_access_key_id: 'aws_id', region: 'us-west-2', aws_secret_access_key: 'aws_secret')
without a problem.Am I doing something wrong?
Here is my carrierwave initialization file:
And here is the dump:
The text was updated successfully, but these errors were encountered: