簡體   English   中英

Google Cloud Deployment錯誤響應:[13]無法選擇區域和/或區域

[英]Google Cloud Deployment Error Response: [13] Could not pick a region and/or zone

上下文:以下為“ 如何在Python中使用發布/訂閱 ”。

問題:將應用程序部署到Google Cloud Platform時拋出以下錯誤:

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

嘗試的解決方案:

  1. 運行gcloud init以重新應用區域/區域設置。
  2. config.py ZONE設置為“ us-central1-f”。
  3. 使用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]

嘗試gcloud config set compute/zone us-central1-f

重新創建項目似乎已經解決了該問題。

我無法確定兩個項目設置之間的差異。 我想在設置原始項目時可能會在Google端發生錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM