Skip to content
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

Global S3 configuration #291

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

Global S3 configuration #291

benschwarz opened this issue Mar 5, 2012 · 11 comments

Comments

@benschwarz
Copy link

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)

@deanpcmad
Copy link

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.

@benschwarz
Copy link
Author

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:
#291 (comment)

@deanpcmad
Copy link

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
Copy link

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.

@deanpcmad
Copy link

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
Copy link

webmat commented Mar 16, 2012

Sure, there you go: https://github.com/webmat/backup_issue_291

@webmat
Copy link

webmat commented Mar 16, 2012

Thanks for looking into it :-)

@deanpcmad
Copy link

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...

@deanpcmad
Copy link

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
Copy link

bzdk commented May 10, 2012

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

@ianha
Copy link

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 as completed 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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants