coiled / feedback

A place to provide Coiled feedback
14 stars 3 forks source link

Error getting token from client GCP session: Could not automatically determine credentials. Please set GOOGLE_APPLICATION_CREDENTIALS #279

Open rsignell opened 2 months ago

rsignell commented 2 months ago

I'm getting this "error" every time I fire up a Coiled cluster. I've got gcsfs in my "pangeo" software environment, but it's just in there to access public data from Google Cloud Storage -- I don't have any credentials to set.

Is there some way to gracefully avoid this issue?

dchudz commented 1 month ago

Sorry for the delay here, Rich.

Can you clarify: Is this error blocking some computation you want to do? Or is it just that the error is annoying to see in your logs?

rsignell commented 1 month ago

@dchudz Doesn't affect anything. Just mentioning it because I was teaching a short course and I have to then spend time telling the students that it's nothing to worry about and why it's likely popping up

dchudz commented 1 month ago

Hm, yeah, sorry about this. This behavior is triggered by having google-auth installed (which is a dependency of gcsfs).

I think we could at least make the warning a little less scary, but it may be useful to keep some kind of warning for people who do expect credentials to be set.

rsignell commented 1 month ago

Okay, I guess we could also set some bogus credential env vars