正在加载...

Micolog的小小错误!(一个Google上的博客程序)

2009年05月07日 07:57

在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,你就可以正常上传了,此时,首页还是显示刚才那个错误,需要在后台把缓存重新更新并发表一篇文章。你应该就可以看到首页了。

相关阅读:



我要留言

麻烦,计算一下:10+6

sidebartop

博客公告

sidebarbottom
sidebartop

分类杂谈

sidebarbottom
sidebartop
sidebarbottom
sidebartop
sidebarbottom
sidebartop

最近评论

  • 美国优洛: 想不到现在世界上还有这种地方!...
  • cracode: 是IE反钓鱼网站验证...
  • baizhongliang: 站长你好,很喜欢你的网站,看到贵站的网站...
  • baizhongliang: 站长你好,很喜欢你的网站,看到贵站的网站...
  • baizhongliang: 站长你好,很喜欢你的网站,看到贵站的网站...
sidebarbottom
sidebartop
sidebarbottom
sidebartop

标签

友情链接

sidebarbottom