[Zope-dev] Massive Problems with sessions

Joachim Werner joe@iuveno.de
Sun, 21 Jul 2002 21:23:37 +0200


Hello!

Suddenly I am getting massive problems with Zope 2.5.1 sessions. The Zope
instance was upgraded from 2.5.0 to 2.5.1 and has a lot more load now as it
is in production. Nothing else has changed I guess.

The problems:

Frequent "duplicate key errors", and now a new one when I try to enter the
session_data container (standard install with a temporary folder storing the
sessions):

Site Error
An error was encountered while publishing this resource.

KeyError

Sorry, a site error occurred.

Traceback (innermost last):
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/ZPublisher/Publish
.py, line 151, in publish_module
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/ZPublisher/Publish
.py, line 114, in publish
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/Zope/__init__.py,
line 159, in zpublisher_exception_hook
    (Object: session_data)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/ZPublisher/Publish
.py, line 98, in publish
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/ZPublisher/mapply.
py, line 88, in mapply
    (Object: manage_container)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/ZPublisher/Publish
.py, line 39, in call_object
    (Object: manage_container)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/App/special_dtml.p
y, line 61, in __call__
    (Object: manage_container)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/DocumentTemplate/D
T_String.py, line 473, in __call__
    (Object: manage_container)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/Products/Transienc
e/Transience.py, line 403, in nudge
    (Object: session_data)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/Products/Transienc
e/Transience.py, line 364, in _getCurrentBucket
    (Object: session_data)
  File
/usr/local/zope-instances/Zopes/Zope-2.5.1-src/lib/python/Products/Transienc
e/Transience.py, line 390, in _clean
    (Object: session_data)
KeyError: 21934557A0Y4KtUyZjs

One additional information that might help: The session manager is used from
different URLs that point to the same Zope. Can this be the reason for
problems? Is there a way of fixing that, e.g. using certain path information
in the browser id manager?


Any hints?

Joachim