[Zope-PTK] Broken Product - reload?

Kent Polk kent@goathill.org
Thu, 22 Mar 2001 15:23:52 -0600 (CST)


Dieter Maurer wrote:
> Kent Polk writes:
>  > Ok, I broke the CMFCore with a typo. I fixed the source file, but
>  > I can't figure out how to get Zope to reload the fixed version.
>  > CMFCore remains broken and Control_panel/Products/CMFCore complains
>  > about the error, which no longer exists. I've tried everything
>  > short of nuking the CMF instance I'm running, and I'd really rather
>  > not do that. :^(
> Exceptions during a call to "initialize" are not shown
> (except in the log file, if you enabled logging) and
> cause the old information not to be updated.
> 
> You have two options:
> 
>  * delete the broken product and restart
>    you will then see the (new) traceback

Turns out it wasn't getting this far.

>  * enable logging (STUPID_LOG_FILE=<your_log_file> on the command line),
>    restart and look into the log file.

Well, I finally messed things up enough to convince it to issue an error message:

2001-03-22T20:58:36 ERROR(200) Zope Couldn't install CMFCore
Traceback (innermost last):
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/OFS/Application.py, line 627, in install_products
    (Object: ApplicationDefaultPermissions)
    (Info: CMFCore)
  File /var/zope/Products/CMFCore/__init__.py, line 168, in initialize
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/App/ProductContext.py, line 365, in registerHelp
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/App/ProductContext.py, line 298, in registerHelpTopic
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/OFS/ObjectManager.py, line 300, in _setObject
    (Object: Traversable)
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/HelpSys/HelpTopic.py, line 152, in manage_afterAdd
    (Object: HelpTopicBase)
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/HelpSys/HelpTopic.py, line 165, in index_object
    (Object: HelpTopicBase)
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/Products/ZCatalog/ZCatalog.py, line 424, in catalog_object
    (Object: Traversable)
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/Products/ZCatalog/Catalog.py, line 442, in catalogObject
  File /export/home/zope/lib/Zope-2.3.1b2-solaris-2.6-sparc/lib/python/SearchIndex/UnTextIndex.py, line 335, in index_object
SystemError: error return without exception set

Does this for about a dozen core products. I can't see why or what
started it.  Files permissions are fine and all appears to be
correct. Could something in the ZODB be triggering this?