gsutil AccessDeniedException:401 需要登录 [英] gsutil AccessDeniedException: 401 Login Required

查看:23
本文介绍了gsutil AccessDeniedException:401 需要登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

So I run the following:

gsutil -m cp -R file.png gs://bucket/file.png

And I get the following error message:

Copying file://file.png [Content-Type=application/pdf]...
Uploading   file.png: 42.59 KiB/42.59 KiB    
AccessDeniedException: 401 Login Required
CommandException: 1 files/objects could not be transferred.

I'm not sure what the problem is since I ran config and I can see all my buckets. Does anyone know what I need to do?

Note: I do not have gcloud, I just installed gsutil and ran the config.

解决方案

Login to Google Cloud is needed for accessing any Cloud service. You need to use below command which will guide you through login steps like typing verification code you generate by opening browser link given in console.

gcloud auth login

这篇关于gsutil AccessDeniedException:401 需要登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆