Ask Your Question
0

Unable to launch Horizon Dashboard

asked 2017-06-28 17:47:37 -0500

Asghar0819 gravatar image

updated 2017-06-28 19:25:34 -0500

When I attempt to launch dashboard, I am getting 500 internal server error. PLease see the error logs below.

root@Controller-1:/var/log/apache2# tail -f error.log
[Wed Jun 28 17:40:06.907356 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]   File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Wed Jun 28 17:40:06.907370 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Jun 28 17:40:06.907381 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed Jun 28 17:40:06.907423 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]     __import__(name)
[Wed Jun 28 17:40:06.907436 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]   File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 335, in <module>
[Wed Jun 28 17:40:06.907575 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]     from local.local_settings import *  # noqa
[Wed Jun 28 17:40:06.907627 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]   File "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py", line 67
[Wed Jun 28 17:40:06.907637 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]     OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
[Wed Jun 28 17:40:06.907642 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119]                                            ^
[Wed Jun 28 17:40:06.907657 2017] [wsgi:error] [pid 5718:tid 140270968366848] [remote 138.85.226.42:22119] SyntaxError: invalid syntax
edit retag flag offensive close merge delete

Comments

can you post your settings file? What if you comment out OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT and/or the variable after?

Andreas Merk gravatar imageAndreas Merk ( 2017-06-30 03:16:54 -0500 )edit

I tried commenting out OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT. When that is done. The error does to next variable.

Asghar0819 gravatar imageAsghar0819 ( 2017-07-11 11:56:55 -0500 )edit

Perhaps you should check the line BEFORE that then. There is obviously a syntax error in your settings.py.

You can share the settings file in paste.openstack.org.

Bernd Bausch gravatar imageBernd Bausch ( 2017-07-11 22:52:57 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
0

answered 2017-06-29 00:20:06 -0500

daniel hernandez gravatar image

updated 2017-07-01 01:11:09 -0500

I finished to deploy Ocata in ubuntu server and have same problem, I looked around many webpages and checked several workaround but still have "500 Internal Server error" here is error pretty similar that Asghar0819. Please help us

[Wed Jun 28 23:10:51.247053 2017] [wsgi:error]  mod_wsgi (pid=6468): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Wed Jun 28 23:10:51.247330 2017] [wsgi:error]  mod_wsgi (pid=6468): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Wed Jun 28 23:10:51.247475 2017] [wsgi:error]  Traceback (most recent call last):
[Wed Jun 28 23:10:51.247806 2017] [wsgi:error]    File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Wed Jun 28 23:10:51.248208 2017] [wsgi:error]      application = get_wsgi_application()
[Wed Jun 28 23:10:51.248395 2017] [wsgi:error]    File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Wed Jun 28 23:10:51.248527 2017] [wsgi:error]      django.setup()
[Wed Jun 28 23:10:51.248742 2017] [wsgi:error]    File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 17, in setup
[Wed Jun 28 23:10:51.248835 2017] [wsgi:error]      configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)
[Wed Jun 28 23:10:51.248883 2017] [wsgi:error]    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in __getattr__
[Wed Jun 28 23:10:51.249058 2017] [wsgi:error]      self._setup(name)
[Wed Jun 28 23:10:51.249195 2017] [wsgi:error]    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 44, in _setup
[Wed Jun 28 23:10:51.249253 2017] [wsgi:error]      self._wrapped = Settings(settings_module)
[Wed Jun 28 23:10:51.249370 2017] [wsgi:error]    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__
[Wed Jun 28 23:10:51.249470 2017] [wsgi:error]      mod = importlib.import_module(self.SETTINGS_MODULE)
[Wed Jun 28 23:10:51.249500 2017] [wsgi:error]    File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Wed Jun 28 23:10:51.249681 2017] [wsgi:error]      __import__(name)
[Wed Jun 28 23:10:51.249777 2017] [wsgi:error]    File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 335, in <module>
[Wed Jun 28 23:10:51.249974 2017] [wsgi:error]      from local.local_settings import *  # noqa
[Wed Jun 28 23:10:51.250093 2017] [wsgi:error]    File "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py", line 66
[Wed Jun 28 23:10:51.250170 2017] [wsgi:error]      OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True
[Wed Jun 28 23:10:51.250205 2017] [wsgi:error]                                             ^
[Wed Jun 28 23:10:51.250234 2017] [wsgi:error]  SyntaxError: invalid syntax
edit flag offensive delete link more

Comments

I remove Dashboard Horizon and reinstall again, then "chown -R www-data:www-data secret_key" in /var/lib/openstack-dashboard and allowed me to display login horizon webpage, however credential are invalid is displaying it. credential in CLI works good. I am using admin and demo user for login

daniel hernandez gravatar imagedaniel hernandez ( 2017-06-30 01:49:32 -0500 )edit
0

answered 2017-07-11 11:47:55 -0500

Asghar0819 gravatar image

I tried changing the ownership of file secret_key in the directory /var/lib/openstack-dashboard as suggested, but I am still getting 500 internal error when attempting to launch the dashboard. Please below a tail of error log in /var/log/apache2/error.log. Still getting the same error

root@Controller-1:/var/log/apache2# tail -f error.log [Tue Jul 11 05:41:52.592487 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 92, in __init__ [Tue Jul 11 05:41:52.592503 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] mod = importlib.import_module(self.SETTINGS_MODULE) [Tue Jul 11 05:41:52.592514 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module [Tue Jul 11 05:41:52.592560 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] __import__(name) [Tue Jul 11 05:41:52.592574 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] File "/usr/share/openstack-dashboard/openstack_dashboard/settings.py", line 335, in <module> [Tue Jul 11 05:41:52.592742 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] from local.local_settings import * # noqa [Tue Jul 11 05:41:52.592798 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] File "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.py", line 66 [Tue Jul 11 05:41:52.592808 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] OPENSTACK_KEYSTONE_MULTIDOMAIN_SUPPORT = True [Tue Jul 11 05:41:52.592814 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] ^ [Tue Jul 11 05:41:52.592819 2017] [wsgi:error] [pid 20199:tid 139834066355968] [remote 138.85.226.32:62381] SyntaxError: invalid syntax

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

2 followers

Stats

Asked: 2017-06-28 17:47:37 -0500

Seen: 741 times

Last updated: Jul 11 '17