Every once in a while our ZCatalog (from CVS) seems to get "corrupted" - usually one (or maybe more) items cause the following error whenever they come up in a search for certian search terms. For example today I seached for "tomato" (/recipe/manage_catalogView?title=recipe) and got this error: Error Type: KeyError Error Value: 431 Traceback (innermost last): File /home/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/zope/lib/python/Zope/__init__.py, line 211, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_catalogView) File /home/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_catalogView) File /home/zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_catalogView) (Info: /home/zope/lib/python/Products/ZCatalog/catalogView.dtml) File /home/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_catalogView) File /home/zope/lib/python/DocumentTemplate/DT_In.py, line 592, in renderwb (Object: searchResults) File /home/zope/lib/python/Products/ZCatalog/Lazy.py, line 190, in __getitem__ File /home/zope/lib/python/Products/ZCatalog/Catalog.py, line 187, in __getitem__ KeyError: (see above) I discovered the entry that causes this, and it seems to be cataloged okay - i.e. if I'm just browsing the catalog it displays fine, and in some searches it displays fine. Only when I search by specific words in the title it gives an error - and not all words. Updating the catalog solves the problem. It's title is "Tomato Bread Salad", which doesn't seem to have any wierd characters or anything. -- Itamar S.T. itamars@ibm.net
This is a reported bug in ZCatalog. I have never, ever been able to reproduce it, other users have reported it however. No one so far has been able to reproduce why it happens. The problem apears to be an entry in the text index references a document id that is no longer in use. This is the best guess I have, why it happens, who knows. If you can reproduce it, then please, please, please in the name of Guido tell me how it's done and I'll fix it. -Michel Itamar Shtull-Trauring wrote:
Every once in a while our ZCatalog (from CVS) seems to get "corrupted" - usually one (or maybe more) items cause the following error whenever they come up in a search for certian search terms. For example today I seached for "tomato" (/recipe/manage_catalogView?title=recipe) and got this error:
Error Type: KeyError Error Value: 431
Traceback (innermost last): File /home/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /home/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /home/zope/lib/python/Zope/__init__.py, line 211, in zpublisher_exception_hook (Object: ElementWithAttributes) File /home/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /home/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_catalogView) File /home/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_catalogView) File /home/zope/lib/python/App/special_dtml.py, line 120, in __call__ (Object: manage_catalogView) (Info: /home/zope/lib/python/Products/ZCatalog/catalogView.dtml) File /home/zope/lib/python/DocumentTemplate/DT_String.py, line 502, in __call__ (Object: manage_catalogView) File /home/zope/lib/python/DocumentTemplate/DT_In.py, line 592, in renderwb (Object: searchResults) File /home/zope/lib/python/Products/ZCatalog/Lazy.py, line 190, in __getitem__ File /home/zope/lib/python/Products/ZCatalog/Catalog.py, line 187, in __getitem__ KeyError: (see above)
I discovered the entry that causes this, and it seems to be cataloged okay - i.e. if I'm just browsing the catalog it displays fine, and in some searches it displays fine. Only when I search by specific words in the title it gives an error - and not all words. Updating the catalog solves the problem. It's title is "Tomato Bread Salad", which doesn't seem to have any wierd characters or anything.
-- Itamar S.T. itamars@ibm.net
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (2)
-
Itamar Shtull-Trauring -
Michel Pelletier