-
Notifications
You must be signed in to change notification settings - Fork 439
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
GOOGLE_APPLICATION_CREDENTIALS doesn't work #177
Comments
Try to add to your script the following env variables and see if in that way it runs without problems, in my case I had problems with gsutil in crontab because it was unable to find the credentials, but with this it worked : PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/share/google/google-cloud-sdk/bin/ Take in mind that in the PATH env I have "/usr/local/share/google/google-cloud-sdk/bin/" because of my installation config, and you can find the ".boto" with a simple : find / -name ".boto" I hope I did not misinterpreted what you wanted to say. |
I think your workflow follows different path of credential locations. You may look it up at
I was following the instructions found on https://cloud.google.com/storage/docs/gcs-fuse and set the environment variable GOOGLE_APPLICATION_CREDENTIALS, which for aforementioned reasons doesn't work. AFAICT GCSFuse used to do the mounting in the main process and required separate demonisation. This is how it worked on e.g. version 0.11.0 which obeys the variable. The recent versions do the mounting in the background by demonising the process but by doing so they strip out the variable in question so the advertised way of passing credentials doesn't work. |
Your diagnosis makes sense to me, thanks. Will attempt to reproduce with an integration test and then fix. |
It was broken when gcsfuse was made to daemonize itself. For #177.
This should be fixed in gcsfuse 0.18.3, which has just been released. |
It looks like process demonisation strips all env variables except for PATH and hence the child process cannot find it.
The text was updated successfully, but these errors were encountered: