Reputation: 3883
Why do I keep getting logged out after like 5 minutes of inactivity in google cloud shell when used from gcloud on my local terminal?
ERROR: (gcloud.container.clusters.get-credentials) ResponseError: code=401, message=Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.
f
I seem to have stale credentials on the gcloud shell... which just never happens when I'm using the browser version
Upvotes: 0
Views: 1443
Reputation: 131
@Ray, according to the official documentation, Cloud Shell is intended for interactive use only, and after some time of inactivity it will kick you out.
Do you have the same issue if you use the Shell from the webpage?
Did you try the steps given here?
Did you authenticate with a service account? if you run gcloud auth list
what do you get?
EDIT: This issue was fixed with the new release, @RayFoss commented he was also unable to reproduce it.
Upvotes: 1