Comment 1 for bug 1470143

Revision history for this message
Thomas Goirand (thomas-goirand) wrote :

I'd like to point out that I had to fight this a lot in the Debian horizon package before the release of Kilo, with a similar issue. On my case, this was due to a terrible mistake in the naming of the xstatic-lrdragndrop python module, where upstream did the mistake of replacing the lower case l by a i (as in, Irdragndrop instead of lrdragndrop). Horizon couldn't find the corresponding js and offline compress crashed.

So, this type of issue is the consequence of having a javascript file not accessible in the defined path, which is itself maybe the symptom of a wrong python-xstatic package. In this case, however, it seems it can't find /usr/share/openstack-dashboard/static/dashboard/scss/horizon.scss which it is trying to compress, which doesn't involve any xstatic package.

I have just checked the differences between the Debian horizon package and the MOS one, and one I have found is this: in Debian, the package has, in debian/openstack-dashboard.links, the below 3 lines which the MOS package doesn't have:

/var/lib/openstack-dashboard/static/scss /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/scss
/var/lib/openstack-dashboard/static/js /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/js
/usr/share/fonts-font-awesome/fonts /usr/share/pyshared/horizon/static/horizon/lib/font-awesome/fonts

So the fix looks like adding these lines.