Micolog的小小错误!(一个Google上的博客程序)
在Micolog的论坛中很多人提到这个错误。
就是安装完,该博客后访问首页出现下面的错误:
A server error occurred. Please contact the administrator.
不直接执行update.bat,而是在命令行的上一级目录中手动执行appcfg.py update micolog,你会看到如下错误:
Scanning files on local disk.
Initiating update.
Could not guess mimetype for static/images/favicon.ico. Using application/octet
-stream.
Cloning 20 static files.
Cloning 88 application files.
Deploying new version.
Checking if new version is ready to serve.
Will check again in 1 seconds.
Checking if new version is ready to serve.
Will check again in 2 seconds.
Checking if new version is ready to serve.
Closing update: new version is ready to start serving.
Uploading index definitions.
Error 400: --- begin server output ---
Creating a composite index failed: This index:
entity_type: "Archive"
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.
很明显,这个是索引的问题,原因是仅仅对单个字段进行索引是不需要的。可能早期这种模式是支持的。
按照下面来修改就OK了。吧不要的注释掉:
indexes:
# AUTOGENERATED
# This index.yaml is automatically updated whenever the dev_appserver
# detects that a new type of query is run. If you want to manage the
# index.yaml file manually, remove the above marker line (the line
# saying "# AUTOGENERATED"). If you want to manage some indexes
# manually, move them above the marker line. The index.yaml file is
# automatically uploaded to the admin console when you next deploy
# your application using appcfg.py.# Unused in query history -- copied from input.
#- kind: Archive
# properties:
# - name: date
# direction: desc# Used 31 times in query history.
#- kind: Comment
# properties:
# - name: date
# direction: desc# Used once in query history.
- kind: Comment
properties:
- name: entry
- name: date# Unused in query history -- copied from input.
- kind: Comment
properties:
- name: entry
- name: date
direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: categorie_keys
- name: date
direction: desc# Unused in query history -- copied from input.
#- kind: Entry
# properties:
# - name: date
# direction: desc# Used 29 times in query history.
- kind: Entry
properties:
- name: entry_parent
- name: entrytype
- name: published
- name: menu_order# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: entry_type
- name: date
direction: desc# Used 4 times in query history.
- kind: Entry
properties:
- name: entrytype
- name: date
direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: entrytype
- name: post_id# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: entrytype
- name: post_id
direction: desc# Used 11 times in query history.
- kind: Entry
properties:
- name: entrytype
- name: published
- name: date
direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: entrytype
- name: published
- name: slug
- name: date# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: entrytype=
- name: date
direction: desc# Unused in query history -- copied from input.
#- kind: Entry
# properties:
# - name: post_id
# direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: published
- name: date
direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: slug
- name: date# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: tags
- name: date
direction: desc# Unused in query history -- copied from input.
- kind: Entry
properties:
- name: tags
- name: post_id
direction: desc# Unused in query history -- copied from input.
- kind: Link
properties:
- name: linktype
- name: createdate
direction: desc# Unused in query history -- copied from input.
- kind: Link
properties:
- name: linktype
- name: href# Unused in query history -- copied from input.
#- kind: Logger
# properties:
# - name: date
# direction: desc
这样修改,重新运行update.bat,你就可以正常上传了,此时,首页还是显示刚才那个错误,需要在后台把缓存重新更新并发表一篇文章。你应该就可以看到首页了。

