[Bug 1871640] Re: Apache2 needs access to /var/lib/openstack-dashboard/
Albert Damen
1871640 at bugs.launchpad.net
Mon Apr 20 09:49:19 UTC 2020
openstack-dashboard:
Installed: 3:18.2.1~git2020041013.754804667-0ubuntu2
sudo ls -la /var/lib/openstack-dashboard/
total 20
drwxr-x--- 4 horizon horizon 4096 Apr 20 09:37 .
drwxr-xr-x 23 root root 4096 Apr 20 09:36 ..
drwxr-x--- 2 horizon horizon 4096 Apr 17 11:14 secret-key
-rw------- 1 horizon horizon 64 Apr 20 09:37 secret_key
drwxr-xr-x 10 horizon horizon 4096 Apr 20 09:37 static
-rw-r----- 1 horizon horizon 0 Apr 20 09:37 _var_lib_openstack-dashboard_secret_key.lock
apache error log contains many errors like:
[Mon Apr 20 09:40:42.117326 2020] [core:error] [pid 11212:tid 140550892140288] (13)Permission denied: [client 10.64.255.1:43256] AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied (filesystem path '/var/lib/openstack-dashboard/static') because search permissions are missing on a component of the path, referer: http://10.64.255.182/horizon/auth/login/
[Mon Apr 20 09:40:43.558078 2020] [core:error] [pid 11213:tid 140550850176768] (13)Permission denied: [client 10.64.255.1:43252] AH00035: access to /horizon/static/dashboard/js/05a9ee382ec9.js denied (filesystem path '/var/lib/openstack-dashboard/static') because search permissions are missing on a component of the path, referer: http://10.64.255.182/horizon/auth/login/
[Mon Apr 20 09:40:43.567465 2020] [core:error] [pid 11213:tid 140550841784064] (13)Permission denied: [client 10.64.255.1:43252] AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied (filesystem path '/var/lib/openstack-dashboard/static') because search permissions are missing on a component of the path, referer: http://10.64.255.182/horizon/auth/login/
openstack-dashboard.postinst contains:
find /var/lib/openstack-dashboard -exec chown horizon:horizon "{}" +
find /var/lib/openstack-dashboard -type f -exec chmod 0640 "{}" + -o -type d -exec chmod 0750 "{}" +
find /var/lib/openstack-dashboard/static -type f -exec chmod 0644 "{}" + -o -type d -exec chmod 0755 "{}" +
chmod 0750 /var/lib/openstack-dashboard
but /var/lib/openstack-dashboard must be at least 751
** Changed in: horizon (Ubuntu)
Status: Fix Released => New
--
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to horizon in Ubuntu.
https://bugs.launchpad.net/bugs/1871640
Title:
Apache2 needs access to /var/lib/openstack-dashboard/
Status in horizon package in Ubuntu:
New
Bug description:
After a fresh install of an openstack cluster in focal, dd 8 April,
horizon does not show details on images and network topology and does
not allow to launch a new instance.
From cli, using openstack-client, everything works fine.
Apache error log shows many errors, like:
[Wed Apr 08 12:52:48.448760 2020] [core:error] [pid 28261:tid 140243827123968] (13)Permission denied: [client 10.64.255.1:52426] AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied (filesystem path '/var/lib/openstack-dashboard/static') because search permissions are missing on a component of the path, referer: http://10.64.255.172/horizon/project/network_topology/
[Wed Apr 08 12:53:00.234704 2020] [core:error] [pid 28261:tid
140243801945856] (13)Permission denied: [client 10.64.255.1:52434]
AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied
(filesystem path '/var/lib/openstack-dashboard/static') because search
permissions are missing on a component of the path, referer:
http://10.64.255.172/horizon/admin/floating_ips/
[Wed Apr 08 12:53:32.028277 2020] [core:error] [pid 28260:tid
140244018087680] (13)Permission denied: [client 10.64.255.1:52494]
AH00035: access to /horizon/static/dashboard/js/acfe932256c2.js denied
(filesystem path '/var/lib/openstack-dashboard/static') because search
permissions are missing on a component of the path, referer:
http://10.64.255.172/horizon/project/images/
/var/lib/openstack-dashboard/ does not have execute rights for others:
~# ls -la /var/lib/openstack-dashboard/
total 24
drwxr-x--- 5 horizon horizon 4096 Apr 8 12:07 .
drwxr-xr-x 35 root root 4096 Apr 8 12:05 ..
drwxr-xr-x 3 horizon horizon 4096 Apr 8 12:07 .novaclient
drwxr-xr-x 2 horizon horizon 4096 Mar 27 13:29 secret-key
-rw------- 1 horizon horizon 64 Apr 8 12:05 secret_key
drwxr-xr-x 10 horizon horizon 4096 Apr 8 12:05 static
-rw-r--r-- 1 horizon horizon 0 Apr 8 12:05 _var_lib_openstack-dashboard_secret_key.lock
chmod 751 /var/lib/openstack-dashboard/ and restarting apache2 solves
this issue.
openstack-dashboard:
Installed: 3:18.2.1~git2020032709.2c4470272-0ubuntu1
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/horizon/+bug/1871640/+subscriptions
More information about the Ubuntu-openstack-bugs
mailing list