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

Could not load the default credentials Digital ocean #27

Closed
Shahbazchandio opened this issue May 11, 2018 · 2 comments
Closed

Could not load the default credentials Digital ocean #27

Shahbazchandio opened this issue May 11, 2018 · 2 comments

Comments

@Shahbazchandio
Copy link

Shahbazchandio commented May 11, 2018

Getting RuntimeError (Could not load the default credentials. Browse to
https://developers.google.com/accounts/docs/application-default-credentials
for more information on digital ocean, Puma, Nginx, Capistrano, Rails.
i've also added env varaiables in .env file.
GCS_BUCKET='photos.foobrstock.com'
GOOGLE_CLOUD_PROJECT="foobrsnaps"
GOOGLE_CLOUD_KEYFILE="Rails.root.join('config/foobrstock-service.json')"

But still getting the same error for few days.

@renchap
Copy link
Owner

renchap commented May 12, 2018

Do you use the dotenv-rails gem to load ENV variables from your .env file?

For my project, I am using the GOOGLE_APPLICATION_CREDENTIALS ENV variable, containing the path to the JSON file with the credentials for the Service Account I created for the app.

@Shahbazchandio
Copy link
Author

Thanks. That solved the Problem

@renchap renchap closed this as completed May 12, 2018
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

2 participants