My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
How_to_fix_the_index_not_found_error_when_deploy_to_production  
How to fix the index not found error when deploy to production environment?
index, Phase-Deploy, Featured
Updated Mar 11, 2010 by cpe...@gmail.com

Index not found error

If you download cpedialog, and then deploy it to the appengine server directly for the first time, you may meet the index not found error as below.

How to resolve?

Replace index.yaml with the fixed index file: http://code.google.com/p/cpedialog/downloads/detail?name=index.yaml&can=2&q=#makechanges

  • Then deploy it to appengine server.

Comment by heyipin...@gmail.com, May 26, 2010

还是不行

Comment by DinoBarb...@gmail.com, Oct 18, 2011

hello friend!

i have a bit difference error:

Traceback (most recent call last):

File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/webapp25.py", line 701, in call
handler.get(groups)
File "/base/data/home/apps/s~ficha83/2.354057610804969558/blog.py", line 86, in get
obj_page = util.getBlogPagination(page)
File "/base/data/home/apps/s~ficha83/2.354057610804969558/util.py", line 145, in getBlogPagination
obj_page = YUIPaginator(blogs_query,page,cpedialog.num_post_per_page)
File "/base/data/home/apps/s~ficha83/2.354057610804969558/cpedia/pagination/GqlQueryPaginator?.py", line 33, in
init
self.count = int(gqlQuery.count())
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/
init.py", line 2071, in count
result = raw_query.Count(limit=limit, config=config)
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py", line 1700, in Count
batch = self.GetBatcher?(config=config).next()
File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2525, in next
return self.next_batch(self.AT_LEAST_ONE)
File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2562, in next_batch
batch = self.next_batch.get_result()
File "/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 592, in get_result
return self.get_result_hook(self)
File "/base/python_runtime/python_lib/versions/1/google/appengine/datastore/datastore_query.py", line 2324, in query_result_hook
str(exc) + '\nThe suggested index for this query is:\n' + yaml)
NeedIndexError?: The index for this query is not ready to serve. See the Datastore Indexes page in the Admin Console. The suggested index for this query is: - kind: Weblog
properties: - name: entrytype - name: date
direction: desc

what the problem is?

Comment by Ginta...@gmail.com, Nov 15, 2011

I solved this problem by visiting my app with /update added to address. http://*.appspot.com/update


Sign in to add a comment
Powered by Google Project Hosting