当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 3 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 安装了dashboard ,在浏览器打开http://controller/horizon,提示500
帖子发表于 : 2017-12-21 10:19 

注册: 2017-12-14 10:25
帖子: 6
系统: win10
送出感谢: 0 次
接收感谢: 0 次
安装了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
111.PNG [ 76.83 KiB | 被浏览 510 次 ]

页首
 用户资料  
 
2 楼 
 文章标题 : Re: 安装了dashboard ,在浏览器打开http://controller/horizon,提示500
帖子发表于 : 2017-12-22 20:27 
头像

注册: 2007-07-14 20:45
帖子: 1256
送出感谢: 67
接收感谢: 36
本机安装?


http://localhost


_________________
开源、共享、自由

微信号非公众号:xfiles_sky

用手机点击这里有奇迹发生,其他无效


页首
 用户资料  
 
3 楼 
 文章标题 : Re: 安装了dashboard ,在浏览器打开http://controller/horizon,提示500
帖子发表于 : 2017-12-22 23:14 

注册: 2017-12-14 10:25
帖子: 6
系统: win10
送出感谢: 0 次
接收感谢: 0 次
九天星 写道:
本机安装?


http://localhost


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

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


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 3 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:没有注册用户 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译