Ask Your Question
0

Getting internal server error "UncompressableFileError" accessing OpenStack Dashboard

asked 2013-04-23 08:12:22 -0500

NovelKumar gravatar image

updated 2013-04-23 10:57:05 -0500

smaffulli gravatar image

I have setup a three node grizzly with two networks and OVS plugin

Controller node, Network Node and Compute node. All the services are running fine and nova-manage service list from controller and compute node shows the smilies. The problem is with Horizon dashboard.

I have followed this guide with 2 network. I did COMPRESS_OFFLINE = False in /etc/openstack-dashboard/local_settings.py and restarted apache2 and memcached.

I get internal server error once I login to dashboard with my public IP ie 10.1.62.1/horizon.

If i call just 10.1.62.1 in browser OR w3m , i get the default webpage of apache in Ubuntu. The error log in apache shows the following:

[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1]     for kind, value, basename, elem in self.split_contents(), referer: http://10.1.62.1/horizon
[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1]   File "/usr/lib/python2.7/dist-packages/compressor/js.py", line 18, in split_contents, referer: http://10.1.62.1/horizon
[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1]     basename = self.get_basename(attribs['src']), referer: http://10.1.62.1/horizon
[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1]   File "/usr/lib/python2.7/dist-packages/compressor/base.py", line 73, in get_basename, referer: http://10.1.62.1/horizon
[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1]     "compressed" % (url, base_url)), referer: http://10.1.62.1/horizon
[Tue Apr 23 12:59:02 2013] [error] [client 10.1.62.1] UncompressableFileError: 'horizon/js/horizon.js' isn't accessible via COMPRESS_URL ('/static/') and can't be compressed, referer: http://10.1.62.1/horizon

Where should I look to solve the UncompressableFileError?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-04-25 09:48:25 -0500

jpichon gravatar image

Compression errors have been known to hide real errors, if you can log in it's likely something else is going wrong, but the error is being swallowed by the compression error.

A couple of things: - If this is a dev or test environment (not production), you could try setting DEBUG to True in the local_settings and retry. Hopefully this will result in a more useful error. - If you disable offline compression, you'll need to install node and lessc to display the CSS properly (see also https://bugs.launchpad.net/horizon/+bug/1048677)

edit flag offensive delete link more

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

Stats

Asked: 2013-04-23 08:12:22 -0500

Seen: 2,992 times

Last updated: Apr 25 '13