openstack newton dashboard 500错误,是什么原因

麦田小兜兜 2017-09-26 02:29:11
dashboard配置
OPENSTACK_HOST = "controller"
ALLOWED_HOSTS = ['*',]
SESSION_ENGINE = 'django.contrib.sessions.backends.cache'
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
'LOCATION': 'controller:11211',
}
}
OPENSTACK_KEYSTONE_URL = "http://%s:5000/v3" % OPENSTACK_HOST
OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
OPENSTACK_API_VERSIONS = {
"identity": 3,
"image": 2,
"volume": 2,
}
OPENSTACK_KEYSTONE_DEFAULT_DOMAIN = "default"
OPENSTACK_KEYSTONE_DEFAULT_ROLE = "user"
TIME_ZONE = "Asia/Shanghai"
OPENSTACK_NEUTRON_NETWORK = {
'enable_router': False,
'enable_quotas': False,
'enable_distributed_router': False,
'enable_ha_router': False,
'enable_lb': False,
'enable_firewall': False,
'enable_vpn': False,
'enable_fip_topology_check': False,
}

[Tue Sep 26 14:03:22.399645 2017] [:error] [pid 27615] [remote 192.168.1.252:236] mod_wsgi (pid=27615): Target WSGI script '/usr/share/openstack-dashboard/openst
ack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.[Tue Sep 26 14:03:22.400075 2017] [:error] [pid 27615] [remote 192.168.1.252:236] mod_wsgi (pid=27615): Exception occurred processing WSGI script '/usr/share/ope
nstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.[Tue Sep 26 14:03:22.400111 2017] [:error] [pid 27615] [remote 192.168.1.252:236] Traceback (most recent call last):
[Tue Sep 26 14:03:22.400130 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", l
ine 14, in <module>[Tue Sep 26 14:03:22.400464 2017] [:error] [pid 27615] [remote 192.168.1.252:236] application = get_wsgi_application()
[Tue Sep 26 14:03:22.400480 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_
wsgi_application[Tue Sep 26 14:03:22.400566 2017] [:error] [pid 27615] [remote 192.168.1.252:236] django.setup()
[Tue Sep 26 14:03:22.400580 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/django/__init__.py", line 17, in setup
[Tue Sep 26 14:03:22.400617 2017] [:error] [pid 27615] [remote 192.168.1.252:236] configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Tue Sep 26 14:03:22.400627 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 48, in
__getattr__[Tue Sep 26 14:03:22.400982 2017] [:error] [pid 27615] [remote 192.168.1.252:236] self._setup(name)
[Tue Sep 26 14:03:22.400997 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 44, in
_setup[Tue Sep 26 14:03:22.401013 2017] [:error] [pid 27615] [remote 192.168.1.252:236] self._wrapped = Settings(settings_module)
[Tue Sep 26 14:03:22.401019 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 92, in
__init__[Tue Sep 26 14:03:22.401028 2017] [:error] [pid 27615] [remote 192.168.1.252:236] mod = importlib.import_module(self.SETTINGS_MODULE)
[Tue Sep 26 14:03:22.401035 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib64/python2.7/importlib/__init__.py", line 37, in import_module
[Tue Sep 26 14:03:22.401077 2017] [:error] [pid 27615] [remote 192.168.1.252:236] __import__(name)
[Tue Sep 26 14:03:22.401085 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack
_dashboard/settings.py", line 419, in <module>[Tue Sep 26 14:03:22.402545 2017] [:error] [pid 27615] [remote 192.168.1.252:236] '.secret_key_store'))
[Tue Sep 26 14:03:22.402569 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 68,
in generate_or_read_from_file[Tue Sep 26 14:03:22.402638 2017] [:error] [pid 27615] [remote 192.168.1.252:236] key = read_from_file(key_file)
[Tue Sep 26 14:03:22.402647 2017] [:error] [pid 27615] [remote 192.168.1.252:236] File "/usr/lib/python2.7/site-packages/horizon/utils/secret_key.py", line 50,
in read_from_file[Tue Sep 26 14:03:22.402661 2017] [:error] [pid 27615] [remote 192.168.1.252:236] with open(key_file, 'r') as f:
[Tue Sep 26 14:03:22.402701 2017] [:error] [pid 27615] [remote 192.168.1.252:236] IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/.secret_key_store'

根据错误修改权限之后,还是报错
[root@controller local]# ll
总用量 20
drwxr-xr-x 2 root apache 96 9月 25 17:49 enabled
-rw-r--r-- 1 root apache 0 6月 21 14:12 __init__.py
-rw-r--r-- 2 root apache 155 6月 21 16:04 __init__.pyc
-rw-r--r-- 2 root apache 155 6月 21 16:04 __init__.pyo
drwxr-xr-x 2 root apache 194 9月 25 17:49 local_settings.d
lrwxrwxrwx 1 root apache 54 9月 25 17:49 local_settings.py -> ../../../../..//etc/openstack-dashboard/local_settings
-rw-r--r-- 1 root apache 1118 9月 26 11:29 local_settings.pyc
-rw-r--r-- 1 root apache 5578 6月 21 16:04 local_settings.pyo
-rw-r--r-- 1 root root 0 9月 26 11:56 _usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock
[root@controller local]# chown apache.apache .secret_key_store _usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock
[root@controller local]# ll
总用量 20
drwxr-xr-x 2 root apache 96 9月 25 17:49 enabled
-rw-r--r-- 1 root apache 0 6月 21 14:12 __init__.py
-rw-r--r-- 2 root apache 155 6月 21 16:04 __init__.pyc
-rw-r--r-- 2 root apache 155 6月 21 16:04 __init__.pyo
drwxr-xr-x 2 root apache 194 9月 25 17:49 local_settings.d
lrwxrwxrwx 1 root apache 54 9月 25 17:49 local_settings.py -> ../../../../..//etc/openstack-dashboard/local_settings
-rw-r--r-- 1 root apache 1118 9月 26 11:29 local_settings.pyc
-rw-r--r-- 1 root apache 5578 6月 21 16:04 local_settings.pyo
-rw-r--r-- 1 apache apache 0 9月 26 11:56 _usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock

现在报错为这样的
[Tue Sep 26 14:26:18.511129 2017] [:error] [pid 27615] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please use the 'zh-hans' translation instead.

请问怎么解决



...全文
1634 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
麦田小兜兜 2017-09-28
  • 打赏
  • 举报
回复
日志 [Thu Sep 28 13:36:47.082380 2017] [:error] [pid 69943] WARNING:py.warnings:RemovedInDjango19Warning: The use of the language code 'zh-cn' is deprecated. Please u se the 'zh-hans' translation instead.
麦田小兜兜 2017-09-28
  • 打赏
  • 举报
回复
改过了,但是还是报错



日志
alinly 2017-09-27
  • 打赏
  • 举报
回复
[Tue Sep 26 14:03:22.402701 2017] [:error] [pid 27615] [remote 192.168.1.252:236] IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/.secret_key_store' chown -R apache:apache /usr/share/openstack-dashboard/

999

社区成员

发帖
与我相关
我的任务
社区描述
OpenStack
社区管理员
  • OpenStack社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧