Open arokem opened 4 years ago
The last bit I can answer simply: a token is only cached by gcsfs when successfully using the "browser" method.
Note to be sure that you are specifying the project parameter every time (except "cloud", where it might have been specified with the gcloud config set
command), this can cause problems.
We are using gcsfs inside a pangeo-powered cluster on GCP. One of our users has run into the following somewhat-mysterious behavior: initializing a
gcfs.GCSFileSystem
object withtoken='cache'
andtoken='cloud'
allows him to read items that are in a bucket on our project, but he hits a 403 and getsForbidden: https://www.googleapis.com/upload/storage/v1/b/learning2learn/o Insufficient Permission
when trying to write to the bucket. This is resolved when usingtoken='browser'
and going through that process. Beyond fixing the particular issue, I am also a bit confused on when/how/whether a token gets cached in the user's home directory and how we can examine whether a cached token works. Thanks!