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

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

问题

登录openstack页面,报错,如下:

查看dashboard 的日志:

vim /var/log/httpd/horizon_error.log

原因

查看 memcached发现是down的,启动 memcached解决

如果还不行:

1.修改配置文件
vim /usr/lib/python2.7/site-packages/django/conf/global_settings.py
2.将SESSION_ENGINE值修改

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

改为

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

3.重启服务,然后再次登录。

systemctl restart httpd.service memcached.service
原文地址:https://www.cnblogs.com/mrwuzs/p/11767178.html