安装 dashboard 之后,打开页面提示Internal Server Error 错误

local_settings.py 配置文件内容是这样的。

import os

from django.utils.translation import ugettext_lazy as _

DEBUG = False
TEMPLATE_DEBUG = DEBUG
PROD = False
USE_SSL = False
SECRET_KEY = 'elj1IWiLoWHgcyYxVLj7cMrFDxWl0'
OPENSTACK_HOST = "0.0.0.0"
ALLOWED_HOSTS = ['*']

OPENSTACK_KEYSTONE_DEFAULT_ROLE = "admin"
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'

CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
OPENSTACK_NEUTRON_NETWORK = {

'enable_router': False,
'enable_quotas': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,
}

TIME_ZONE = "Asia/Shanghai"

LOGGING = {
'version': 1,
# When set to True this will disable all logging except
# for loggers specified in this configuration dictionary. Note that
# if nothing is specified here and disable_existing_loggers is True,
# django.db.backends will still log unless it is disabled explicitly.
'disable_existing_loggers': False,
'handlers': {
'null': {
'level': 'DEBUG',
'class': 'django.utils.log.NullHandler',
},
'console': {
# Set the level to "DEBUG" for verbose output logging.
'level': 'INFO',
'class': 'logging.StreamHandler',
},
},
'loggers': {
# Logging from django.db.backends is VERY verbose, send to null
# by default.
'django.db.backends': {
'handlers': ['null'],
'propagate': False,
},
'horizon': {
'handlers': ['console'],
'propagate': False,
},
'novaclient': {
'handlers': ['console'],
'propagate': False,
},
'keystoneclient': {
'handlers': ['console'],
'propagate': False,
},
'nose.plugins.manager': {
'handlers': ['console'],
'propagate': False,
}
}
}


apache的error.log内容
[Sat Jun 11 08:15:00 2016] [notice] Apache/2.2.22 (Ubuntu) PHP/5.3.10-1ubuntu3.21 with Suhosin-Patch mod_wsgi/3.3 Python/2.7.3 configured -- resuming normal operations
[Sat Jun 11 23:15:06 2016] [error] Warning: Could not import Horizon dependencies. This is normal during installation.
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] mod_wsgi (pid=25223): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] Traceback (most recent call last):
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 170, in __call__
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] self.load_middleware()
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 50, in load_middleware
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] mw_class = import_string(middleware_path)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 26, in import_string
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] module = import_module(module_path)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] __import__(name)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] ImportError: No module named doc
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] mod_wsgi (pid=25223): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] Traceback (most recent call last):
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 170, in __call__
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] self.load_middleware()
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py", line 50, in load_middleware
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] mw_class = import_string(middleware_path)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/local/lib/python2.7/dist-packages/django/utils/module_loading.py", line 26, in import_string
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] module = import_module(module_path)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] __import__(name)
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] ImportError: No module named doc
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] mod_wsgi (pid=25223): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'., referer: http://192.168.255.141/horizon
[Sat Jun 11 23:15:06 2016] [error] [client 192.168.255.1] Traceback (most recent call last):, referer: http://192.168.255.141/horizon
...全文
1190 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

999

社区成员

发帖
与我相关
我的任务
社区描述
OpenStack
社区管理员
  • OpenStack社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧