root@enhanced-catfish:~/horizon# sudo python /usr/share/openstack-dashboard/manage.py compress --force
Found 'compress' tags in: /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_conf.html /usr/share/openstack-dashboard/openstack_dashboard/templates/_stylesheets.html /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html
Compressing... CommandError: An error occurred during rendering /usr/share/openstack-dashboard/openstack_dashboard/templates/horizon/_scripts.html: '\"../bower_components/respond/dest/respond.min.js\"' is
n't accessible via COMPRESS_URL ('/static/') and can't be compressed
I was able to recreate this on a zesty machine from source. Here are the steps I used:
Created a zesty container:
lxc launch ubuntu-daily:zesty
lxc exec useful-redbird /bin/bash
In the container:
sudo apt install git /github. com/openstack/ horizon. git /github. com/openstack/ requirements. git
git clone https:/
cd horizon/
git checkout 11.0.0.0b1
sudo apt update
sudo apt install python-pip
cd -
git clone https:/
cd horizon/ /upper- constraints. txt
sudo pip install . -c ../requirements
adduser --system horizon
addgroup --system horizon
usermod -a -G horizon horizon
mkdir /usr/share/ openstack- dashboard openstack- dashboard openstack- dashboard/ manage. py dashboard/ settings. py /usr/share/ openstack- dashboard/ settings. py
mkdir /var/lib/
cp manage.py /usr/share/
cp ./openstack_
mkdir /etc/openstack- dashboard/ dashboard/ local/local_ settings. py.example /etc/openstack- dashboard/ local_settings. py dashboard/ /usr/share/ openstack- dashboard/ openstack_ dashboard/
cp ./openstack_
rsync -avrz ./openstack_
ln -s /usr/share/ openstack- dashboard/ openstack_ dashboard/ static /usr/share/ openstack- dashboard/ static dashboard/ local_settings. py /usr/share/ openstack- dashboard/ openstack_ dashboard/ local/local_ settings. py lib/python2. 7/dist- packages/ horizon/ static/ horizon/ /usr/share/ openstack- dashboard/ openstack_ dashboard/ static/ horizon
ln -s /etc/openstack-
ln -s /usr/local/
sudo python /usr/share/ openstack- dashboard/ manage. py collectstatic --noinput openstack- dashboard/ manage. py compress --force
sudo python /usr/share/
output from compress:
root@enhanced- catfish: ~/horizon# sudo python /usr/share/ openstack- dashboard/ manage. py compress --force
/usr/share/ openstack- dashboard/ openstack_ dashboard/ templates/ horizon/ _conf.html
/usr/share/ openstack- dashboard/ openstack_ dashboard/ templates/ _stylesheets. html
/usr/share/ openstack- dashboard/ openstack_ dashboard/ templates/ horizon/ _scripts. html openstack- dashboard/ openstack_ dashboard/ templates/ horizon/ _scripts. html: '\"../bower_ components/ respond/ dest/respond. min.js\ "' is
Found 'compress' tags in:
Compressing... CommandError: An error occurred during rendering /usr/share/
n't accessible via COMPRESS_URL ('/static/') and can't be compressed