GoogleCloudPlatform / gsutil

A command line tool for interacting with cloud storage services.
Apache License 2.0
880 stars 336 forks source link

Rare "Your GCE credentials are invalid" errors when using service accounts #227

Open bshi opened 10 years ago

bshi commented 10 years ago

Could not being able to reach metadata.google.internal cause this? Retrying usually resolves the issue. Does the current credential retrieval mechanism in gsutil have retry logic?

thobrla commented 10 years ago

Yes, this could be caused by failure to reach the metadata server. This logic is based on apitools which doesn't retry; will look into adding retries.

thobrla commented 9 years ago

This should be improved (but not completely fixed) in 4.8; caching was added for detecting the metadata server.