Ask Your Question

[Kolla] Missing js and css in Horizon

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

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

Did a clean install using the official guide from the Kolla Docs located (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 -0500

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

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/ collectstatic --noinput
/usr/share/openstack-dashboard/ 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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


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

Seen: 1,634 times

Last updated: Jun 23 '17