大家好,我在虚拟机上按照官方文档安装了Havana,在安装配置好dashboard后,访问报错,Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, root@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/2.2.15 (CentOS) Server at hctrl Port 80
Apache的error.log内容如下:
[Tue Jan 13 10:30:32 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Jan 13 10:30:32 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Jan 13 10:30:32 2015] [notice] Digest: done
[Tue Jan 13 10:30:32 2015] [notice] Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] mod_wsgi (pid=24730): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] Traceback (most recent call last):
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] self.load_middleware()
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 37, in load_middleware
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] for middleware_path in settings.MIDDLEWARE_CLASSES:
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] self._setup()
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] self._wrapped = Settings(settings_module)
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] __import__(name)
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 221, in <module>
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] from local.local_settings import * # noqa
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 16
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] ALLOWED_HOSTS = ['hctrl', 'localhost']
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] ^
[Tue Jan 13 10:30:48 2015] [error] [client 192.168.20.57] IndentationError: unexpected indent
烦劳大家帮忙分析下,是哪里的问题,非常感谢!
或qq联系:27988629
|