Ask Your Question

Horizon missing css styles

asked 2013-11-01 09:10:58 -0600

bryanjimenez gravatar image

updated 2013-11-01 09:13:19 -0600

Using debian wheezy and openstack folsom

Getting this when I load up the dashboard:

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

which results in a dashboard without css styles

When I try to log in then I get this:

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

I'm not sure but it seems to me jquery isn't found?

When I try to look for the css files ls /usr/share/openstack-dashboard/openstack_dashboard/static/dashboard/css results in no files.

I purged openstack-dashboard nodejs and reinstalled openstack-dashboard but there are still no files in the css folder. I have installed this before and the styles have worked fine.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-11-02 02:12:28 -0600

jiangjun gravatar image

updated 2013-11-02 02:14:28 -0600

The 'xxxxxx.css' file is automatically generated by 'Django compressor'.
Django compressor will compile your '.less' style files into '.css' and compress your multi '.js' files to a single JS file.
According to your log '$ is not defined', it quite looks like an error when dealing with a JS file which uses jQuery but it cannot find jQuery. So I guess Django compressor exits after this error, and the '.less' files haven't been compiled to '.css'.

You can check <path_to_horizon>/horizon/templates/horizon/_scripts.html this file. Be sure of that jquery.min.js should be loaded at 1st place, and check the url to jquery.min.js is correct.

edit flag offensive delete link more


If I purge and reinstall openstack-dashboard shouldn't it restore to a working state? Do you think there is something else broken?

bryanjimenez gravatar imagebryanjimenez ( 2013-11-13 11:58:36 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-11-01 09:10:58 -0600

Seen: 2,231 times

Last updated: Nov 02 '13