记录OpenStack DashBoard 服务器报错

46 阅读1分钟

登录DashBoard显示服务器报错

d47ea037129f7ab25558c2f844924f0.png

查看报错日志: [root@controller ~]# cat /var/log/httpd/error_log 发现: "Unable to create a new session key. " [Sat Jun 03 17:18:37.172359 2023] [:error] [pid 22541] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.

image.png

[root@controller ~]# vi /etc/openstack-dashboard/local_settings 修改openstack-dashboard本地配置:

把/etc/openstack-dashboard/local_settings 中

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

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

image.png

重启:

image.png

成功登录!

image.png