Unable to create session key

80 views
Skip to first unread message

ji...@edcast.com

unread,
Nov 8, 2017, 4:41:24 AM11/8/17
to Couchbase
Hi All,

We use Couchbase heavily. Recently we have been coming across "Unable to create session key" issues too frequently.

Below are the logs: -

Oct 25 16:20:02 [service_variant=lms][django.request][] ERROR [ 28350] [base.py:256] - Internal Server Error: 
Traceback (most recent call last):
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 108, in get_response
response = middleware_method(request)
File "/edx/app/edxapp/edx-platform/common/djangoapps/cm_plugin/middleware.py", line 59, in process_request
self.auth_user(request, token)
File "/edx/app/edxapp/edx-platform/common/djangoapps/cm_plugin/middleware.py", line 31, in auth_user
login(request, user)
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/auth/_init_.py", line 110, in login
request.session.cycle_key()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/sessions/backends/base.py", line 285, in cycle_key
self.create()
File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/contrib/sessions/backends/cache.py", line 48, in create
"Unable to create a new session key. "
RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.

We have to restart moxi service everytime and other services but it is a temporary fix. Need a permanent fix for it.
Help will be really grateful.

Regards,
Jigar Shah
Reply all
Reply to author
Forward
0 new messages