Dashboard登录成功后 RuntimeError: Unable to create a new session key.


openstack按照官网docs部署horizon后,使用admin账号密码登录,但网页提示未知错误。

查看/var/log/httpd/error_log

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

缓存有问题,在外国网站找到解决方案:

将 /etc/openstack-dashboard/local_settings 里的

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

改成

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

重启httpd和memcached

成功进入Dashboard


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM