Ask Your Question
0

Havana Dashboard internal server error ? [closed]

asked 2013-10-30 07:24:49 -0600

bishoy gravatar image

updated 2014-01-22 15:12:50 -0600

Evgeny gravatar image

i am deploying openstack havana release and every things was going well until i installed the horizon which gave me internal server error. i am using the openstack havana deployment guide for ubuntu . i enabled the debug in openstack-dashboard/local-settings.py so i had a log in /var/apache/error.log

[Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] mod_wsgi (pid=30512): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'. [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] Traceback (most recent call last): [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/core/handlers/wsgi.py", line 236, in __call__ [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] self.load_middleware() [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py", line 45, in load_middleware [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] for middleware_path in settings.MIDDLEWARE_CLASSES: [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 53, in __getattr__ [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] self._setup(name) [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 48, in _setup [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] self._wrapped = Settings(settings_module) [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line 132, in __init__ [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] mod = importlib.import_module(self.SETTINGS_MODULE) [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py", line 35, in import_module [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] __import__(name) [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/settings.py", line 211, in <module> [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] from local.local_settings import * # noqa [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 105, in <module> [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key') [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] File "/usr/lib/python2.7/dist-packages/horizon/utils/secret_key.py", line 64, in generate_or_read_from_file [Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] raise FilePermissionError("Insecure key file permissions!") [Wed Oct 30 ... (more)

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by koolhead17
close date 2014-08-10 17:21:43.612821

4 answers

Sort by ยป oldest newest most voted
1

answered 2014-01-13 19:08:58 -0600

Yasmin Fathy gravatar image

Hello,

I encountered the same problem. Here's the solution, First, you have to make sure that your apache is working well. by navigating only to http://controller Controller is your serverName based on havana guide. If you found "It works" message in the web page, so you are sure that apache is working fine and the problem is mainly on local_settings.py . Second, you have to make sure of the number of spaces used in [CASHES]. I recommend you update the existing one, instead of completely writing it from scratch. One thing is also very important, that the ALLOWED_HOSTS = ['10.0.0.12', '10.0.0.10'] , should have single quote.. if you remove it. you will have an internal error.

Hope it will help you.

edit flag offensive delete link more
1

answered 2013-10-30 15:38:34 -0600

larsks gravatar image

Your error message seems relatively clear:

[Wed Oct 30 14:17:37 2013] [error] [client 172.16.16.200] FilePermissionError: Insecure key file permissions!

It looks like that error is being triggered by:

SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key')

So I would look at the permissions on that key (and on the containing directory) and see if they look sensible. In general, secret keys should only be readable by the user under which your application is running (so, mode 0600).

edit flag offensive delete link more
0

answered 2013-11-20 01:37:50 -0600

zhugcx gravatar image

updated 2013-11-20 01:38:16 -0600

this is a bug

root user try command:

chown horizon:horizon /var/lib/openstack-dashboard/secret_key

may fix this bug

edit flag offensive delete link more
0

answered 2013-11-20 03:59:34 -0600

Anand TS gravatar image

updated 2013-11-20 04:18:05 -0600

image description

I am getting this internal server error when I am accessing dashboard.

Pls find the log files also

[root@bfsicloud horizon]# tail -f /var/log/httpd/error_log [Wed Nov 20 15:00:35 2013] [notice] Digest: generating secret for digest authentication ... [Wed Nov 20 15:00:35 2013] [notice] Digest: done PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0 [Wed Nov 20 15:00:35 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.5.6 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations [Wed Nov 20 15:00:36 2013] [notice] caught SIGTERM, shutting down [Wed Nov 20 15:00:36 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Nov 20 15:00:36 2013] [notice] Digest: generating secret for digest authentication ... [Wed Nov 20 15:00:36 2013] [notice] Digest: done PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/http.so' - /usr/lib64/php/modules/http.so: cannot open shared object file: No such file or directory in Unknown on line 0 [Wed Nov 20 15:00:36 2013] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.5.6 mod_wsgi/3.2 Python/2.6.6 configured -- resuming normal operations

When I gave openstack-status. It shows 500 error for dashboard,

[root@bfsicloud ~]# openstack-status == Nova services == openstack-nova-api: active openstack-nova-cert: active openstack-nova-compute: active openstack-nova-network: active openstack-nova-scheduler: active openstack-nova-volume: dead (disabled on boot) openstack-nova-conductor: active == Glance services == openstack-glance-api: active openstack-glance-registry: active == Keystone service == openstack-keystone: active == Horizon service == openstack-dashboard: 500 == Swift services == openstack-swift-proxy: active openstack-swift-account: active openstack-swift-container: active openstack-swift-object: active

If anyone experienced similar error. Kindly help.

Regards, Anand TS

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-10-30 07:24:49 -0600

Seen: 6,211 times

Last updated: Jan 13 '14