openstack pike dashboard儀表盤沒法登錄

 

問題現象 :python

瀏覽器輸入 http://controller/dashboard 訪問儀表盤沒法登錄,提示「出錯啦!django

遇到異常狀況,請刷新。如需幫助請聯繫管理員。」vim

/var/log/httpd/error_log 中一直報如下錯誤:瀏覽器

... ...session

[Wed Nov 01 06:36:08.539559 2017] [:error] [pid 16283] self.createpython2.7

[Wed Nov 01 06:36:08.539566 2017] [:error] [pid 16283] File "/usr/lib/python2.7/site-packages/django/contrib/sessions/backends/cache.py", line 48, in creatememcached

[Wed Nov 01 06:36:08.539569 2017] [:error] [pid 16283] "Unable to create a newsession key. "rest

[Wed Nov 01 06:36:08.539577 2017] [:error] [pid 16283] RuntimeError: Unable to create a new session key. It is likely that the cache is unavailable.blog

[Wed Nov 01 02:41:09.576741 2017] [mpm_prefork:notice] [pid 16278] AH00170: caught SIGWINCH, shutting down gracefullyget

解決辦法:

更改dashboard的local_settings配置文件並重啓httpd和memcached,刷新後可正常登錄。

?

  1. # vim /etc/openstack-dashboard/local_settings
  2. #SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
  3. SESSION_ENGINE = 'django.contrib.sessions.backends.file'
  4. # systemctl restart httpd memcached
  5. # systemctl status httpd memcached
相關文章
相關標籤/搜索