在 Google App Engine 中使用 Python 更新索引时出错
我正在尝试把一个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有错误。我尝试修改它,但没有成功……
1 个回答
2
造成这个问题的一个可能原因是部署用户的身份和权限设置。
应该具备以下权限:
- 应用引擎部署者 - 用于实际的部署操作。
- 应用引擎服务管理员 - 用于流量分配和删除旧版本。
- 云数据存储索引管理员 - 用于更新索引。