openstack按照官網docs部署horizon后,使用admin賬號密碼登錄,但網頁提示未知錯誤。
查看/var/log/httpd/error_log
提示這個:RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.
緩存有問題,在外國網站找到解決方案:
將 /etc/openstack-dashboard/local_settings 里的
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
改成
SESSION_ENGINE = 'django.contrib.sessions.backends.file'
重啟httpd和memcached
成功進入Dashboard