在安装程序很可能出现有人无法上传 index.yaml文件的问题,错误如下。

Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "Comment"
ancestor: false
Property {
  name: "date"
  direction: 2
}

is not necessary, since single-property indices are built in. Please remove it f
rom your index file and upgrade to the latest version of the SDK, if you haven't
 already.
--- end server output ---
Your app was updated, but there was an error updating your indexes. Please retry
 later with appcfg.py update_indexes.

产生这个问题的原因是未在本地调试,当你本地调试的时候 程序会自动帮你生成一条规则到index.yaml ,上传程序的时候index 规则也会更新。 你需要做的仅仅是删除index.yaml文件里面的规则,然后调试,再上传index.yaml文件到服务器就可以了。重上传index.yaml命令:

appcfg.py update_indexes yuebinliu/

yuebinliu为我的程序目录,具体上传的时候请修改,有什么问题可以在此留言。

Relate Posts:

Tags: gae

Posted in gae |

Leave a Reply

3+6