IMP::- Getting 500 Internal Server Error while accessing the dashboard in Ubuntu liberty version

asked 2017-09-18 18:21:48 -0500

Ruchir Nerurkar gravatar image
Hi,

I am trying to access the dashboard after configuring Liberty openstack version on Ubuntu 14.04 server but i am getting the following error:-

Error:-
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.

Apache/2.4.7 (Ubuntu) Server at 135.227.175.239 Port 80

After checking the latest logs in /var/log/apache2/error.log, i could see following exception.

Logs::-
[Mon Sep 18 16:10:13.391680 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]     mod = importlib.import_module(self.SETTINGS_MODULE)
[Mon Sep 18 16:10:13.391687 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
[Mon Sep 18 16:10:13.391716 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]     __import__(name)
[Mon Sep 18 16:10:13.391724 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 270, in <module>
[Mon Sep 18 16:10:13.391801 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]     from local.local_settings import *  # noqa
[Mon Sep 18 16:10:13.391811 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 104, in <module>
[Mon Sep 18 16:10:13.391920 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]     SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key')
[Mon Sep 18 16:10:13.391929 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../horizon/utils/secret_key.py", line 64, in generate_or_read_from_file
[Mon Sep 18 16:10:13.391964 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176]     with open(key_file, 'r') as f:
[Mon Sep 18 16:10:13.391980 2017] [:error] [pid 28928:tid 139795557517056] [remote 135.227.142.83:53176] IOError: [Errno 13] Permission denied: '/var/lib/openstack-dashboard/secret_key'

I have tried changing permissions to 600, 777 and then restarted the apache2 server, but it didn't work out. Kindly guide me regarding this.
edit retag flag offensive close merge delete

Comments

@Bernd Bausch Kindly help out if you have come across this issue.

Ruchir Nerurkar gravatar imageRuchir Nerurkar ( 2017-09-19 12:59:24 -0500 )edit

@Radhakrishan Kindly help out if you have come across this issue.

Ruchir Nerurkar gravatar imageRuchir Nerurkar ( 2017-09-19 13:00:06 -0500 )edit

This is a common question. Try googling for secret_key errno 13 site:ask.openstack.org.

Bernd Bausch gravatar imageBernd Bausch ( 2017-09-19 13:37:20 -0500 )edit

@Bernd Bausch I have tried all the ways to change the permissions, change the user, everything and then restarted the server. But i couldn't resolve the issue.

Ruchir Nerurkar gravatar imageRuchir Nerurkar ( 2017-09-19 17:55:01 -0500 )edit