当我在本地终端上使用gcloud时,为什么我在google cloud shell中处于不活动状态5分钟后仍然被注销?
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我似乎在gcloud shell上有过时的凭据...当我使用浏览器版本时,这是永远不会发生的
发布于 2019-01-02 23:08:58
@Ray,根据官方documentation的说法,Cloud Shell只打算用于交互式使用,一段时间的不活动之后,它会把你踢出去。
如果你使用网页上的Shell,你也会遇到同样的问题吗?
您尝试过here给出的步骤了吗
您是否使用服务帐户进行了身份验证?如果你运行gcloud auth list,你会得到什么?
编辑:这个问题已经在新版本中修复了,@RayFoss评论说他也无法复制它。
https://stackoverflow.com/questions/53182597
复制相似问题