Current

This document is valid for the current version of Plone.

AttributeError: 'long' object has no attribute 'get'

by David Bain last modified May 09, 2011 09:20 PM
ZODB3 /ZODB/FileStorage/FileStorage.py", ... in _restore_index index = info.get('index') AttributeError: 'long' object has no attribute 'get'

The ZODB uses a Data.fs file and an associated Data.fs.index file. When starting Zope a corrupted .index file can cause this error.

If you are using additional fs files (e.g. when working with collective.recipe.filestorage) they may also have corrupt index files.

Solution

Delete the .fs.index files before attempting to start your zope server. At launch "good" index files will be created.