[dashboard] Website fails with 500 due to permission issue with lock file

Bug #1496158 reported by Lance Albertson
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
OpenStack + Chef
Expired
Undecided
Unassigned

Bug Description

On a fresh deploy, I'm running into a 500 error when accessing the dashboard website using stable/kilo. The apache log has the following included:

IOError: [Errno 13] Permission denied: '/usr/share/openstack-dashboard/openstack_dashboard/local/_usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock'

The file has the following permissions:

-rwxr--r--. 1 root apache 0 Sep 15 00:34 _usr_share_openstack-dashboard_openstack_dashboard_local_.secret_key_store.lock

If I change it to 774 the problem goes away. Not sure what's causing this.

summary: - [dashboard] Website fails with 500 due to permission issue with
- /usr/share/openstack-
- dashboard/openstack_dashboard/local/_usr_share_openstack-
- dashboard_openstack_dashboard_local_.secret_key_store.lock
+ [dashboard] Website fails with 500 due to permission issue with lock
+ file
Revision history for this message
Paul Czarkowski (paulcz) wrote :

I cannot replicate this. on a aio-neutron install in vagrant ( Ubuntu 1404 ) from the stable/kilo branch I can browse to and use the horizon dashboard without any issues.

Also The file in question shows up as `-rw-r--r-- 1 root root 64 Oct 23 08:36 /usr/share/openstack-dashboard/openstack_dashboard/local/.secret_key_store` for me.

Was there a specific action you performed that caused the error ? I can definately see that apache would error if it was asked to modify the file.

Revision history for this message
Paul Czarkowski (paulcz) wrote :

Reading more docs etc ... I think the file I'm actually looking for is located at

```ls -alh /var/lib/openstack-dashboard/_var_lib_openstack-dashboard_secret_key.lock
-rw-r--r-- 1 horizon horizon 0 Feb 7 16:06 /var/lib/openstack-dashboard/_var_lib_openstack-dashboard_secret_key.lock
```

which appears to be owned by the correct user ( horizon ).

Jan Klare (j-klare)
Changed in openstack-chef:
status: New → Incomplete
Revision history for this message
David Brown (dmlb2000) wrote :

I got this same error on CentOS 7, I had to change the ownership to the apache user to get it to work.

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack + Chef because there has been no activity for 60 days.]

Changed in openstack-chef:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.