[ZODB-Dev] zeopack error in zrpc.connection

Jim Fulton jim at zope.com
Mon Jan 7 18:16:02 UTC 2013


On Mon, Jan 7, 2013 at 1:04 PM, Claudiu Saftoiu <csaftoiu at gmail.com> wrote:
>
>> How do I go about fixing this? Let me know if I can provide any other
>> information that would be helpful.
>
>
> I took the advice in this thread:
> https://mail.zope.org/pipermail/zodb-dev/2012-January/014526.html
>
> The exception that comes up, from the zeo server log, is:
>
> 2013-01-07T13:01:49 ERROR ZEO.zrpc (14891) Error raised in delayed method
> Traceback (most recent call last):
>   File "/home/tsa/env/lib/python2.6/site-packages/ZEO/StorageServer.py",
> line 1377, in run
>     result = self._method(*self._args)
>   File "/home/tsa/env/lib/python2.6/site-packages/ZEO/StorageServer.py",
> line 343, in _pack_impl
>     self.storage.pack(time, referencesf)
>   File "/home/tsa/env/lib/python2.6/site-packages/ZODB/blob.py", line 796,
> in pack
>     result = unproxied.pack(packtime, referencesf)
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/FileStorage.py",
> line 1078, in pack
>     pack_result = self.packer(self, referencesf, stop, gc)
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/FileStorage.py",
> line 1034, in packer
>     opos = p.pack()
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/fspack.py", line
> 397, in pack
>     self.gc.findReachable()
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/fspack.py", line
> 190, in findReachable
>     self.findReachableAtPacktime([z64])
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/fspack.py", line
> 275, in findReachableAtPacktime
>     for oid in self.findrefs(pos):
>   File
> "/home/tsa/env/lib/python2.6/site-packages/ZODB/FileStorage/fspack.py", line
> 328, in findrefs
>     return self.referencesf(self._file.read(dh.plen))
>   File "/home/tsa/env/lib/python2.6/site-packages/ZODB/serialize.py", line
> 630, in referencesf
>     u.noload()
> TypeError: 'NoneType' object does not support item assignment
>
>
> I'm afraid this doesn't seem to help me figure out what's wrong...

I suspect your database is corrupted.  You'd probably want to look at
the record in question to be sure.

You could disable garbage collection, but if you have a damaged
record, you might want to use the previous version of the record
(if it exists) to recover it.

Jim

-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
Jerky is better than bacon! http://zo.pe/Kqm


More information about the ZODB-Dev mailing list