[ZODB-Dev] ZODB Problem
Tim Peters
tim at zope.com
Tue Jan 25 16:11:30 EST 2005
[Alexey V Paramonov]
> I have Zope 2.7.3 running for a few months, once I tried to restart it I
> have the followig error:
>
> Traceback (most recent call last):
> File "/usr/lib/zope-2.7.3/lib/python/Zope/Startup/run.py", line 50, in ?
> run()
> File "/usr/lib/zope-2.7.3/lib/python/Zope/Startup/run.py", line 19, in
run
> start_zope(opts.configroot)
> File "/usr/lib/zope-2.7.3/lib/python/Zope/Startup/__init__.py", line 51,
in start_zope
> starter.startZope()
> File "/usr/lib/zope-2.7.3/lib/python/Zope/Startup/__init__.py", line
230, in startZope
> Zope.startup()
> File "/usr/lib/zope-2.7.3/lib/python/Zope/__init__.py", line 47, in
startup
> _startup()
> File "/usr/lib/zope-2.7.3/lib/python/Zope/App/startup.py", line 91, in
startup
> Globals.VersionNameName)
> File "/usr/lib/zope-2.7.3/lib/python/ZODB/ZApplication.py", line 32, in
__init__
> if not root.has_key(name):
> AttributeError: has_key
>
>
> I tried to open Data.fs from python script to see what happened.
> Exception happens when it tries to work with the root object, it does not
> have 'items' property, then i tried to figure out what is the root
> object, and it was image!
Sorry, unclear what "it was image" might mean.
> How could this happen?
I've never heard of this happening before, so have no theory (other than,
say, disk failure).
> Can I restore my Data.fs
If you've been making backups, sure. Otherwise learning more about the
nature of the damage is a necessary step. Read this and try fstest and
fsrefs:
http://zope.org/Wikis/ZODB/FileStorageBackup
> or export some Zope folders from it if it's broken?
*Every* path starts from the root object. If the root object has gone
insane, I'm afraid you're in for a difficult time. But learn more first.
> Please help, the whole site is broken now :(
I believe you.
More information about the ZODB-Dev
mailing list