Personal tools
You are here: Home Documentation Error References ValueError: Cache values may only be in one cache.
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

ValueError: Cache values may only be in one cache.

This Error Reference applies to: Any version.
This Error Reference is intended for: Any audience.

This is a low-level ZODB error that may sometimes happen when you refresh a Product without restarting Zope. It therefore is almost never seen in production. Restart will fix it.

It can look like this:

Traceback (innermost last):

* Module ZPublisher.Publish, line 107, in publish
* Module Zope.App.startup, line 222, in commit
* Module ZODB.Transaction, line 236, in commit
* Module ZODB.Transaction, line 351, in _commit_objects
* Module ZODB.Connection, line 423, in commit
__traceback_info__: (('BTrees.IOBTree', 'IOBTree'), '\x00\x00\x00\x00\x00\x00\x00\n', '')

ValueError: Cache values may only be in one cache.

by Chad Whitacre last modified January 8, 2005 - 04:27 All content is copyright Plone Foundation and the individual contributors.

Persistency bug

Posted by Nate Aune at July 17, 2005 - 20:07

Dieter Mauer says on the archetypes-devel and zope-coders mailing lists:

This is a persistency bug.

It happens when you bring the same persistent object into different connection contexts.

Prime causes are persistent objects defined at module or class level and then changed in a connection.

Archetypes 1.3.1 should no longer have persistency bugs of this kind. At least, I am able to refresh Archetypes based products (although I nevered tried auto refresh).

Error appears in Plone 2.5

Posted by Maurits van Rees at October 5, 2006 - 18:15
I just saw this error on my production site. I I had restarted the server, reinstalled some products, then made a small change on the filesystem (add a gif file in a skins dir) and refreshed the product it belonged to. Then I thought "why not" and packed the database (I may have done that before the refresh) and went to the portal_catalog and clicked Clear and Rebuild. After a while I got the following error:

------
2006-10-05T20:02:27 ERROR Zope.SiteErrorLog http://projects.zestsoftware.nl:9080/projects.zestsoftware.nl/portal_catalog/manage_catalogRebuild
Traceback (innermost last):
Module ZPublisher.Publish, line 121, in publish
Module Zope2.App.startup, line 240, in commit
Module transaction._manager, line 96, in commit
Module transaction._transaction, line 380, in commit
Module transaction._transaction, line 378, in commit
Module transaction._transaction, line 433, in _commitResources
Module ZODB.Connection, line 484, in commit
Module ZODB.Connection, line 526, in _commit
Module ZODB.Connection, line 560, in _store_objects
ValueError: Cache values may only be in one cache.
-----

I restarted and then did a clear and rebuild again. That got rid of the error.

Occurring in Plone 2.5.1

Posted by Sam Allgood at October 25, 2006 - 15:01
I also experienced the problem in Plone 2.5.1 when publishing an object. It also happens every time that I attempt to uninstall an archetype a second time without restarting.

Same problem...

Posted by Christian Schneider at November 1, 2006 - 08:54
I have the same problem here on my development system, and after updates on my production system as well. Is there no way to get rid of the error?

It happens when running zope-2.9+ and 2.5

Posted by Fernando Correa Neto at November 2, 2006 - 21:34
I have experienced this only when running plone with zope-2.9. I don't know the reason.

Get rid of it without restarting Zope

Posted by David Mudrak at November 25, 2006 - 16:00
I am receiving this error during my AT development when changing e.g. some method's body. I have noticed that I can go into my ZMI root -> Control_Panel/Products/XXX-MY-PRODUCT, find the Refresh tab and click "Refresh this product" and it works fine. I have also "Auto refresh mode" checked but it does not help in this situation.

Also getting this error

Posted by Jonas Nielsen at February 13, 2007 - 11:28
I'm getting this error every time I refresh my skin product. So I have to remember to restart zope every time I make a change.

I'm running Plone 2.5.2 and Zope 2.9.6

Zope refresh no longer supported.

Posted by Wichert Akkerman at February 13, 2007 - 12:00
Zope no longer supports product refreshing fully. For products using the component architecture it will probably never work. For others it can break as well.

This is a Zope matter, not a Plone problem.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by