[Kolla] Missing js and css in Horizon

asked 2017-06-23 14:31:42 -0600

updated 2017-06-23 14:32:58 -0600

Did a clean install using the official guide from the Kolla Docs located https://docs.openstack.org/developer/kolla-ansible/quickstart.html (here).

After the install, Horizon showed 404 errors on css and js files.

[09:49:47.488] GET https://localhost/static/dashboard/css/5107381d683a.css [HTTP/1.1 404 Not Found 1ms]

[10:09:24.025] ReferenceError: $ is not defined @ https://localhost/auth/login/:175

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2017-06-23 14:37:43 -0600

updated 2017-06-23 15:06:39 -0600

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

(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

edit flag offensive delete link more


Thank you. This worked for me. (It would be great to fix things so this workaround isn't needed...)

markhargrove28 gravatar imagemarkhargrove28 ( 2017-08-03 10:47:44 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2017-06-23 14:31:42 -0600

Seen: 1,713 times

Last updated: Jun 23 '17