[ZCM] [ZC] 2000/ 3 Comment "Corruption of ZEO Persistent Cache"

Collector: Zope Bugs, Features, and Patches ... zope-coders-admin at zope.org
Thu Jan 12 15:08:02 EST 2006


Issue #2000 Update (Comment) "Corruption of ZEO Persistent Cache"
 Status Pending, Zope/bug medium
To followup, visit:
  http://www.zope.org/Collectors/Zope/2000

==============================================================
= Comment - Entry #3 by ajung on Jan 12, 2006 3:08 pm

Why is this an error? You can't expect that a file remains consistent while possibly writing to it?!
________________________________________
= Comment - Entry #2 by dreamcatcher on Jan 12, 2006 11:15 am

And here's the thread.
http://mail.zope.org/pipermail/zodb-dev/2006-January/009762.html
________________________________________
= Request - Entry #1 by dreamcatcher on Jan 12, 2006 11:14 am

After a "accidental shutdown" (power failure), the persistent zeo cache on my blog got corrupted.

Here's the traceback:

File "/home/sidnei/src/zope/28five/lib/python/Zope2/__init__.py",
line 47, in startup
  _startup()
File "/home/sidnei/src/zope/28five/lib/python/Zope2/App/startup.py",
line 56, in startup
  DB = configuration.dbtab.getDatabase('/', is_root=1)
File "/home/sidnei/src/zope/28five/lib/python/DBTab/DBTab.py", line
96, in getDatabase
  db = self._createDatabase(name, is_root)
File "/home/sidnei/src/zope/28five/lib/python/DBTab/DBTab.py", line
113, in _createDatabase
  db = factory.open()
File
"/home/sidnei/src/zope/28five/lib/python/Zope2/Startup/datatypes.py",
line 163, in open
  DB = self.createDB()
File
"/home/sidnei/src/zope/28five/lib/python/Zope2/Startup/datatypes.py",
line 160, in createDB
  return ZODBDatabase.open(self)
File "/home/sidnei/src/zope/28five/lib/python/ZODB/config.py", line
97, in open
  storage = section.storage.open()
File "/home/sidnei/src/zope/28five/lib/python/ZODB/config.py", line
153, in open
  read_only_fallback=self.config.read_only_fallback)
File "/home/sidnei/src/zope/28five/lib/python/ZEO/ClientStorage.py",
line 314, in __init__
  self._cache.open()
File "/home/sidnei/src/zope/28five/lib/python/ZEO/cache.py", line
112, in open    self.fc.scan(self.install)
File "/home/sidnei/src/zope/28five/lib/python/ZEO/cache.py", line
835, in scan    install(self.f, ent)
File "/home/sidnei/src/zope/28five/lib/python/ZEO/cache.py", line
121, in install
  o = Object.fromFile(f, ent.key, skip_data=True)
File "/home/sidnei/src/zope/28five/lib/python/ZEO/cache.py", line
630, in fromFile
  raise ValueError("corrupted record, oid")
ValueError: corrupted record, oid

Here's the cache files (zeo1-1.zec is the important one apparently):
http://awkly.org/files/zeo-cache.tar.bz2




==============================================================



More information about the Zope-Collector-Monitor mailing list