Unable to connect to the dahsboard server with error

Asked by Alfred Shen

Getting following error when running openstack-dashboard-2013.2-4 with Havana code on controller node wpc0016. The Not found files do exist and this could be a simple configuration issue. Not sure where the problem is. Any help will be appreciated.

--------------------
[root@wpc0016 openstack-dashboard]# ps -ef | grep manage
root 4240 3470 0 23:03 pts/0 00:00:00 python /usr/share/openstack-dashboard/manage.py runserver 0.0.0.0:8080
root 4245 4240 0 23:03 pts/0 00:00:04 /usr/bin/python /usr/share/openstack-dashboard/manage.py runserver 0.0.0.0:8080

---------------------
0 errors found
Django version 1.4.6, using settings 'openstack_dashboard.settings'
Development server is running at http://0.0.0.0:8080/
Quit the server with CONTROL-C.
Not Found: /dashboard/
DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in <class 'openstack_auth.backend.KeystoneBackend'>.[10/Dec/2013 23:03:31] "GET /dashboard/ HTTP/1.1" 404 3385
Not Found: /static/dashboard/css/f0973a54f9a4.css
[10/Dec/2013 23:03:31] "GET /static/dashboard/css/f0973a54f9a4.css HTTP/1.1" 404 3385
Not Found: /static/dashboard/js/588884c5a22a.js
[10/Dec/2013 23:03:31] "GET /static/dashboard/js/588884c5a22a.js HTTP/1.1" 404 3385
Not Found: /static/dashboard/js/271a130e6a31.js
[10/Dec/2013 23:03:31] "GET /i18n/js/horizon/ HTTP/1.1" 200 2158
[10/Dec/2013 23:03:31] "GET /static/dashboard/js/271a130e6a31.js HTTP/1.1" 404 3385
------------------------

[root@wpc0016 openstack-dashboard]# cat /etc/httpd/conf.d/openstack-dashboard.conf
WSGIDaemonProcess dashboard
WSGIProcessGroup dashboard
WSGISocketPrefix run/wsgi

WSGIScriptAlias /dashboard /usr/share/openstack-dashboard/openstack_dashboard/wsgi/django.wsgi
Alias /static /usr/share/openstack-dashboard/static

<Directory /usr/share/openstack-dashboard/openstack_dashboard/wsgi>
  <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    <IfModule mod_headers.c>
      # Make sure proxies don’t deliver the wrong content
      Header append Vary User-Agent env=!dont-vary
    </IfModule>
  </IfModule>

  Order allow,deny
  Allow from all
</Directory>

<Directory /usr/share/openstack-dashboard/static>
  <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresDefault "access 6 month"
  </IfModule>
  <IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
  </IfModule>

  Order allow,deny
  Allow from all
</Directory>
--------------------------

[root@wpc0016 openstack-dashboard]# ls -l /usr/share/openstack-dashboard/static/dashboard/js/588884c5a22a.js
-rwxr-xr-x 1 root root 789 Dec 3 08:33 /usr/share/openstack-dashboard/static/dashboard/js/588884c5a22a.js

[root@wpc0016 openstack-dashboard]# ls -l /usr/share/openstack-dashboard/static/dashboard/js/271a130e6a31.js
-rwxr-xr-x 1 root root 524376 Dec 3 08:33 /usr/share/openstack-dashboard/static/dashboard/js/271a130e6a31.js

Question information

Language:
English Edit question
Status:
Answered
For:
OpenStack Dashboard (Horizon) Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Matthias Runge (mrunge) said :
#1

for me, it looks like there is a compression issue.

If you don't have already installed, you should install python-lesscpy (or how the package is called in your distribution, and switch off
COMPRESS_OFFLINE
(in settings.py)

Revision history for this message
Alfred Shen (alfredcs) said :
#2

Thanks Matthias for getting back. Unfortunately it didn't seem to help. Pls see the logs

----------------------- Install lesscpy -----
[root@wpc0016 tmp]# pip list | grep less
lesscpy (0.6)

------------------- Modified COMPRESS_OFFLINE to False ------

[root@wpc0016 usr]# cat ./share/openstack-dashboard/openstack_dashboard/settings.py | grep COMPRESS_OFFLINE
#COMPRESS_OFFLINE = True
COMPRESS_OFFLINE = False

------------------- Restarted httpd and openstack-dashboard --------

Not Found: /flavors/
[11/Dec/2013 00:57:13] "GET /flavors/ HTTP/1.1" 404 3385
Not Found: /static/dashboard/less/rhtheme.less
Not Found: /static/dashboard/js/588884c5a22a.js
Not Found: /static/dashboard/js/271a130e6a31.js
[11/Dec/2013 00:57:13] "GET /i18n/js/horizon/ HTTP/1.1" 200 2158
[11/Dec/2013 00:57:13] "GET /static/dashboard/less/rhtheme.less HTTP/1.1" 404 3385
[11/Dec/2013 00:57:13] "GET /static/dashboard/js/588884c5a22a.js HTTP/1.1" 404 3385
[11/Dec/2013 00:57:13] "GET /static/dashboard/js/271a130e6a31.js HTTP/1.1" 404 3385
Not Found: /static/dashboard/img/rhfavicon.ico
[11/Dec/2013 00:57:14] "GET /static/dashboard/img/rhfavicon.ico HTTP/1.1" 404 3385
[11/Dec/2013 00:57:35] "GET / HTTP/1.1" 302 0
Internal Server Error: /admin/
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 54, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 38, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/decorators.py", line 86, in dec
    return view_func(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 48, in view
    return self.dispatch(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/django/views/generic/base.py", line 69, in dispatch
    return handler(request, *args, **kwargs)
  File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 155, in get
    handled = self.construct_tables()
  File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 146, in construct_tables
    handled = self.handle_table(table)
  File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 118, in handle_table
    data = self._get_data_dict()
  File "/usr/lib/python2.6/site-packages/horizon/tables/views.py", line 182, in _get_data_dict
    self._data = {self.table_class._meta.name: self.get_data()}
  File "/usr/share/openstack-dashboard/openstack_dashboard/dashboards/admin/overview/views.py", line 59, in get_data
    data = super(GlobalOverview, self).get_data()
  File "/usr/share/openstack-dashboard/openstack_dashboard/usage/views.py", line 28, in get_data
    self.usage.summarize(*self.usage.get_date_range())
  File "/usr/share/openstack-dashboard/openstack_dashboard/usage/base.py", line 193, in summarize
    _('Unable to retrieve usage information.'))
  File "/usr/share/openstack-dashboard/openstack_dashboard/usage/base.py", line 190, in summarize
    self.usage_list = self.get_usage_list(start, end)
  File "/usr/share/openstack-dashboard/openstack_dashboard/usage/base.py", line 231, in get_usage_list
    return api.nova.usage_list(self.request, start, end)
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/nova.py", line 605, in usage_list
    novaclient(request).usage.list(start, end, True)]
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/nova.py", line 361, in novaclient
    (request.user.token.id, base.url_for(request, 'compute')))
  File "/usr/share/openstack-dashboard/openstack_dashboard/api/base.py", line 260, in url_for
    request.user.services_region,
  File "/usr/lib/python2.6/site-packages/django/utils/functional.py", line 185, in inner
    return func(self._wrapped, *args)
AttributeError: 'User' object has no attribute 'services_region'
[11/Dec/2013 00:57:35] "GET /admin/ HTTP/1.1" 500 1666
Not Found: /static/dashboard/img/logo.png
[11/Dec/2013 00:57:35] "GET /static/dashboard/img/logo.png HTTP/1.1" 404 3385

Revision history for this message
Matthias Runge (mrunge) said :
#3

Did you do an update/upgrade?
If yes, please clear your cookies for your horizon controller.

I think I remember this issue. The problem was, django_openstack_auth was outdated. For Havana, I'd use at least django_openstack_auth >= 1.1.0

Revision history for this message
Alfred Shen (alfredcs) said :
#4

updated to python-django-openstack-auth-1.1.2-1.el6.noarch seemed to help solving part of the problem. Thanks Matthias. The dashboard still can only display text, no graphics. Will continue digging-in further.

Revision history for this message
Kakou Denis (kherox) said :
#5

Please install latest version fpr this package python-django-openstack-auth. pip install django_openstack_auth. it work for me

Can you help with this problem?

Provide an answer of your own, or ask Alfred Shen for more information if necessary.

To post a message you must log in.