gsutil 卡住并要求身份验证

gsutil getting stuck and asking for authentication

我正在尝试从我的 Windows 机器(已经设置,并且我一直在 gsutil 中定期使用它)复制文件,但它一直告诉我我正在尝试在没有配置凭据的情况下访问受保护的数据。 不过,昨天 运行 还好。

E:\studioProjects3\demo\rsalib\build\libs>gsutil cp rsalib-1.0.jar gs://dark-b
lade-365.appspot.com
Copying file://rsalib-1.0.jar [Content-Type=application/octet-stream]...
Uploading   gs://dark-blade-365.appspot.com/rsalib-1.0.jar:      0 B/4.14 KiB
Uploading   gs://dark-blade-365.appspot.com/rsalib-1.0.jar:      4.14 KiB/4.14 K
iB
You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gcloud auth login"
command to configure gsutil to use these credentials.

E:\studioProjects3\demo\rsalib\build\libs>gsutil acl get gs://dark-blade-365.a
ppspot.com
You are attempting to access protected data with no configured
credentials. Please visit https://cloud.google.com/console#/project
and sign up for an account, and then run the "gcloud auth login"
command to configure gsutil to use these credentials.

我 100% 确定我拥有这个 project/bucket 并且它显示在我的开发者控制台上。

到目前为止我尝试过的:

None 解决了我的问题。这是 gcloud auth list 显示的内容:

E:\studioProjects3\demo\rsalib\build\libs>gcloud auth list
Credentialed accounts:
 - yaraju@gmail.com (active)

To set the active account, run:
  $ gcloud config set account ``ACCOUNT''

请帮我弄清楚这是怎么回事。

gsutil 在 C: 中运行良好。但是如果我 运行 它来自 E:\ 它会卡住并给我那个可怕的错误信息。

修复: 只需从 C:\ 上的任何路径 运行 gsutil 并给出您要传输的任何本地路径的绝对路径 from/to.