【发布时间】:2019-06-05 06:35:24
【问题描述】:
我有两个 GCloud 帐户,请考虑 x 和 y。
我运行了命令gcloud config set account x,因为只有帐户 x 可以访问该特定 gcloud 项目。
但是每次我运行本地作业任务时,例如:
python -m trainer.task --bucket=bucket-name --output_dir=outputdir --job-dir=./tmp --train_steps=200
我收到以下错误:
tensorflow.python.framework.errors_impl.PermissionDeniedError: Error executing an HTTP request: HTTP response code 403 with body '{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "y does not have storage.objects.create access to bucket-name."
}
],
"code": 403,
"message": "y does not have storage.objects.create access to bucket-name."
}
}
在我看来,即使我登录到 x 帐户,命令行也正在访问 y 帐户。我仔细检查了我是否登录了正确的帐户,可以访问正确的项目。
【问题讨论】:
标签: python google-cloud-platform google-cloud-storage google-cloud-ml