分享

dashboard500了

浏览器显示这个
Internal Server Error
The 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 10.20.0.10 Port 80
日志显示这个:
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1] mod_wsgi (pid=5352): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1] Traceback (most recent call last):
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 219, in __call__
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     self.load_middleware()
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 37, in load_middleware
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 184, in inner
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     self._setup()
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 42, in _setup
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     self._wrapped = Settings(settings_module)
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/conf/__init__.py", line 93, in __init__
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     __import__(name)
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 223, in <module>
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     from local.local_settings import *  # noqa
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 98
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]      CACHES = {
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]     ^
[Tue Aug 11 07:17:40 2015] [error] [client 10.20.0.1]  IndentationError: unexpected indent

已有(2)人评论

跳转到指定楼层
bob007 发表于 2015-8-11 22:54:26
500错误是最常见的,下面楼主可参考
dashboard报500错误(二)
http://www.aboutyun.com/thread-11954-1-1.html


dashboard报500错误
http://www.aboutyun.com/thread-11867-1-1.html



回复

使用道具 举报

yang123jin4 发表于 2015-8-11 23:18:24
解决了。。。原来是缩进出了问题。。。真蛋疼。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条