Google App Engine - update_indexes错误 [英] Google App Engine - update_indexes error

查看:106
本文介绍了Google App Engine - update_indexes错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在应用程序引擎上部署了一个Java应用程序,并使用
Python SDK的appcfg.py来抽取和更新索引。



昨天我首先运行vacuum_indexes,并成功完成 -
即它已经排队的任务删除我现有的索引。



下一步可能是我的错误 - 然后我跑了
update_indexes,尽管我之前的索引还没有被删除。
不用说,我的update_indexes调用出错了。如此多的
现在当我看着我的应用程序引擎控制台时,它显示
的所有索引状态为Error。



一天过去了,它仍然显示我的索引状态为错误。



有人可以帮我解决问题吗?!



谢谢,
Keyur

PS:我已经在GAE论坛发布了这个消息,但是希望SO用户能够面对并解决这个问题也是如此。

解决方案

我遵循错误日志中的建议,并且对我有用:


  1. 清空index.yaml文件(首先创建备份)
  2. 再次运行vacuum_indexes

  3. 查看您应用的管理控制台,并且不要进入下一步,直到删除所有索引。

  4. 指定要在index.yaml中创建的索引

  5. 运行update_indexes

  6. 查看您应用的管理控制台,它应该显示您的索引正在构建。 li>
  7. 享受您的劳动成果:)


  8. 干杯,
    Keyur

    >

    I have a Java app deployed on app engine and I use appcfg.py of the Python SDK to vacuum and update my indexes.

    Yesterday I first ran vacuum_indexes and that completed successfully - i.e. it en-queued tasks to delete my existing indexes.

    The next step was probably a mistake on my part - I then ran update_indexes even though my previous indexes weren't yet deleted. Needless to say that my update_indexes call errored out. So much so that now when I look at my app engine console, it shows the status of all my indexes as "Error".

    A day has passed an it still shows the status on my indexes as "Error".

    Can someone help my out of my fix?!

    Thanks, Keyur

    P.S.: I have posted this on the GAE forums as well but hoping SO users have faced and resolved this issue as well.

    解决方案

    I followed what was suggested in the error logs and that worked for me:

    1. Empty the index.yaml file (create a backup first)
    2. Run vacuum_indexes again
    3. Look at your app's admin console and don't go to the next step till all your indexes are deleted.
    4. Specify the indexes you want to be created in index.yaml
    5. Run update_indexes
    6. Look at your app's admin console and it should show that your indexes are now building.
    7. Enjoy the fruits of your labor :)

    Cheers, Keyur

    这篇关于Google App Engine - update_indexes错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆