0

我尝试按照此处的建议通过 IP10.20.20.1admin用户访问 Horizo​​n,并收到以下运行时错误:

Request Method: | POST
-- | --
http://10.20.20.1/auth/login/
2.0.13
RuntimeError
Unable to create a new session key. It is likely that the cache is unavailable.
/snap/microstack/196/lib/python3.6/site-packages/django/contrib/sessions/backends/cache.py in create, line 51
/snap/microstack/196/bin/uwsgi
3.6.9
['.',  '',  '/snap/microstack/196/usr/lib/python36.zip',  '/snap/microstack/196/usr/lib/python3.6',  
'/snap/microstack/196/usr/lib/python3.6/lib-dynload',  '/snap/microstack/196/usr/lib/python3/dist-packages',  
'/snap/microstack/196/lib/python3.6/site-packages',  '/snap/microstack/196/lib/python3.6/site-packages/openstack_dashboard']
Mon, 17 Aug 2020 12:42:48 +0000

预期结果将是成功登录。

4

1 回答 1

0

Check on which address Memcached is running. With the command:

systemctl status memcached

And set that IP address in the local_settings.py mine it's located in /etc/openstack-dashboard/local_settings.py

CACHES = {
    'default': {
        'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
        'LOCATION': '192.168.122.2:11211',
    },
}
于 2022-01-16T17:15:29.860 回答