Ask Your Question
0

Error in dashboard service installation

asked 2018-11-11 14:55:47 -0600

najeh gravatar image

updated 2018-11-12 05:27:43 -0600

After the installation of dashboard service on the controller node i tried to access the dashboard using a web browser at http://ip_address/horizon.

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.

This is my error.log file :

Mon Nov 12 01:03:34.832729 2018] [wsgi:error] [pid 21556:tid 139666673092352] [remote 192.168.1.66:37512] 

SyntaxError: invalid syntax

[Mon Nov 12 01:03:45.063300 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566] mod_wsgi (pid=21557): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi

[Mon Nov 12 01:03:45.063342 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566] mod_wsgi (pid=21557): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/$

[Mon Nov 12 01:03:45.063363 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566] Traceback (most recent call last):

[Mon Nov 12 01:03:45.063382 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi.py", line 29, in <module>

[Mon Nov 12 01:03:45.063437 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]     application = get_wsgi_application()

[Mon Nov 12 01:03:45.063447 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]   File "/usr/local/lib/python2.7/dist-packages/django/core/wsgi.py", line 13, in get_wsgi_applic$

[Mon Nov 12 01:03:45.063478 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]     django.setup(set_prefix=False)

[Mon Nov 12 01:03:45.063487 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]   File "/usr/local/lib/python2.7/dist-packages/django/__init__.py", line 22, in setup

[Mon Nov 12 01:03:45.063518 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]     configure_logging(settings.LOGGING_CONFIG, settings.LOGGING)

[Mon Nov 12 01:03:45.063528 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 56, in __getattr__

[Mon Nov 12 01:03:45.063598 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]     self._setup(name)

[Mon Nov 12 01:03:45.063607 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]   File "/usr/local/lib/python2.7/dist-packages/django/conf/__init__.py", line 41, in _setup

[Mon Nov 12 01:03:45.063621 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote 192.168.1.66:37566]     self._wrapped = Settings(settings_module)

[Mon Nov 12 01:03:45.063635 2018] [wsgi:error] [pid 21557:tid 139666723448576] [remote ...
(more)
edit retag flag offensive close merge delete

Comments

1

Look for more information in the error log.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-11 15:51:32 -0600 )edit

@Bernd Bausch I set my error.log file above
i didn't understaned how can i resolve the error

najeh gravatar imagenajeh ( 2018-11-11 17:48:09 -0600 )edit

The messages are fairly clear: WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi’ seems to contain a syntax error.

Bernd Bausch gravatar imageBernd Bausch ( 2018-11-11 23:53:57 -0600 )edit

From the log its saying "SyntaxError: invalid syntax".Please check our configuration

Deepa gravatar imageDeepa ( 2018-11-12 00:23:21 -0600 )edit

I couldn't see any syntax error in the /usr/share/openstack-dashboard/openstack_dashboard/wsgi.py file cited above in the question

najeh gravatar imagenajeh ( 2018-11-12 04:28:46 -0600 )edit

2 answers

Sort by » oldest newest most voted
1

answered 2018-11-14 12:18:44 -0600

reynoni gravatar image

Have you modified your /etc/openstack-dashboard/local_settings.py file? If so, I'd say the issue is probably in a misconfigured line in that file that these other scripts are pulling from. Verify it's integrity or load from another version.

edit flag offensive delete link more
-1

answered 2018-11-12 07:07:25 -0600

updated 2018-11-13 22:46:53 -0600

Reinstall horizon using below commands

apt -- purge OpenStack-dashboard
apt install openstack-dashboard

after reinstalling new config file(/etc/OpenStack-dashboard/local_settings.py) will be generated, you can configure dashboard by using newly generated file,it worked for me

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: 2018-11-11 14:55:47 -0600

Seen: 72 times

Last updated: Nov 14