Apache + ZServer + SiteAccess
Hi, I was previously using the fastcgi solution but recently switched to use anser's solution as given in the how-to: http://www.zope.org/Members/anser/apache_zserver Everything has been working solidly (and fast!) until I found out that it can't seem to do a recatalog properly. Details are: Zope 2.1.4 + apache 1.3.9 on Debian potato. Zope is served off http://myserver.com/Zope/. I have a product called Sample that subclasses ZCatalog and reindexes its objects when edited. However, now when I tried to perform an edit, the following error message results: Error Type: ValueError Error Value: Uncatalog of absent id 'Zope/Sample/Object1' <!-- Traceback (innermost last): File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 214, in publish_module File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 179, in publish File /usr/lib/zope/lib/python/Zope/__init__.py, line 202, in zpublisher_exception_hook (Object: CatalogAware) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 165, in publish File /usr/lib/zope/lib/python/ZPublisher/mapply.py, line 160, in mapply (Object: manage_edit) File /usr/lib/zope/lib/python/ZPublisher/Publish.py, line 102, in call_object (Object: manage_edit) File /usr/lib/zope/lib/python/Products/Sample/Sample.py, line 184, in manage_edit (Object: CatalogAware) File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 190, in reindex_object (Object: CatalogAware) File /usr/lib/zope/lib/python/Products/ZCatalog/CatalogAwareness.py, line 186, in unindex_object (Object: CatalogAware) File /usr/lib/zope/lib/python/Products/ZCatalog/ZCatalog.py, line 357, in uncatalog_object (Object: ElementWithAttributes) File /usr/lib/zope/lib/python/Products/ZCatalog/Catalog.py, line 373, in uncatalogObject ValueError: (see above) --> My guess is that it was previously catalogued as 'Sample/Object1' but ZCatalog now gets the uid of the object as 'Zope/Sample/Object1'. Is there anything that I can do to overcome this? Will installing a SiteRoot in Catalog (my default catalog object) itself help? Any help is appreciated, Thanks Meng Kuan
----- Original Message ----- From: Meng Kuan <mengkuan@lga.net.sg>
Everything has been working solidly (and fast!) until I found out that it can't seem to do a recatalog properly.
My guess is that it was previously catalogued as 'Sample/Object1' but ZCatalog now gets the uid of the object as 'Zope/Sample/Object1'. Is there anything that I can do to overcome this? Will installing a SiteRoot in Catalog (my default catalog object) itself help?
Any setup involving virtual hosts (as this proxy arrangement does implicitly) can have bad interactions with ZCatalogs, and there's not a lot to be done without some fairly deep changes in Zope. Basically, a catalog entry created through one 'access path' (like ZServer on 8080) should not be used or updated on another (like the proxy) on which the absolute paths differ. This can be tricky when the objects are catalog-aware. Sorry, but my best advice is the same as the doctor gave to the guy who said "My arm hurts when I do this." "So don't do that." Cheers, Evan @ 4-am & digicool
participants (2)
-
Evan Simpson -
Meng Kuan