-
Notifications
You must be signed in to change notification settings - Fork 12
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
Investigate "Compute Engine Metadata server unavailable" #42
Comments
I faced this error while debugging another job earlier. IIRC steps to fix where
|
Ah, thanks! After some more digging--I ended up getting to work by....
If someone wants to set it to use different credentails, they can set edit: See this doc for details: https://googleapis.dev/python/google-auth/latest/user-guide.html#using-external-identities |
One weird note is that I set the project, and can see it in the config, but it doesn't seem like the authentication process cares...
|
let's keep this open until we understand, but my understanding is this is now fixed. |
I've had to dive a bit deeper while looking into the KubernetesPodOperator. There's a nice explanation in this airflow doc. It sounds like the gcloud's metadata service allows cloud instances to automatically authenticate. I have no idea why it was working locally though :/. Maybe our credentials were cached from some other activity? |
Closing, since I think we resolved by pointing it to our volume mounted credentials (and noting METADATA is an internal cloud service) |
When I run tasks that require saving to GCS, I get a sort of cryptic error:
Seems to be related to using
token="cloud"
in this code:See also:
Tried to pull out a reproducible example:
The text was updated successfully, but these errors were encountered: