首页 文章

Google Cloud部署错误响应:[13]无法选择区域和/或区域

提问于
浏览
0

上下文:关注“How to Use Pub/Sub with Python” .

问题:将应用程序部署到Google Cloud Platform时出现以下错误:

Error Response: [13] Could not pick a region and/or zone

尝试的决议:

  • Ran gcloud init 重新应用区域/区域设置 .

  • config.py 中的 ZONE 设置为"us-central1-f" .

  • 使用 gcloud config set app/use_appengine_api false 重置Google Cloud API .


gcloud info 回复:

Google Cloud SDK [90.0.0]

Platform: [Mac OS X, x86_64]
Python Version: [2.7.10 (default, Oct 23 2015, 18:05:06)  [GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)]]
Python Location: [/Users/.../getting-started-python/6-pubsub/env/bin/python2]
Site Packages: [Enabled]

Installation Root: [/Users/user/google-cloud-sdk]
Installed Components:
  core: [2015.12.07]
  core-nix: [2015.11.24]
  gcloud: []
  gsutil-nix: [4.15]
  gsutil: [4.16]
  bq: [2.0.18]
  bq-nix: [2.0.18]
System PATH: [...]
Cloud SDK on PATH: [True]

Installation Properties: [/Users/user/google-cloud-sdk/properties]
User Config Directory: [/Users/user/.config/gcloud]
User Properties: [/Users/user/.config/gcloud/properties]
Current Workspace: [None]
Workspace Config Directory: [None]
Workspace Properties: [None]

Account: [*******]
Project: [*******]

Current Properties:
  [core]
    project: [*******]
    account: [*******]
    disable_usage_reporting: [True]
  [app]
    use_appengine_api: [true]
    suppress_change_warning: [true]
  [compute]
    region: [us-central1]
    zone: [us-central1-f]

Logs Directory: [/Users/user/.config/gcloud/logs]
Last Log File: [/Users/user/.config/gcloud/logs/2015.12.30/14.29.56.415916.log]

2 回答

  • 2

    重新创建项目似乎已经解决了这个问题 .

    我无法确定两个项目设置之间的差异 . 我想在设置原始项目时可能会在Google端发生错误 .

  • 1

    试试 gcloud config set compute/zone us-central1-f

相关问题