我正在尝试从我的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%确定我拥有这个项目/存储桶,它显示在我的开发者控制台上。
到目前为止我尝试过:
这些都没有解决我的问题。这是 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''
请帮我弄清楚这里发生了什么。
答案 0 :(得分:2)
gsutil在C:中正常工作。但是,如果我从E:\运行它,它会卡住并给我那个可怕的错误信息。
修复: 只需从C:\上的任何路径运行gsutil,并为您想要传输的任何本地路径提供绝对路径。