Overhang.io

Runtime error when accessing http://localhost after installing

after I installed tutor, i can’t run it. I got this message

lms_1             | Traceback (most recent call last):
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py", line 41, in inner
lms_1             |     response = get_response(request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 249, in _legacy_get_response
lms_1             |     response = self._get_response(request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 187, in _get_response
lms_1             |     response = self.process_exception_by_middleware(e, request)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 185, in _get_response
lms_1             |     response = wrapped_callback(request, *callback_args, **callback_kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/django/utils/decorators.py", line 149, in _wrapped_view
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/util/cache.py", line 76, in wrapper
lms_1             |     response = view_func(request, *args, **kwargs)
lms_1             |   File "/openedx/edx-platform/lms/djangoapps/branding/views.py", line 77, in index
lms_1             |     return student.views.index(request, user=request.user)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/student/views/management.py", line 186, in index
lms_1             |     return render_to_response('index.html', context)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/edxmako/shortcuts.py", line 169, in render_to_response
lms_1             |     return HttpResponse(render_to_string(template_name, dictionary, namespace, request), **kwargs)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/edxmako/shortcuts.py", line 159, in render_to_string
lms_1             |     return template.render(dictionary, request)
lms_1             |   File "/openedx/edx-platform/common/djangoapps/edxmako/template.py", line 59, in render
lms_1             |     return self.mako_template.render_unicode(**context_dictionary)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/mako/template.py", line 454, in render_unicode
lms_1             |     as_unicode=True)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 829, in _render
lms_1             |     **_kwargs_for_callable(callable_, data))
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 864, in _render_context
lms_1             |     _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/mako/runtime.py", line 890, in _exec_template
lms_1             |     callable_(context, *args, **kwargs)
lms_1             |   File "/tmp/mako_lms/1374d0592afbffeb77695b71321dcee0/main.html.py", line 220, in render_body
lms_1             |     __M_writer(filters.decode.utf8(static.webpack(entry=u'commons')))
lms_1             |   File "/tmp/mako_lms/1374d0592afbffeb77695b71321dcee0/static_content.html.py", line 288, in render_webpack
lms_1             |     __M_writer(filters.html_escape(filters.decode.utf8(HTML(render_bundle(entry, extension=None, config='DEFAULT', attrs=attrs)))))
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/templatetags/webpack_loader.py", line 12, in render_bundle
lms_1             |     tags = utils.get_as_tags(bundle_name, extension=extension, config=config, attrs=attrs)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/utils.py", line 45, in get_as_tags
lms_1             |     bundle = _get_bundle(bundle_name, extension, config)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/utils.py", line 23, in _get_bundle
lms_1             |     bundle = get_loader(config).get_bundle(bundle_name)
lms_1             |   File "/openedx/venv/local/lib/python2.7/site-packages/webpack_loader/loader.py", line 100, in get_bundle
lms_1             |     "The stats file does not contain valid data. Make sure "
lms_1             | WebpackLoaderBadStatsError: The stats file does not contain valid data. Make sure webpack-bundle-tracker plugin is enabled and try to run webpack again.

Hi @vimaxwell! Yes, I have faced this problem as well. I will investigate. Meanwhile, you can temporarily solve it by building the openedx image yourself:

tutor images build openedx

This should be fixed by now. You don’t need to re-build your own image. Instead, please just run tutor images pull openedx.

1 Like