Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Centos 7 Horizon 500 mod_wsgi errors

I'm following the RHEL 7 guide for my first openstack installation. Everything is working really well with very few surprises, so props to the OP of this excellent guide!

When I installed and test Horizon I get a 500 error and the following apache logs. This looks to be a django environment issue with paths or permissions. It cant find the middleware modules. I've tried to find the path variable in the django configs but I cant figure it out. Could I get some hints on where to look next? This appears to be a pretty common issue with app builds, but this is the red hat horizon package itself.

HTTPD Logs:

[Thu Dec 31 20:01:50.288040 2015] [:error] [pid 5985] [remote 10.0.100.12:244] mod_wsgi (pid=5985): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Thu Dec 31 20:01:50.288116 2015] [:error] [pid 5985] [remote 10.0.100.12:244] Traceback (most recent call last): [Thu Dec 31 20:01:50.288139 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__ [Thu Dec 31 20:01:50.288238 2015] [:error] [pid 5985] [remote 10.0.100.12:244] self.load_middleware() [Thu Dec 31 20:01:50.288253 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 44, in load_middleware [Thu Dec 31 20:01:50.288367 2015] [:error] [pid 5985] [remote 10.0.100.12:244] for middleware_path in settings.MIDDLEWARE_CLASSES: [Thu Dec 31 20:01:50.288379 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__ [Thu Dec 31 20:01:50.288460 2015] [:error] [pid 5985] [remote 10.0.100.12:244] self._setup(name) [Thu Dec 31 20:01:50.288473 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _set up [Thu Dec 31 20:01:50.288493 2015] [:error] [pid 5985] [remote 10.0.100.12:244] self._wrapped = Settings(settings_module) [Thu Dec 31 20:01:50.288504 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 128, in __init__ [Thu Dec 31 20:01:50.288523 2015] [:error] [pid 5985] [remote 10.0.100.12:244] mod = importlib.import_module(self.SETTINGS_MODULE) [Thu Dec 31 20:01:50.288534 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module [Thu Dec 31 20:01:50.288582 2015] [:error] [pid 5985] [remote 10.0.100.12:244] __import__(name) [Thu Dec 31 20:01:50.288594 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 345, in <module> [Thu Dec 31 20:01:50.288703 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from openstack_dashboard import policy [Thu Dec 31 20:01:50.288715 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/policy.py", line 22, in <module> [Thu Dec 31 20:01:50.288792 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from openstack_auth import utils as auth_utils [Thu Dec 31 20:01:50.288804 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/openstack_auth/utils.py", line 20, in <module> [Thu Dec 31 20:01:50.288882 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from django.contrib import auth [Thu Dec 31 20:01:50.288894 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 6, in <module> [Thu Dec 31 20:01:50.288971 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from django.middleware.csrf import rotate_token [Thu Dec 31 20:01:50.288984 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/middleware/csrf.py", line 14, in <module> [Thu Dec 31 20:01:50.289084 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from django.utils.cache import patch_vary_headers [Thu Dec 31 20:01:50.289096 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/utils/cache.py", line 26, in <module> [Thu Dec 31 20:01:50.289209 2015] [:error] [pid 5985] [remote 10.0.100.12:244] from django.core.cache import get_cache [Thu Dec 31 20:01:50.289221 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/core/cache/__init__.py", line 69, in <module> [Thu Dec 31 20:01:50.289300 2015] [:error] [pid 5985] [remote 10.0.100.12:244] if DEFAULT_CACHE_ALIAS not in settings.CACHES: [Thu Dec 31 20:01:50.289311 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__ [Thu Dec 31 20:01:50.289331 2015] [:error] [pid 5985] [remote 10.0.100.12:244] self._setup(name) [Thu Dec 31 20:01:50.289342 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup [Thu Dec 31 20:01:50.289360 2015] [:error] [pid 5985] [remote 10.0.100.12:244] self._wrapped = Settings(settings_module) [Thu Dec 31 20:01:50.289371 2015] [:error] [pid 5985] [remote 10.0.100.12:244] File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 159, in __init__ [Thu Dec 31 20:01:50.289389 2015] [:error] [pid 5985] [remote 10.0.100.12:244] raise ValueError("Incorrect timezone setting: %s" % self.TIME_ZONE) [Thu Dec 31 20:01:50.289411 2015] [:error] [pid 5985] [remote 10.0.100.12:244] ValueError: Incorrect timezone setting: CST

Thanks!