安装了dashboard ,在浏览器打开http://controller/horizon,提示500

Trusty Tahr (长期支持)
回复
Morata
帖子: 6
注册时间: 2017-12-14 10:25
系统: win10
送出感谢: 0
接收感谢: 0

安装了dashboard ,在浏览器打开http://controller/horizon,提示500

#1

帖子 Morata » 2017-12-21 10:19

安装了dashboard ,在浏览器打开http://controller/horizon,提示 500 Internal Server Error
求大神,谢谢拉。
下面是error.log
root@controller:~# vi /var/log/apache2/error.log
[Sun Dec 17 06:25:03.357506 2017] [mpm_event:notice] [pid 1941:tid 3074583168] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun Dec 17 06:25:03.357555 2017] [core:notice] [pid 1941:tid 3074583168] AH00094: Command line: '/usr/sbin/apache2'
[Sun Dec 17 07:41:16.881325 2017] [mpm_event:notice] [pid 2021:tid 3074415232] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun Dec 17 07:41:16.900822 2017] [core:notice] [pid 2021:tid 3074415232] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 18 20:40:24.013224 2017] [mpm_event:notice] [pid 2155:tid 3074148992] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:40:24.022978 2017] [core:notice] [pid 2155:tid 3074148992] AH00094: Command line: '/usr/sbin/apache2'
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@[Mon Dec 18 20:45:10.010923 2017] [mpm_event:notice] [pid 2174:tid 3074022016] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:45:10.114253 2017] [core:notice] [pid 2174:tid 3074022016] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 18 20:53:40.975427 2017] [mpm_event:notice] [pid 2138:tid 3074284160] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:53:41.006649 2017] [core:notice] [pid 2138:tid 3074284160] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 05:04:35.752449 2017] [mpm_event:notice] [pid 2207:tid 3074112128] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 05:04:35.850855 2017] [core:notice] [pid 2207:tid 3074112128] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:01:14.467790 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:01:14.536659 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:44:35.711483 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 06:44:39.218759 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:44:39.218784 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:44:55.455770 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 06:44:55.556717 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:44:55.556743 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 07:16:54.758219 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 07:16:54.891992 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 07:16:54.892014 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 07:17:34.126978 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] mod_wsgi (pid=6142): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Wed Dec 20 07:17:34.127034 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] mod_wsgi (pid=6142): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Dec 20 07:17:34.127096 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] Traceback (most recent call last):
[Wed Dec 20 07:17:34.127123 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Wed Dec 20 07:17:34.127214 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] application = get_wsgi_application()
"/var/log/apache2/error.log" 480 lines, 79803 characters
[Sun Dec 17 06:25:03.357506 2017] [mpm_event:notice] [pid 1941:tid 3074583168] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun Dec 17 06:25:03.357555 2017] [core:notice] [pid 1941:tid 3074583168] AH00094: Command line: '/usr/sbin/apache2'
[Sun Dec 17 07:41:16.881325 2017] [mpm_event:notice] [pid 2021:tid 3074415232] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Sun Dec 17 07:41:16.900822 2017] [core:notice] [pid 2021:tid 3074415232] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 18 20:40:24.013224 2017] [mpm_event:notice] [pid 2155:tid 3074148992] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:40:24.022978 2017] [core:notice] [pid 2155:tid 3074148992] AH00094: Command line: '/usr/sbin/apache2'
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@[Mon Dec 18 20:45:10.010923 2017] [mpm_event:notice] [pid 2174:tid 3074022016] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:45:10.114253 2017] [core:notice] [pid 2174:tid 3074022016] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 18 20:53:40.975427 2017] [mpm_event:notice] [pid 2138:tid 3074284160] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Mon Dec 18 20:53:41.006649 2017] [core:notice] [pid 2138:tid 3074284160] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 05:04:35.752449 2017] [mpm_event:notice] [pid 2207:tid 3074112128] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 05:04:35.850855 2017] [core:notice] [pid 2207:tid 3074112128] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:01:14.467790 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:01:14.536659 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:44:35.711483 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 06:44:39.218759 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:44:39.218784 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 06:44:55.455770 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 06:44:55.556717 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 06:44:55.556743 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 07:16:54.758219 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00493: SIGUSR1 received. Doing graceful restart
[Wed Dec 20 07:16:54.891992 2017] [mpm_event:notice] [pid 2178:tid 3074333312] AH00489: Apache/2.4.7 (Ubuntu) mod_wsgi/3.4 Python/2.7.6 configured -- resuming normal operations
[Wed Dec 20 07:16:54.892014 2017] [core:notice] [pid 2178:tid 3074333312] AH00094: Command line: '/usr/sbin/apache2'
[Wed Dec 20 07:17:34.126978 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] mod_wsgi (pid=6142): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Wed Dec 20 07:17:34.127034 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] mod_wsgi (pid=6142): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Dec 20 07:17:34.127096 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] Traceback (most recent call last):
[Wed Dec 20 07:17:34.127123 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Wed Dec 20 07:17:34.127214 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] application = get_wsgi_application()
[Wed Dec 20 07:17:34.127233 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Wed Dec 20 07:17:34.150903 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] django.setup()
[Wed Dec 20 07:17:34.150952 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 20, in setup
[Wed Dec 20 07:17:34.165688 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Wed Dec 20 07:17:34.165767 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
[Wed Dec 20 07:17:34.166590 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] self._setup(name)
[Wed Dec 20 07:17:34.166664 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
[Wed Dec 20 07:17:34.166722 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] self._wrapped = Settings(settings_module)
[Wed Dec 20 07:17:34.166748 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 94, in __init__
[Wed Dec 20 07:17:34.166782 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Dec 20 07:17:34.166817 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed Dec 20 07:17:34.178258 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] __import__(name)
[Wed Dec 20 07:17:34.178341 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 357, in <module>
[Wed Dec 20 07:17:34.178767 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from openstack_dashboard import policy_backend
[Wed Dec 20 07:17:34.178813 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/policy_backend.py", line 20, in <module>
[Wed Dec 20 07:17:34.178991 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from openstack_auth import utils as auth_utils
[Wed Dec 20 07:17:34.179022 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/openstack_auth/utils.py", line 19, in <module>
[Wed Dec 20 07:17:34.187162 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from django.contrib import auth
[Wed Dec 20 07:17:34.187230 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 7, in <module>
[Wed Dec 20 07:17:34.193127 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from django.middleware.csrf import rotate_token
[Wed Dec 20 07:17:34.193193 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/middleware/csrf.py", line 14, in <module>
[Wed Dec 20 07:17:34.193900 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from django.utils.cache import patch_vary_headers
[Wed Dec 20 07:17:34.193955 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/utils/cache.py", line 26, in <module>
[Wed Dec 20 07:17:34.199817 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] from django.core.cache import caches
[Wed Dec 20 07:17:34.199882 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/core/cache/__init__.py", line 34, in <module>
[Wed Dec 20 07:17:34.208707 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] if DEFAULT_CACHE_ALIAS not in settings.CACHES:
[Wed Dec 20 07:17:34.208774 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 46, in __getattr__
[Wed Dec 20 07:17:34.208837 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] self._setup(name)
[Wed Dec 20 07:17:34.208861 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 42, in _setup
[Wed Dec 20 07:17:34.208924 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] self._wrapped = Settings(settings_module)
[Wed Dec 20 07:17:34.208948 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 123, in __init__
[Wed Dec 20 07:17:34.208980 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE)
[Wed Dec 20 07:17:34.209023 2017] [:error] [pid 6142:tid 3050720064] [remote 192.168.190.1:15287] ValueError: Incorrect timezone setting: TIME_ZONE
@
附件
111.PNG
头像
九天星
帖子: 1347
注册时间: 2007-07-14 20:45
送出感谢: 67 次
接收感谢: 39 次

Re: 安装了dashboard ,在浏览器打开http://controller/horizon,提示500

#2

帖子 九天星 » 2017-12-22 20:27

本机安装?


http://localhost
Morata
帖子: 6
注册时间: 2017-12-14 10:25
系统: win10
送出感谢: 0
接收感谢: 0

Re: 安装了dashboard ,在浏览器打开http://controller/horizon,提示500

#3

帖子 Morata » 2017-12-22 23:14

九天星 写了:本机安装?


http://localhost
是本机安装。我已经解决了。
我编辑文件 /etc/openstack-dashboard/local_settings.py 这个文件出错了。

TIME_ZONE = "TIME_ZONE" 这行代码输入错误了
回复

回到 “Ubuntu 14.04 LTS”