[ZODB-Dev] ValueError: Non-zero version length. Versions aren't supported.

Mikko Ohtamaa mikko at redinnovation.com
Wed Apr 25 06:58:14 UTC 2012


Hi,

I can confirm this is often caused by corrupted Data.fs. Other potential
causes are bad rsync transfers.

http://collective-docs.readthedocs.org/en/latest/troubleshooting/exceptions.html#valueerror-non-zero-version-length-versions-aren-t-supported

sauna.reload increases your changes of corruption Data.fs as it forcefully
restarts Zope instance very often and makes other bad things happen. I
suggest you run sauna.reload in new ZEO mode (client + db) in which case
the database process stays intact between restarts.

-Mikko

On Wed, Apr 25, 2012 at 07:56, Andreas Jung <lists at zopyx.com> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> The issue was possibly caused by a regression with the sauna.reload
> add-on for Plone...now checking a new version of sauna.reload.
>
> - -aj
>
> Andreas Jung wrote:
> > I am receiving the following weird error with a fresh Plone 4.2b2
> > sandbox during development tests. At least the "Versions" error
> > message confuses me since the installation including ZODB Data.fs
> > file is usually fresh.
> >
> > Andreas
> >
> >
> > File
> >
> "/home/ajung/.buildout/eggs/Chameleon-2.8.4-py2.6.egg/chameleon/template.py",
> >
> >
> line 190, in render
> > raise_with_traceback(exc, tb) File
> >
> "/home/ajung/.buildout/eggs/Chameleon-2.8.4-py2.6.egg/chameleon/template.py",
> >
> >
> line 172, in render
> > self._render(stream, econtext, rcontext) File
> > "e9d937ec11d78bdffa5760f426680e870e7641d6.py", line 42, in render
> > File
> > "/home/ajung/.buildout/eggs/z3c.pt-2.2-py2.6.egg/z3c/pt/expressions.py",
> >
> >
> line 58, in render_content_provider
> > cp.update() File
> >
> "/home/ajung/.buildout/eggs/zope.viewlet-3.7.2-py2.6.egg/zope/viewlet/manager.py",
> >
> >
> line 112, in update
> > self._updateViewlets() File
> >
> "/home/ajung/.buildout/eggs/zope.viewlet-3.7.2-py2.6.egg/zope/viewlet/manager.py",
> >
> >
> line 118, in _updateViewlets
> > viewlet.update() File
> >
> "/home/ajung/.buildout/eggs/plone.app.layout-2.2.5-py2.6.egg/plone/app/layout/viewlets/common.py",
> >
> >
> line 158, in update
> > self.portal_tabs = portal_tabs_view.topLevelTabs() File
> >
> "/home/ajung/.buildout/eggs/Products.CMFPlone-4.2b2-py2.6.egg/Products/CMFPlone/browser/navigation.py",
> >
> >
> line 183, in topLevelTabs
> > rawresult = self.portal_catalog.searchResults(query) File
> >
> "/home/ajung/.buildout/eggs/Products.CMFPlone-4.2b2-py2.6.egg/Products/CMFPlone/CatalogTool.py",
> >
> >
> line 428, in searchResults
> > return ZCatalog.searchResults(self, REQUEST, **kw) File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/ZCatalog.py",
> >
> >
> line 604, in searchResults
> > return self._catalog.searchResults(REQUEST, used, **kw) File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/Catalog.py",
> >
> >
> line 907, in searchResults
> > return self.search(args, sort_index, reverse, sort_limit, _merge)
> > File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/Catalog.py",
> >
> >
> line 503, in search
> > cr = self.getCatalogPlan(query) File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/Catalog.py",
> >
> >
> line 916, in getCatalogPlan
> > return CatalogPlan(self, query, threshold) File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/plan.py",
> >
> >
> line 155, in __init__
> > self.key = self.make_key(query) File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/plan.py",
> >
> >
> line 212, in make_key
> > valueindexes = self.valueindexes() File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/ZCatalog/plan.py",
> >
> >
> line 198, in valueindexes
> > values = index.uniqueValues() File
> >
> "/home/ajung/.buildout/eggs/Products.ZCatalog-2.13.22-py2.6.egg/Products/PluginIndexes/common/UnIndex.py",
> >
> >
> line 472, in uniqueValues
> > return tuple(self._index.keys()) File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/Connection.py",
> >
> >
> line 860, in setstate
> > self._setstate(obj) File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/Connection.py",
> >
> >
> line 901, in _setstate
> > p, serial = self._storage.load(obj._p_oid, '') File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/FileStorage/FileStorage.py",
> >
> >
> line 413, in load
> > h = self._read_data_header(pos, oid, _file) File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py",
> >
> >
> line 150, in _read_data_header
> > h = DataHeaderFromString(s) File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py",
> >
> >
> line 236, in DataHeaderFromString
> > return DataHeader(*struct.unpack(DATA_HDR, s)) File
> >
> "/home/ajung/.buildout/eggs/ZODB3-3.10.5-py2.6-linux-x86_64.egg/ZODB/FileStorage/format.py",
> >
> >
> line 246, in __init__
> > "Non-zero version length. Versions aren't supported.") ValueError:
> > Non-zero version length. Versions aren't supported.
> >
> >
> >
> > _______________________________________________ For more information
> > about ZODB, see http://zodb.org/
> >
> > ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> > https://mail.zope.org/mailman/listinfo/zodb-dev
>
> - --
> ZOPYX Limited           | zopyx group
> Charlottenstr. 37/1     | The full-service network for Zope & Plone
> D-72070 Tübingen        | Produce & Publish
> www.zopyx.com           | www.produce-and-publish.com
> - ------------------------------------------------------------------------
> E-Publishing, Python, Zope & Plone development, Consulting
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.11 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iQGUBAEBAgAGBQJPl4PwAAoJEADcfz7u4AZjL/QLv0goW3GRgVgUXW15VW+JzB/L
> jMfqTyR0uD3242slbfvR9lmP9Selgn8pmsIy1m0k8E+xGFX5dRnSkJQMyMF35nEo
> 7tG946sYS4Qag1pOM69xoSLu4UzDG9ODPVl0CmvPycxAyDGrjRVeEwef+qHhj7SY
> RWNrj/PHD0pvCWztr8IZgh5tU3Pn0d+fVZlbL/HHFVgy6iXus7kiLyA8lLxNFtNI
> ATphMZBEcXZkAIFJjTNKaN36pDl8/pZh4TxJEF/IYCkv9gE0ubEFRglqTdp6/sBd
> bElhBEVRgPpRvhovhvCTKXCvbpxvxH9PGMBCNX1E3yfAE1dimfi9aYSGlYkSXayT
> ktR7cXojGwGNCE9pmkEZyvtDft/V9xoGME82CBKnCe6UdmHI036LwRGYDH6j5Ohu
> 2xvNBE7YtfiNm4TgxE6q/hAaXGZn5Prs6dt0vRaWegnVK/mCi1kzLNBgFN0i3j6S
> dS7qFcqPG31wNcBHk+iUwHesMVffrOg=
> =cq6f
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> For more information about ZODB, see http://zodb.org/
>
> ZODB-Dev mailing list  -  ZODB-Dev at zope.org
> https://mail.zope.org/mailman/listinfo/zodb-dev
>
>


-- 
Mikko Ohtamaa
http://opensourcehacker.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.zope.org/pipermail/zodb-dev/attachments/20120425/57f8a3a3/attachment.html>


More information about the ZODB-Dev mailing list