使用Centos7.6安装的Stein版本,按照官方文档一步步安装Dashboard,输入用户名和密码后出错,如下所示
查看apache日志/var/log/httpd/error_log,发现以下错误
[root@controller ~]# tail -f /var/log/httpd/error_log ****** ****** ****** [Tue Nov 29 16:23:44.169239 2022] [:error] [pid 21120] "Unable to create a new session key. " [Tue Nov 29 16:23:44.169242 2022] [:error] [pid 21120] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
解决方法
1、修改配置文件
[root@controller ~]# vi /etc/openstack-dashboard/local_settings
2、将SESSION_ENGINE值修改
原
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
改为
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
3、重启服务,然后再次登录。
[root@controller ~]# systemctl restart httpd.service memcached.service
参考博客:
https://blog.csdn.net/jack170601/article/details/76910997
标签:unavailable,RuntimeError,cache,Unable,key,new,create,log From: https://www.cnblogs.com/djlsunshine/p/16935899.html