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

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

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

查看dashboard 的日志:

vim /var/log/httpd/horizon_error.log

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

原因

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

排错: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.

如果还不行:

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

相关文章:

  • 2021-09-04
  • 2021-08-27
  • 2022-01-12
  • 2021-11-27
  • 2021-10-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-04
猜你喜欢
  • 2022-12-23
  • 2021-10-02
  • 2021-09-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案