[Zope] Re: POSKeyError on the Python Recompile URL

Allen Schmidt aschmidt at fredericksburg.com
Wed Mar 23 18:21:33 EST 2005


Does this mean anything Dieter?? Problems with a Z Class??

_________________________________

>>> app.unrestrictedTraverse('manage_addProduct/PythonScripts/recompile')()
/var/www/zope/zope275admin/lib/python/SearchIndex/__init__.py:19: DeprecationWarning: The usage of the SearchIndex package is deprecated since Zope 2.4.
This package is only kept for backwards compatibility for a while
and will go away in a future release.

Please use instead the re-factored modules in Products/PluginIndexes.

  warnings.warn("The usage of the SearchIndex package is deprecated since \
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/var/www/zope/zope275admin/lib/python/Products/PythonScripts/__init__.py
    search_sub=1)
  File "/var/www/zope/zope275admin/lib/python/OFS/FindSupport.py", line 151, in
    REQUEST, result, sub_p)
  File "/var/www/zope/zope275admin/lib/python/OFS/FindSupport.py", line 151, in
    REQUEST, result, sub_p)
  File "/var/www/zope/zope275admin/lib/python/OFS/FindSupport.py", line 151, in
    REQUEST, result, sub_p)
  File "/var/www/zope/zope275admin/lib/python/OFS/FindSupport.py", line 138, in
    is_zclass = getattr(bs, 'meta_type', None) == 'Z Class'
  File "/var/www/zope/zope275admin/lib/python/ZODB/Connection.py", line 597, in
    p, serial = self._storage.load(oid, self._version)
  File "/var/www/zope/zope275admin/lib/python/ZEO/ClientStorage.py", line 757, i
    p, s, v, pv, sv = self._server.zeoLoad(oid)
  File "/var/www/zope/zope275admin/lib/python/ZEO/ServerStub.py", line 82, in ze
    return self.rpc.call('zeoLoad', oid)
  File "/var/www/zope/zope275admin/lib/python/ZEO/zrpc/connection.py", line 481,
    raise inst # error raised by server
ZODB.POSException.POSKeyError: 0x8db667
>>> from pdb import pm; pm()
> /var/www/zope/zope275admin/lib/python/ZEO/zrpc/connection.py(481)call()
-> raise inst # error raised by server
(Pdb) up
> /var/www/zope/zope275admin/lib/python/ZEO/ServerStub.py(82)zeoLoad()
-> return self.rpc.call('zeoLoad', oid)
(Pdb) up
> /var/www/zope/zope275admin/lib/python/ZEO/ClientStorage.py(768)load()
-> self._load_lock.release()
(Pdb) up
> /var/www/zope/zope275admin/lib/python/ZODB/Connection.py(610)setstate()
-> raise
(Pdb) up
> /var/www/zope/zope275admin/lib/python/OFS/FindSupport.py(138)ZopeFind()
-> is_zclass = getattr(bs, 'meta_type', None) == 'Z Class'
(Pdb) up
> /var/www/zope/zope275admin/lib/python/OFS/FindSupport.py(151)ZopeFind()
-> REQUEST, result, sub_p)
(Pdb) up
> /var/www/zope/zope275admin/lib/python/OFS/FindSupport.py(151)ZopeFind()
-> REQUEST, result, sub_p)
(Pdb) up
> /var/www/zope/zope275admin/lib/python/OFS/FindSupport.py(151)ZopeFind()
-> REQUEST, result, sub_p)
(Pdb) up
> /var/www/zope/zope275admin/lib/python/Products/PythonScripts/__init__.py(53)recompile()
-> search_sub=1)
(Pdb) up
> <stdin>(1)?()
(Pdb) up
*** Oldest frame


Dieter Maurer wrote:

> Allen Schmidt wrote at 2005-3-11 10:58 -0500:
> 
>>...
>>My bad... The POSKeyError showed up on the browser window as a result of running the 
>>"/manage_addProduct/PythonScripts/recompile"  script.
>>
>>Zope Error
>>Zope has encountered an error while publishing this resource.
>>
>>Error Type: POSKeyError
>>Error Value: 00000000008db667
>>...
>> Module OFS.FindSupport, line 138, in ZopeFind
>> Module ZODB.Connection, line 559, in setstate
>> Module ZEO.ClientStorage, line 749, in load
>> Module ZEO.ServerStub, line 82, in zeoLoad
>> Module ZEO.zrpc.connection, line 372, in call
>>POSKeyError: 00000000008db667
> 
> 
> To find the broken object, you call "recompile" in
> an interactive Python interpreter (Under *nix:
> bin/zopectl debug; followed by
> "app.unrestrictedTraverse('manage_addProduct/PythonScripts/recompile)()'.
> 
> You should get the same exception.
> 
> Then "from pdb import pm; pm()"
> You are now in the Python debugger and can analyse the context
> of the problem.
> Go up with "up" until you arrive in "ZopeFind: line 138".
> Look which object it wants to load. You might need to go
> up another stack frame.
> 
> 


More information about the Zope mailing list