Ask Your Question
0

dashboard gives 500 error

asked 2014-12-11 07:05:43 -0500

kaushik209 gravatar image

updated 2014-12-12 05:58:19 -0500

BrunoGraz gravatar image

Hi I was trying to install dashboard of juno first time but I received the following error in httpd error.log

[Wed Dec 03 11:36:02.908363 2014] [:error] [pid 5627] [remote 10.20.30.128:26710] mod_wsgi (pid=5627): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Dec 03 11:36:02.908431 2014] [:error] [pid 5627] [remote 10.20.30.128:26710] Traceback (most recent call last):
[Wed Dec 03 11:36:02.908457 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 187, in __call__
[Wed Dec 03 11:36:02.908562 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     self.load_middleware()
[Wed Dec 03 11:36:02.908578 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 44, in load_middleware
[Wed Dec 03 11:36:02.908680 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     for middleware_path in settings.MIDDLEWARE_CLASSES:
[Wed Dec 03 11:36:02.908696 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 54, in __getattr__
[Wed Dec 03 11:36:02.908778 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     self._setup(name)
[Wed Dec 03 11:36:02.908791 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 49, in _setup
[Wed Dec 03 11:36:02.908852 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     self._wrapped = Settings(settings_module)
[Wed Dec 03 11:36:02.908876 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/conf/__init__.py", line 128, in __init__
[Wed Dec 03 11:36:02.908902 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Dec 03 11:36:02.908915 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/lib/python2.7/site-packages/django/utils/importlib.py", line 40, in import_module
[Wed Dec 03 11:36:02.908983 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     __import__(name)
[Wed Dec 03 11:36:02.908995 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 318, in <module>
[Wed Dec 03 11:36:02.909105 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     from local.local_settings import *  # noqa
[Wed Dec 03 11:36:02.909166 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 104
[Wed Dec 03 11:36:02.909175 2014] [:error] [pid 5627] [remote 10.20.30.128:26710]     CACHES = {
[Wed Dec 03 11:36:02.909179 2014] [:error] [pid 5627] [remote 10.20.30 ...
(more)
edit retag flag offensive close merge delete

Comments

Hi I can see below lines local_settings.py

104 CACHES = {
105 'default': { 106 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache' } }

kaushik209 gravatar imagekaushik209 ( 2014-12-12 00:45:27 -0500 )edit

Please do let me know if this line need to get modified.

kaushik209 gravatar imagekaushik209 ( 2014-12-12 00:45:55 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
2

answered 2014-12-12 06:02:40 -0500

BrunoGraz gravatar image

updated 2014-12-12 06:04:04 -0500

Check the indentation, Python differentiates tabs and spaces; look before CACHE and make sure everything is ok.

edit flag offensive delete link more
2

answered 2014-12-12 00:27:24 -0500

teju gravatar image

The logs clearly shows indentation error @ line 104.

Make sure you have the exact value of CACHES in local_settings.py file

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-12-11 07:05:43 -0500

Seen: 1,078 times

Last updated: Dec 12 '14