Re: Zeopack fails raising KeyError
Héctor Velarde <[email protected]>
| Newsgroups | gmane.comp.web.zope.zodb |
|---|---|
| Message-ID | <[email protected]> |
thank you, very much, Jim! database is now 7GB, down from 9GB! On 03/07/2017 01:21 PM, Jim Fulton wrote: > OK, this confirms that an object has gone missing. This shouldn't > happen. :) HV> this is probably my fault: I was running this site with `shared-blobs = on` by mistake, some weird things happened and I probably made them worst trying to "fix" them. > Is this a single-database configuration? Or multi-database? HV> single-database configuration using ZRS with vanilla configuration: <filestorage 1> path /opt/plone/example.com/var/filestorage/Data.fs blob-dir /opt/plone/example.com/var/blobstorage </filestorage> > In the short term, I suggest disabling garbage collection by adding: > > pack-gc false > > in your <filestorage> element on the server. HV> is there any way I can configure this via buildout? > Gaaaaa, I just realized that it should be straightforward to create such > a tool, if we had OIDS. It's a shame that the error above doesn't give a > POSKeyError with a full OID. I wonder if newer versions of ZODB give > POSKeyErrors in this situation. HV> that would be awesome! how can we help? > I suggest trying to use zc.zodbdgc to perform the garbage collection. > (Maybe against a copy of the database, if you're feeling paranoid. :)) > That may give a more helpful error. HV> I will try to use it on a staging server as soon as I free it from other tasks; I'll let you know. package don't have a buildout example but I'll take a look at the code to figure out how it works: https://github.com/zopefoundation/zc.zodbdgc/tree/master/src/zc/zodbdgc > I also suggest using zc.FileStorage to do the non-gc pack, at it is much > faster. HV> I was checking but the package has absolutely no documentation and I was not able to find the source: https://pypi.python.org/pypi/zc.FileStorage > Sometime, I need to find the time to roll the functionality from those > two packages back into FileStorage (unless I replace it with FileStorage2). HV> is that because you lack the time or resources? once again, how can we help? -- You received this message because you are subscribed to the Google Groups "zodb" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.