[ZODB-Dev] "Non-zeo version length" but ZMI says "There are no non-empty versions."
Jim Fulton
jim at zope.com
Tue Apr 14 09:03:08 EDT 2009
On Apr 13, 2009, at 9:34 PM, Chris Withers wrote:
> Hi All,
>
> I get the following error when trying to open a filestorage .fs file
> with ZODB3-3.9.0a11:
>
> File "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/config.py", line
> 154,
> in open
> **options)
> File
> "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/FileStorage/
> FileStorage.py",
> line 185, in __init__
> read_only=read_only,
> File
> "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/FileStorage/
> FileStorage.py",
> line 1560, in read_index
> h = fmt._read_data_header(pos)
> File
> "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/FileStorage/format.py",
> line
> 147, in _read_data_header
> h = DataHeaderFromString(s)
> File
> "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/FileStorage/format.py",
> line
> 231, in DataHeaderFromString
> return DataHeader(*struct.unpack(DATA_HDR, s))
> File
> "/ZODB3-3.9.0a11-py2.5-linux-i686.egg/ZODB/FileStorage/format.py",
> line
> 241, in __init__
> "Non-zero version length. Versions aren't supported.")
> ValueError: Non-zero version length. Versions aren't supported.
>
> However, if I open the same file in Zope 2.9.2 or Zope 2.11.0, the ZMI
> says theere are no non-empty versions.
>
> How do I get rid of this phantom version?
That's a great question. :) We probably need to write some sort of
utility to remove version records.
Jim
--
Jim Fulton
Zope Corporation
More information about the ZODB-Dev
mailing list