gpt4 book ai didi

google-app-engine - GAE/GCS 项目默认暂存桶在哪里?

转载 作者:行者123 更新时间:2023-12-04 01:56:32 26 4
gpt4 key购买 nike

我有一个 Google App Engine 标准项目,我们称它为 my-project。 (不是真实 ID。)它位于:my-project.appspot.com

它有一个同名的默认 GCS 桶。使用浏览器,我可以在以下位置查看存储桶:https://storage.googleapis.com/my-project.appspot.com(到目前为止,非常好!)

Google documentation状态:

Note: When you create a default bucket, you also get a staging bucket with the same name except that staging. is prepended to it. You can use this staging bucket for temporary files used for staging and test purposes; it also has a 5 GB limit, but it is automatically emptied on a weekly basis.

但是,我在项目控制台中看不到 staging. 存储桶。

使用浏览器,如果我尝试访问我的临时存储桶:https://storage.googleapis.com/staging.my-project.appspot.com

我收到以下错误消息:

<Error>
<Code>NoSuchBucket</Code>
<Message>The specified bucket does not exist.</Message>
</Error>

有人可以让我知道 Google 文档是否有误吗,否则请告诉我在哪里可以找到我的暂存桶?

最佳答案

staging.my-project.appspot.com 存储桶应该在您初始化 App Engine 应用程序时创建。您可能无意中删除了它,或者在初始化过程中可能出现问题,但无论如何,您有多种选择来恢复它:

  • 从命令行使用 Cloud SDK使用您的项目安装和初始化(或直接从 Cloud Shell ),运行 gcloud beta app repair 命令。这将恢复所需的 App Engine 功能,例如 App Engine 服务帐户(如果它已被删除)或任何丢失的默认存储桶,在本例中为 staging.... 一个。
  • 通过 gcloud app deploy 部署新的 App Engine 版本。在后台,如果需要恢复存储桶,Cloud SDK 将运行修复命令。

关于google-app-engine - GAE/GCS 项目默认暂存桶在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50139047/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com