2009-10-18 24 views
6

मुझे वर्तमान में मेरे ऐप इंजन ऐप पर एक इंडेक्स त्रुटि की आवश्यकता है: http://www.gaiagps.com/wiki/home। मेरा मानना ​​है कि यह इंडेक्स मेरी index.yaml फ़ाइल द्वारा स्वचालित रूप से बनाया जाना चाहिए था (नीचे देखें)।Google ऐप इंजन इंडेक्स त्रुटि

थोड़ा गुगल करना, मुझे लगता है कि मुझे बस अपनी अनुक्रमणिका के निर्माण की प्रतीक्षा करनी है। क्या यह सही है, या मुझे मैन्युअल रूप से कुछ करने की ज़रूरत है? क्या इंडेक्स-बिल्डिंग कतार का कोई प्रकार है? मेरी टेबल अभी बहुत छोटी हैं।

संपादित करें: मैंने अपनी ऐप.मैमल में "इंडेक्स:" लाइन जोड़ा, और अब ऐप इंजन रिपोर्ट करता है कि इंडेक्स बिल्डिंग कर रहा है, इसलिए मुझे लगता है कि यह तय है। यह अजीब बात है कि यह फ़ाइल गलत थी क्योंकि मैंने इसे कभी छुआ नहीं है।

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. 

- kind: Revision 
    properties: 
    - name: name 
    - name: created 

ऐप मेरे देव सर्वर पर काम करता है, लेकिन उत्पादन में नहीं। लेकिन, मेरा डेव कंसोल पर, मैं इस त्रुटि पर ध्यान दिया है (संपादित करें: यह त्रुटि अब चला गया है कि मैं अनुक्रमित जोड़ा: उपरोक्त app.yaml फाइल करने के लिए):

ERROR 2009-10-18 04:46:51,908 dev_appserver_index.py:176] Error parsing /gaiagps.com/index.yaml: 

'NoneType' object is not callable 
    in "<string>", line 13, column 3: 
    - kind: Revision 
    ^
+0

पर होना चाहिए उल्लेख क्यों किसी को भी इस सवाल को बंद करना चाहते हैं? –

+0

क्या आप इसे हटा नहीं सकते? –

उत्तर

0

मेरा मानना ​​है कि आप की आवश्यकता होगी इंडेक्स को अपनी ऐप.यामल फ़ाइल में जोड़ें। साथ ही, जब आप एपइंजिन को दबाते हैं तो इंडेक्स जेनरेट करने में कुछ समय लगेगा, क्योंकि इंडेक्स बनाने के आपके अनुरोध को बस किसी और के साथ नौकरी कतार में फेंक दिया जाएगा।

1

इंडेक्स app.yaml फ़ाइल में शामिल नहीं हैं, वे एक index.yaml में जाने की जरूरत है

6

यह त्रुटि यदि index.yaml की पहली पंक्ति, जो सिर्फ होना चाहिए होता है "अनुक्रमणिका:" पर यह कॉलम 1 में शुरू हो रहा है, हटा दिया गया है।

1
delete 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. 

इस लाइन क्योंकि जब यू इस लाइन तो वेब सर्वर विकास लिखना स्वचालित रूप से मॉडल के प्रत्येक स्तंभ पर सूचकांक बना सकते हैं और आप उर अनुक्रमित निर्दिष्ट coloumn