Ask Your Question
2

Apache2-Horizon SSL bug with missing permissions

asked 2015-11-30 07:39:59 -0500

mickey gravatar image

Hi all. I use Openstack Kilo and wanted to enable SSL. The only problem:

    [Mon Nov 30 14:07:12.776301 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/../../openstack_dashboard/local/local_settings.py", line 116, in <module>
[Mon Nov 30 14:07:12.776308 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]     SECRET_KEY = secret_key.generate_or_read_from_file('/var/lib/openstack-dashboard/secret_key')
[Mon Nov 30 14:07:12.776311 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]   File "/usr/lib/python2.7/dist-packages/horizon/utils/secret_key.py", line 54, in generate_or_read_from_file
[Mon Nov 30 14:07:12.776317 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]     with lock:
[Mon Nov 30 14:07:12.776321 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 217, in __enter__
[Mon Nov 30 14:07:12.776326 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]     self.acquire()
[Mon Nov 30 14:07:12.776329 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]   File "/usr/lib/python2.7/dist-packages/oslo_concurrency/lockutils.py", line 200, in acquire
[Mon Nov 30 14:07:12.776334 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845]     self.lockfile = open(self.fname, 'a')
[Mon Nov 30 14:07:12.776345 2015] [:error] [pid 29731:tid 140092654630656] [client 95.90.222.115:37845] IOError: [Errno 13] Permission denied: '/var/lib/openstack-dashboard/_var_lib_openstack-dashboard_secret_key.lock'
[Mon Nov 30 14:07:15.387853 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865] mod_wsgi (pid=29731): Target WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi' cannot be loaded as Python module.
[Mon Nov 30 14:07:15.387865 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865] mod_wsgi (pid=29731): Exception occurred processing WSGI script '/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi'.
[Mon Nov 30 14:07:15.387875 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865] Traceback (most recent call last):
[Mon Nov 30 14:07:15.387885 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865]   File "/usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi", line 16, in <module>
[Mon Nov 30 14:07:15.387898 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865]     application = get_wsgi_application()
[Mon Nov 30 14:07:15.387902 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865]   File "/usr/lib/python2.7/dist-packages/django/core/wsgi.py", line 14, in get_wsgi_application
[Mon Nov 30 14:07:15.387911 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865]     django.setup()
[Mon Nov 30 14:07:15.387914 2015] [:error] [pid 29731:tid 140092572169984] [client 95.90.222.115:37865]   File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 20, in setup ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-07 13:37:02 -0500

correajl gravatar image

Same problem here. I followed this reference:

http://docs.openstack.org/kilo/config-reference/content/configure-dashboard.html (http://docs.openstack.org/kilo/config...)

but got this "permission denied" error. I've already tried to change owner to www-data and a lot of permissions combination.

Thanks.

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: 2015-11-30 07:39:59 -0500

Seen: 458 times

Last updated: Nov 30 '15