Here’s a quick tip for those using Google AppEngine + Python + appenginepatch and their index.yaml is not auto-generating indexes.
Symptoms:
Your development server log says: “Detected manual index.yaml, will not update”, when you have clearly not removed the # AUTOGENERATED tag from the yaml file. After pushing to the appspot servers, you also receive a “NeedIndexError: no matching index found.” and a nice 500 error on a lot of queries that worked fine locally.
Solution:
Notice that your index.yaml file has DOS line endings (\r\n), and with this, AppEngine is assuming that you’re manually generating the file. All that needs to be done is convert your line endings to UNIX style (\n) and you should notice your logs now say “Updating /…projectpath…/src/index.yaml” on the development server, and once you’ve generated all the correct indexes, deploy to appspot and your indexes should build correctly.
I hope this saves you the time it took me to investigate this hairy bug.
Cheers!





#1 by pj swim / patrick jay at January 26th, 2010
adam.
talk to me like i am 3. i don’t know what a yam is. lol
I take it that you are “the guy” to chat with about building traffic to my domain http://www.lobster.ca
What would be your first second and third bits of advice?
Again. I am three years of age but eager, willing and have to learn.
I work with Brandon a bit and he’s a mate. I host with you guys, meanwhile FYI my back is up against the wall right now but am on a new path with http://www.lobster.ca as you will see – just launched. more of an advertising hub planning to take and refer as a broker for product but market for retailers, restaurants and wholesalers that deal with atlantic canadian lobster. Anywhere in the world. Starting with here.
facebook group is LOBSTER CANADA
405 9597 are the digits.
anytime,
swimmer
#2 by kang at March 13th, 2010
thanks for the post
#3 by Markus at July 3rd, 2010
Thank you very much. You saved me so much time troubleshooting why my indexes were not being generated.