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

时间:2011-05-15 18:57:48

标签: python google-app-engine indexing

我正在尝试将python示例应用程序上传到我自己的appspot帐户。它在localhost上工作正常,但每当我通过命令行/ 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有错误。我试图修改它,但无济于事..

1 个答案:

答案 0 :(得分:1)

可能的原因之一是部署者用户的IAM角色。

应该是:

  • App Engine Deployer-用于部署本身。
  • App Engine Service Admin-用于拆分流量和删除旧版本。
  • Cloud Datastore Index Admin-用于更新索引。