Authentication 从GSUtil到google云存储的身份验证

Authentication 从GSUtil到google云存储的身份验证,authentication,google-cloud-storage,Authentication,Google Cloud Storage,直到昨天,我还没有遇到gsutil工具的任何问题,我有读写权限,但昨天每当我尝试运行gsutil命令时,它突然开始说: gsutil ls Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config"). Failure: unauthorized

直到昨天,我还没有遇到gsutil工具的任何问题,我有读写权限,但昨天每当我尝试运行gsutil命令时,它突然开始说:

gsutil ls
Your "Oauth 2.0 User Account" credentials are invalid. For
more help, see "gsutil help creds", or re-run the gsutil config
command (see "gsutil help config"). Failure: unauthorized_client.
我从内部使用gsutil。google cloud sdk:

which gsutil
/Users/jesperrix/.google-cloud-sdk/bin/gsutil
我尝试运行gsutil config命令,该命令如下所示:

看起来你正试图逃跑 “/Users/jesperrix/.googlecloudsdk/bin/bootstrapping/gsutil.py 配置”。云SDK不再需要“config”命令。 要进行身份验证,请运行:gcloud auth login是否确实运行此命令?(是/否)

我试着运行这个命令,但它不起作用,然后我试着运行cloudauth登录,它也不起作用。当它询问我应用程序id时,我尝试使用字符串id和旧的数字id

我试图验证的用户是项目的所有者


我希望您能帮助我。

我通过使用google删除我的主文件夹中名为某物的所有内容来纠正问题,然后我再次运行bash安装,从头开始安装sdk:

curl https://dl.google.com/dl/cloudsdk/release/install_google_cloud_sdk.bash | bash
现在它又按预期工作了。我还是不知道出了什么问题