【问题标题】:The project 'test-dev' does not exist or it does not contain an active Cloud Datastore database项目“test-dev”不存在或不包含活动的 Cloud Datastore 数据库
【发布时间】:2017-09-05 10:19:38
【问题描述】:

我正在尝试为在谷歌云中创建的项目运行测试,但我面临以下错误,

Error: The project 'test-dev' does not exist or it does not contain an active Cloud Datastore database. 
Please visit http://console.cloud.google.com to create a project or https://console.cloud.google.com/datastore/setup?project=test-dev to add a Cloud Datastore database. 
Note that Cloud Datastore always has an associated App Engine app and this app must not be disabled.

以前有人遇到过这个错误,如何解决这个问题?

【问题讨论】:

标签: google-cloud-datastore google-cloud-platform google-cloud-endpoints


【解决方案1】:

我在学习 Datastore API 教程时遇到了这个问题: https://cloud.google.com/datastore/docs/datastore-api-tutorial

当我将项目 ID 重新定义为新项目的 ID 时,我的问题就消失了。在本教程的情况下,我设置了 DATASTORE_PROJECT_ID=NEW_ID

【讨论】:

    【解决方案2】:

    是的,我在尝试遵循 Google Compute Engine 上的 Python 教程之一时遇到了完全相同相同的错误:

    https://cloud.google.com/python/tutorials/bookshelf-on-compute-engine

    幸运的是,您的错误消息(其中“test-dev”是项目名称):

    Please visit http://console.cloud.google.com to create a project
    or https://console.cloud.google.com/datastore/setup?project=test-dev
    to add a Cloud Datastore database. 
    

    确切地告诉您要做什么:单击第二个链接,然后在您选择的项目名称下设置 Cloud Datastore。我正在遵循的教程似乎假设会立即设置一个(事实并非如此)。建立那个数据库,事情应该会很好(或更好)。

    注意:对于 2018 年 11 月,您可能会收到类似“Cloud Datastore 或 Cloud Firestore”的信息:系统可能会提示您选择两者。我选择了 Datastore,因为 Firestore 是测试版。

    【讨论】:

      猜你喜欢
      • 2018-04-18
      • 2019-11-28
      • 2019-02-16
      • 1970-01-01
      • 2021-01-12
      • 2017-04-13
      • 2016-05-24
      • 2015-04-07
      • 1970-01-01
      相关资源
      最近更新 更多