#14093: Unable to create a new session key on higher traffic
-----------------------------------------+----------------------------------
 Reporter:  szy...@mwg.pl                |       Owner:  nobody    
   Status:  new                          |   Milestone:            
Component:  django.contrib.sessions      |     Version:  1.2       
 Keywords:  session, cache, session key  |       Stage:  Unreviewed
Has_patch:  0                            |  
-----------------------------------------+----------------------------------
 Hi,

 We are using Django 1.2.1, cache session backend and from time to time, on
 higher traffic (but not so much, ~600 online users in 5 minutes) a few
 requests ends with exception:

 Traceback (most recent call last):

  File "/usr/lib64/python2.6/site-packages/django/core/handlers/base.py",
 line 80, in get_response
    response = middleware_method(request)

  File "/home/wonderlife/app/request.py", line 78, in process_request
    if request.user.is_authenticated():

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/auth/middleware.py", line 9, in __get__
    request._cached_user = get_user(request)

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/auth/__init__.py", line 97, in get_user
    user_id = request.session[SESSION_KEY]

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/sessions/backends/base.py", line 46, in
 __getitem__
    return self._session[key]

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/sessions/backends/base.py", line 172, in
 _get_session
    self._session_cache = self.load()

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/sessions/backends/cache.py", line 16, in load
    self.create()

  File "/usr/lib64/python2.6/site-
 packages/django/contrib/sessions/backends/cache.py", line 33, in create
    raise RuntimeError("Unable to create a new session key.")

 RuntimeError: Unable to create a new session key.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/14093>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to