gpt4 book ai didi

python - 在 google appengine 中使用 python 更新索引时出错

转载 作者:行者123 更新时间:2023-12-01 06:10:49 25 4
gpt4 key购买 nike

我正在尝试将 python 示例应用程序上传到我自己的 appspot 帐户。它在本地主机上运行良好,但每当我通过命令行/gae 启动器上传它时,我都会收到以下消息:

Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: --- begin server output ---
Building a composite index failed: ApplicationError: 1
--- end server output ---
Your app was updated, but there was an error updating your indexes. Please retry later with appcfg.py update_indexes.
2011-05-16 02:45:15 (Process exited with code 0)

结果是部署的应用程序看不到或者有错误。当我运行 appcfg.py update_indexes 时,他们告诉我 index.yaml 有错误。我尝试修改但无济于事..

最佳答案

造成这种情况的可能原因之一是部署者用户的 IAM 角色。

应该是:

  • App Engine Deployer - 用于部署本身。
  • App Engine 服务管理员 - 用于分割流量和删除旧版本。
  • Cloud Datastore Index Admin - 用于更新索引。

关于python - 在 google appengine 中使用 python 更新索引时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6010512/

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