Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix for an internal server error reported by splunk #3443

Closed
wants to merge 1 commit into from

Conversation

jarv
Copy link
Contributor

@jarv jarv commented Apr 23, 2014


pr 22 20:14:35 prod-edxapp-009
[service_variant=lms][django.request][env:prod_edx] ERROR
[prod-edxapp-009  29543] [base.py:215] - Internal Server Error:
/courses/IMFx/OL14.01/2T2014/discussion/53564e81dfc11c02150003c6
Traceback (most recent call last):
  File
"/opt/edx/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File
"/opt/edx/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py",
line 492, in wrapper
    return wrapped(*args, **kwargs)
  File
"/opt/wwc/edx-platform/lms/djangoapps/static_template_view/views.py",
line 69, in render_500
    return
HttpResponseServerError(render_to_string('static_templates/server-error.html',
{}))
  File "/opt/wwc/edx-platform/common/djangoapps/edxmako/shortcuts.py",
line 104, in render_to_string
    return template.render_unicode(**context_dictionary)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/template.py",
line 452, in render_unicode
    as_unicode=True)
  File
"/opt/edx/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/template_mako.py",
line 25, in __call__
    return self.__wrapped(template, *args, **kwargs)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 807, in _render
    **_kwargs_for_callable(callable_, data))
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 839, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 865, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpv1orA2mako/main.html.py", line 253, in render_body
    __M_writer(filters.decode.utf8(self.body()))
  File "/tmp/tmpv1orA2mako/static_templates/server-error.html.py", line
40, in render_body
    platform_name=u"<em>{}</em>".format(platform_name=settings.PLATFORM_NAME)
IndexError: tuple index out of range

```

pr 22 20:14:35 prod-edxapp-009
[service_variant=lms][django.request][env:prod_edx] ERROR
[prod-edxapp-009  29543] [base.py:215] - Internal Server Error:
/courses/IMFx/OL14.01/2T2014/discussion/53564e81dfc11c02150003c6
Traceback (most recent call last):
  File
"/opt/edx/local/lib/python2.7/site-packages/django/core/handlers/base.py",
line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File
"/opt/edx/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/framework_django.py",
line 492, in wrapper
    return wrapped(*args, **kwargs)
  File
"/opt/wwc/edx-platform/lms/djangoapps/static_template_view/views.py",
line 69, in render_500
    return
HttpResponseServerError(render_to_string('static_templates/server-error.html',
{}))
  File "/opt/wwc/edx-platform/common/djangoapps/edxmako/shortcuts.py",
line 104, in render_to_string
    return template.render_unicode(**context_dictionary)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/template.py",
line 452, in render_unicode
    as_unicode=True)
  File
"/opt/edx/local/lib/python2.7/site-packages/newrelic-2.18.1.15/newrelic/hooks/template_mako.py",
line 25, in __call__
    return self.__wrapped(template, *args, **kwargs)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 807, in _render
    **_kwargs_for_callable(callable_, data))
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 839, in _render_context
    _exec_template(inherit, lclcontext, args=args, kwargs=kwargs)
  File "/opt/edx/local/lib/python2.7/site-packages/mako/runtime.py",
line 865, in _exec_template
    callable_(context, *args, **kwargs)
  File "/tmp/tmpv1orA2mako/main.html.py", line 253, in render_body
    __M_writer(filters.decode.utf8(self.body()))
  File "/tmp/tmpv1orA2mako/static_templates/server-error.html.py", line
40, in render_body
    platform_name=u"<em>{}</em>".format(platform_name=settings.PLATFORM_NAME)
IndexError: tuple index out of range

```
@jarv jarv closed this Apr 23, 2014
@benpatterson benpatterson deleted the jarv/fix-server-error-format-string branch January 21, 2015 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant