分享

浏览器访问http://controller/horizon 报错误Internal Server Error

愤怒的小马 发表于 2016-9-27 23:49:11 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 5 15302
按照官方文档配置,其他流程算正常。
http://controller 是正常打开页面的看apache2的日志错误如下。请教大神,这么到底哪里配错了

/var/log/apache2> tail -f error.log
[Tue Sep 27 07:48:23.020727 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] mod_wsgi (pid=6041): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Tue Sep 27 07:48:23.021084 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] mod_wsgi (pid=6041): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Tue Sep 27 07:48:23.021375 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] Traceback (most recent call last):
[Tue Sep 27 07:48:23.021633 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Tue Sep 27 07:48:23.021979 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     application = get_wsgi_application()
[Tue Sep 27 07:48:23.022328 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Tue Sep 27 07:48:23.022729 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     django.setup()
[Tue Sep 27 07:48:23.023596 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Tue Sep 27 07:48:23.024743 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Sep 27 07:48:23.026178 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
[Tue Sep 27 07:48:23.027102 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     self._setup(name)
[Tue Sep 27 07:48:23.027209 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
[Tue Sep 27 07:48:23.027480 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     self._wrapped = Settings(settings_module)
[Tue Sep 27 07:48:23.027530 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Tue Sep 27 07:48:23.027579 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Sep 27 07:48:23.027622 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Tue Sep 27 07:48:23.027666 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     __import__(name)
[Tue Sep 27 07:48:23.027938 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 294, in <module>
[Tue Sep 27 07:48:23.028039 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     from local.local_settings import *  # noqa
[Tue Sep 27 07:48:23.028175 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 274
[Tue Sep 27 07:48:23.028446 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     'default_ipv4_subnet_pool_label': None,
[Tue Sep 27 07:48:23.028484 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666]     ^
[Tue Sep 27 07:48:23.028511 2016] [:error] [pid 6041:tid 139750722139904] [remote 10.20.0.1:46666] IndentationError: unexpected indent


已有(5)人评论

跳转到指定楼层
qcbb001 发表于 2016-9-28 08:55:30
WSGI这个服务看下是否正常
回复

使用道具 举报

愤怒的小马 发表于 2016-9-28 10:27:25
qcbb001 发表于 2016-9-28 08:55
WSGI这个服务看下是否正常

如何看wsgi服务呢? 对于Python 还不是很懂
回复

使用道具 举报

愤怒的小马 发表于 2016-9-28 10:36:18
qcbb001 发表于 2016-9-28 08:55
WSGI这个服务看下是否正常

[Tue Sep 27 18:25:18.680398 2016] [mpm_event:notice] [pid 2870:tid 140467661260672] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Tue Sep 27 18:25:18.713776 2016] [core:notice] [pid 2870:tid 140467661260672] AH00094: Command line: '/usr/sbin/apache2'

回复

使用道具 举报

tntzbzc 发表于 2016-9-28 13:17:01

可能是用户权限或则配置的问题吧
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条