« Return to Thread: can't pack my database after installing getpaid
There is a ticket against getpaid related to ZODB corruption (it isn't really corruption, just a remote reference). I can't tell if this is that issue though. This is the link to the ticket:
http://code.google.com/p/getpaid/issues/detail?id=209&colspec=ID%20Type%20Status%20Priority%20Release%20Component%20Summary%20Owner
I have seen cases where I have an order that references a shopping cart that is no longer valid. I've cleaned these up by entering the ZODB debugger:
./bin/primary debug (./bin/instance debug might work as well, I'm not sure)
from getpaid.core import interfaces as GPInterfacesfrom zope import componentimport transactionTo find corrupt carts look for the Traceback and KeyError:
site = app (You might need to provide more information about the root of your site here)
sm = component.getSiteManager(context=site)scu = sm.getUtility(GPInterfaces.IShoppingCartUtility)scu._sessions.pop('robl') (replace robl with actual corrupt user_id)transaction.commit()
>>> for k in scu._sessions.iterkeys():... k... scu._sessions[k].items()
Again I'm not sure if your issue is from getpaid. It may not be. It also may be that it is from getpaid, and isn't cart related in which case the above probably will not help.
-Rob
On Thu, Aug 6, 2009 at 5:56 PM, Katharine Chartrand <katharinechartrand@...> wrote:
I am running plone 3.2. I just setup getpaid. Now, when I try to
pack my database, i get the following error.
There is at least one e-mail chain out there associating this problem
with getpaid. Is getpaid the issue? Is there a way around it?
[cddma@web87 ~]$ ~/webapps/plone_3_2_3/zeocluster/bin/zeopack
Traceback (most recent call last):
File "/home/cddma/webapps/plone_3_2_3/zeocluster/bin/zeopack", line
29, in ?
plone.recipe.zope2zeoserver.pack.main(host, port, unix, days,
username, password, realm, blob_dir, storage)
File "/home/cddma/webapps/plone_3_2_3/buildout-cache/eggs/
plone.recipe.zope2zeoserver-1.3-py2.4.egg/plone/recipe/zope2zeoserver/
pack.py", line 36, in main
cs.pack(wait=wait, days=int(days))
File "/home/cddma/webapps/plone_3_2_3/zeocluster/parts/zope2/lib/
python/ZEO/ClientStorage.py", line 846, in pack
return self._server.pack(t, wait)
File "/home/cddma/webapps/plone_3_2_3/zeocluster/parts/zope2/lib/
python/ZEO/ServerStub.py", line 165, in pack
self.rpc.call('pack', t, wait)
File "/home/cddma/webapps/plone_3_2_3/zeocluster/parts/zope2/lib/
python/ZEO/zrpc/connection.py", line 650, in call
raise inst # error raised by server
KeyError: 'm'
Unhandled exception in thread started by
Error in sys.excepthook:
« Return to Thread: can't pack my database after installing getpaid
| Free embeddable forum powered by Nabble | Forum Help |