# Error accessing Dashboard: "RuntimeError Unable to create a new session key" edit

Hi,

I am trying to access Dashboard via web browser using the url http://controller/horizon . The login is successful, but after that a page is displayed " Something went wrong! An unexpected error has occurred. Try refreshing the page".

I have checked the error log in /var/log/apache2/error.log and the error is this:

RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.

Thanks.

edit retag close merge delete

Sort by » oldest newest most voted

Thanks It worked after #SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

more

Yes, this worked.

more

Yes, it did work. I had same problem and changing memcached location did work for me. However, I am sseeing "unexpected error" when browsing Network=>topology sections within horizon dashboard. Perhaps I need to configure network topology in the neurton.conf. Any suggestion.

more

I too faced the same problem ,

Comment out the line SESSION_ENGINE from /etc/openstack-dashboard/local_settings file.

This fixed my issue

more

This also fixed my problem. Checked django document. It seemed that this is openstack doc error.

( 2017-02-13 21:40:29 -0500 )edit

I figured out my problem: The problem is I did not see the note after you edit /etc/sysconfig/memcached file. I had to change this line -l 127.0.0.1 to this line -l MangementcontrollerIP (for Example-10.0.0.11). The IP that you set in mentioned file
/etc/openstack-dashboard/local_settings CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.0.0.11:11211', } } After the just run this command : systemctl restart memcached.service

Hope it will work for you ... if not Kindly paste you error.log file will trying to help you out ...

more

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': 'controller1:11211', } } If I use the fqdn (e.g controller1) in the location it fails, try changing it to the IP (e.g. 10.0.0.11 or 127.0.0.1).

SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache', 'LOCATION': '10.0.0.11:11211', } }

more

Did you solve this problem ? ı had same problem too.

( 2016-05-30 05:45:36 -0500 )edit

We had the same problem after trying to change an endpoint. Removing the SESSION_ENGINE line worked as a workaround. The root problem was that memcached had started to run on another IP, so after fixing that (review its config.json file) and restarting the container, the problem was fixed

( 2020-05-14 09:05:07 -0500 )edit
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.15680715441703796, "perplexity": 8891.642798298113}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-24/segments/1590347409171.27/warc/CC-MAIN-20200530102741-20200530132741-00276.warc.gz"}