Felix Ulrich-Oltean wrote:
I get the following error when certain new objects are added into a plone site - when archetypes tries to set the UID, it asks the catalog for all unique values of the index "UID". I;ve never had input/output errors before from the ZODB. There's definitely enough space on the drive and objects are added fine - it's just that the UID is then not set, which breaks all sorts of Archetypes stuff. Any ideas how I can hunt this one down?
This IOError typically indicates a rights problem at the filesystem level. I could also be a full-disk problem or maybe a file corruption. Check the OS-level stuff first, and then try the usual ZODB check/recover stuff. I don't think this is relevant, but it may be useful: http://mail.python.org/pipermail/python-list/2003-March/151633.html --jcc
2005-06-20T13:15:26 ERROR(200) ZODB Couldn't load state for 0x111310 Traceback (most recent call last): File "/usr/local/zope/lib/python/ZODB/Connection.py", line 597, in setstate p, serial = self._storage.load(oid, self._version) File "/usr/local/zope/lib/python/ZODB/FileStorage.py", line 689, in load return self._load(oid, version, self._index, self._file) File "/usr/local/zope/lib/python/ZODB/FileStorage.py", line 662, in _load h = read(DATA_HDR_LEN) IOError: [Errno 5] Input/output error ------ 2005-06-20T13:15:26 ERROR(200) Archetypes None Traceback (most recent call last): File "/zope/global-products/Archetypes/Referenceable.py", line 69, in _register cid = archetype_tool.registerContent(self) File "/zope/global-products/Archetypes/ArchetypeTool.py", line 681, in registerContent cid = self._genId(object) File "/zope/global-products/Archetypes/ArchetypeTool.py", line 659, in _genId keys = catalog.uniqueValuesFor('UID') File "/usr/local/zope/lib/python/Products/ZCatalog/ZCatalog.py", line 562, in uniqueValuesFor return self._catalog.uniqueValuesFor(name) File "/usr/local/zope/lib/python/Products/ZCatalog/Catalog.py", line 425, in uniqueValuesFor return self.getIndex(name).uniqueValues() File "/usr/local/zope/lib/python/Products/PluginIndexes/common/UnIndex.py", line 445, in uniqueValues return tuple(self._index.keys()) File "/usr/local/zope/lib/python/ZODB/Connection.py", line 597, in setstate p, serial = self._storage.load(oid, self._version) File "/usr/local/zope/lib/python/ZODB/FileStorage.py", line 689, in load return self._load(oid, version, self._index, self._file) File "/usr/local/zope/lib/python/ZODB/FileStorage.py", line 662, in _load h = read(DATA_HDR_LEN) IOError: [Errno 5] Input/output error
-- "Building Websites with Plone" http://plonebook.packtpub.com