Ask Your Question

Revision history [back]

Log in the Horizon container:

docker exec -it horizon bash

Fix the wrong alias in apache configuration:

sudo sed -i -e ‘s:/usr/share/openstack-dashboard/static:/usr/share/openstack-dashboard/openstack_dashboard/static/:g’ /etc/apache2/conf-enabled/000-default.conf

If this is not enough, you have to regenerate and compress the assets:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress

Log in the Horizon container:

docker exec -it horizon bash

Fix the wrong alias in apache configuration:

sudo sed -i -e ‘s:/usr/share/openstack-dashboard/static:/usr/share/openstack-dashboard/openstack_dashboard/static/:g’ /etc/apache2/conf-enabled/000-default.conf

If this is not enough, you have to regenerate and compress the assets:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress

Reload apache:

sudo service apache2 reload

Log in the Horizon container:

docker exec -it horizon bash

Fix the wrong alias in apache configuration:

sudo sed -i -e ‘s:/usr/share/openstack-dashboard/static:/usr/share/openstack-dashboard/openstack_dashboard/static/:g’ ‘s:/usr/share/openstack-dashboard/static:/var/lib/openstack-dashboard/static:g’ /etc/apache2/conf-enabled/000-default.conf

If this is not enough, you have to regenerate and compress the assets:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress

Reload apache:

sudo service apache2 reload

Log in the Horizon container:

docker exec -it horizon bash

Fix the wrong alias in apache configuration:

sudo sed -i -e ‘s:/usr/share/openstack-dashboard/static:/var/lib/openstack-dashboard/static:g’ 's:/usr/share/openstack-dashboard/static:/var/lib/openstack-dashboard/static:g' /etc/apache2/conf-enabled/000-default.conf

If this is not enough, you have to regenerate and compress the assets:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress

Reload apache:

sudo service apache2 reload

Log in the Horizon container:

docker exec -it horizon bash

Fix the wrong alias in apache configuration:

sudo sed -i -e 's:/usr/share/openstack-dashboard/static:/var/lib/openstack-dashboard/static:g' /etc/apache2/conf-enabled/000-default.conf

If this is not enough, you have to regenerate (Optional) Regenerate and compress the assets:

/usr/share/openstack-dashboard/manage.py collectstatic --noinput
/usr/share/openstack-dashboard/manage.py compress

Reload apache:

sudo service apache2 reload