2015-09-16 03:56:24 |
xiangxinyong |
description |
Modiy the file in this place:
horizon/openstack_dashboard/local/enabled/_50_murano.py
1. set DISABLED = True in _50_murano.py file.
2. Kill apache2 process.
3. Service apache2 start.
4. Visit horizon web dashboard.
5. Get an OfflineGenerationError.
The trace is like that:
Environment:
Request Method: GET
Request URL: http://192.168.98.118/dashboard/auth/login/?next=/dashboard/
Django Version: 1.8.4
Python Version: 2.7.6
Installed Applications:
['openstack_dashboard.dashboards.project',
'openstack_dashboard.contrib.sahara.content.data_processing',
'openstack_dashboard.dashboards.admin',
'openstack_dashboard.dashboards.identity',
'openstack_dashboard.dashboards.settings',
'openstack_dashboard',
'django.contrib.contenttypes',
'django.contrib.auth',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.humanize',
'django_pyscss',
'openstack_dashboard.django_pyscss_fix',
'compressor',
'horizon',
'openstack_auth']
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.auth.middleware.SessionAuthenticationMiddleware',
'horizon.middleware.HorizonMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'muranodashboard.middleware.ExceptionMiddleware')
Template error:
In template /opt/stack/horizon/openstack_dashboard/templates/horizon/_scripts.html, error at line 11
You have offline compression enabled but key "2181decdb96ed9c4ff5324e428136b65" is missing from offline manifest. You may need to run "python manage.py compress".
1 : {% load compress %}
2 : {% load url from future %}
3 : {% load firstof from future %}
4 : {% load datepicker_locale from horizon %}
5 :
6 : {% datepicker_locale as DATEPICKER_LOCALE %}
7 :
8 : {% include "horizon/_script_i18n.html" %}
9 :
10 : {% comment %} Compress jQuery, Angular, Plugins, Bootstrap, Hogan.js and Horizon-specific JS. {% endcomment %}
11 : {% compress js %}
12 : <script type="text/javascript">
13 : var STATIC_URL = "{{ STATIC_URL }}";
14 : var WEBROOT = "{{ WEBROOT }}";
15 : </script>
16 : <script src='{{ STATIC_URL }}horizon/lib/angular/angular-cookies.js'></script>
17 : <script src='{{ STATIC_URL }}horizon/lib/angular/angular-gettext.js'></script>
18 : <script src='{{ STATIC_URL }}horizon/lib/angular/angular-sanitize.js'></script>
19 : <script src="{{ STATIC_URL }}horizon/lib/angular/lrdragndrop.js"></script>
20 : <script src="{{ STATIC_URL }}horizon/lib/angular/smart-table.js"></script>
21 : <script src="{{ STATIC_URL }}horizon/lib/d3.js"></script>
Traceback:
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
164. response = response.render()
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py" in render
158. self.content = self.rendered_content
File "/usr/local/lib/python2.7/dist-packages/django/template/response.py" in rendered_content
135. content = template.render(context, self._request)
File "/usr/local/lib/python2.7/dist-packages/django/template/backends/django.py" in render
74. return self.template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
209. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
201. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
903. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
79. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
135. return compiled_parent._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
201. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
903. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
79. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
65. result = block.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
903. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
79. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/loader_tags.py" in render
159. return template.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
211. return self._render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in _render
201. return self.nodelist.render(context)
File "/usr/local/lib/python2.7/dist-packages/django/template/base.py" in render
903. bit = self.render_node(node, context)
File "/usr/local/lib/python2.7/dist-packages/django/template/debug.py" in render_node
79. return node.render(context)
File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py" in render
149. return self.render_compressed(context, self.kind, self.mode, forced=forced)
File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py" in render_compressed
89. cached_offline = self.render_offline(context, forced=forced)
File "/usr/local/lib/python2.7/dist-packages/compressor/templatetags/compress.py" in render_offline
73. 'You may need to run "python manage.py compress".' % key)
Exception Type: OfflineGenerationError at /auth/login/
Exception Value: You have offline compression enabled but key "2181decdb96ed9c4ff5324e428136b65" is missing from offline manifest. You may need to run "python manage.py compress". |
Modiy the file in this place:
horizon/openstack_dashboard/local/enabled/_50_murano.py
1. set DISABLED = True in _50_murano.py file.
2. Kill apache2 process.
3. Service apache2 start.
4. Visit horizon web dashboard.
5. Get an OfflineGenerationError.
The trace is in the attachment. |
|