Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Global S3 configuration #291

Closed
benschwarz opened this Issue Mar 5, 2012 · 11 comments

Comments

Projects
None yet
5 participants

When I move my S3 credentials to config.rb I receive the following error when kicking off a backup.

Missing required arguments: aws_access_key_id, aws_secret_access_key

It seems that these params are not passed to the fog gem.

(Using 3.0.23)

Have you added it like this into the config.rb file?

Backup::Configuration::Storage::S3.defaults do |s3|
  s3.access_key_id     = "123"
  s3.secret_access_key = "123"
end

I have it in my config.rb and it works fine for me.

Yes. When I run the model it says that the aws access key and secret are missing.
Which I think is fog exploding from the missing param.

On 06/03/2012, at 7:44 AM, Dean Perry wrote:

Have you added it like this into the config.rb file?

Backup::Configuration::Storage::S3.defaults do |s3|
 s3.access_key_id     = "123"
 s3.secret_access_key = "123"
end

Reply to this email directly or view it on GitHub:
meskyanichi#291 (comment)

How are you triggering the backup because it sounds as though you're running it a different way? Also, what version of fog do you have?

webmat commented Mar 15, 2012

I'm having the same problem with backup 3.0.23, fog 1.1.2 and parallel 0.5.16 on ruby 1.9.3p125. Setting the AWS credentials in config.rb doesn't work, but it works fine in my backup model.

Would you be able to post it in a gist/create a github repo and post the link here? Without any of the credentials of course :)

webmat commented Mar 16, 2012

Thanks for looking into it :-)

Hmm how odd. I have added the AWS_KEY and AWS_SECRET to my own backup config files (config.rb) and it works straight away on my server. Now to see why it doesn't work on yours...

It looks like it's an issue with Syncers. It worked fine for sending files to S3 store_with S3 but not for sync_with S3.

You can see the new backup config I just created here - https://gist.github.com/2050134

bzdk commented May 10, 2012

same issue with deanperry.How to make defaults for Cloud::S3 ?

ianha commented Nov 19, 2012

I'm also running into this issue. I'm using store_with S3. Runing backup 3.0.25 and fog 1.6.0. Works fine when I put the crendtials in my Model.

Any movement on this?

@ghost ghost closed this Jun 9, 2013

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment