[Zope] Zope KeyError from nowhere
Terry Hancock
hancock@anansispaceworks.com
Mon, 06 May 2002 07:41:06 -0700
Hi all,
I ran into a major "Huh?" today in the middle of
working with my development prototype in Zope. I
was doing a lot of edit/test cycles in a Zope subfolder,
as I have been doing for the last few months. I also
periodically pack the database (though it's been a
few days since I did). I don't spend a lot of time
at the "Root Folder" though I generally pass through
it at least once a day, and did this morning.
Anyway, I happened to go back into it and got a weird
error:
Error Type: KeyError
Error Value: Folder
(traceback at end of message)
(there is no object in the Root Folder named "Folder"
as far as I can remember). This is displayed in
the Root Folder object display window, whenever I
go to the top level of the management interface.
Now, this won't go away -- I tried reloading the
page, restarting the Zope server from the control
panel and by using start/stop scripts, etc.
The fsrecover.py script says there's nothing to
recover, and tranalyzer doesn't seem to show anything
out of the ordinary -- the last few edits are to
objects far down the tree that I was working on
(and I have no trouble viewing those folders).
Nevertheless the error/traceback just won't go
away.
Is it a bug? I'm not sure how to troubleshoot this.
I guess the next step is to pick through the Zope
source files mentioned in the traceback, but I
thought I'd ask if anyone could recognize what
happened.
Any ideas much appreciated!
Terry
Full traceback:
Traceback (innermost last):
File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line
223, in publish_module
File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line
187, in publish
File /usr/local/narya/z2.4.3/lib/python/Zope/__init__.py, line 226, in
zpublisher_exception_hook
(Object: Zope)
File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line
171, in publish
File /usr/local/narya/z2.4.3/lib/python/ZPublisher/mapply.py, line
160, in mapply
(Object: manage_main)
File /usr/local/narya/z2.4.3/lib/python/ZPublisher/Publish.py, line
112, in call_object
(Object: manage_main)
File /usr/local/narya/z2.4.3/lib/python/Shared/DC/Scripts/Bindings.py,
line 324, in __call__
(Object: manage_main)
File /usr/local/narya/z2.4.3/lib/python/Shared/DC/Scripts/Bindings.py,
line 354, in _bindAndExec
(Object: manage_main)
File /usr/local/narya/z2.4.3/lib/python/App/special_dtml.py, line 244,
in _exec
(Object: manage_main)
File /usr/local/narya/z2.4.3/lib/python/DocumentTemplate/DT_In.py,
line 711, in renderwob
(Object: objectItems)
File /usr/local/narya/z2.4.3/lib/python/DocumentTemplate/DT_In.py,
line 839, in sort_sequence
(Object: objectItems)
File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 544,
in setstate
File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 227,
in _persistent_load
(Info: Folder)
File /usr/local/narya/z2.4.3/lib/python/ZODB/Connection.py, line 160,
in __getitem__
(Info: Folder)
File /usr/local/narya/z2.4.3/lib/python/ZODB/FileStorage.py, line 588,
in load
(Object: /usr/local/narya/zope/var/Data.fs)
File /usr/local/narya/z2.4.3/lib/python/ZODB/FileStorage.py, line 564,
in _load
(Object: /usr/local/narya/zope/var/Data.fs)
KeyError: (see above)
--
------------------------------------------------------
Terry Hancock
hancock@anansispaceworks.com
Anansi Spaceworks
http://www.anansispaceworks.com
------------------------------------------------------