First time here? Check out the FAQ!

Revision history  [back]

feedback causing error 500

hi,

https ask fedoraproject org/feedback/ gives an internal server error when submitted, it works fine on staging though. ( https ask stg fedoraproject org/feedback/ )

The server logs give the following:

 mod_wsgi (pid=23966): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
     return callback(request, **param_dict)
   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
     return http.HttpResponseServerError(t.render(Context({})))
   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
     return super(Template, self).render(**context)
   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 669, in render
     return self.environment.handle_exception(exc_info, True)
   File "/usr/lib/python2.6/site-packages/askbot/templates/500.html", line 1, in top-level template code
     {% extends "two_column_body.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/two_column_body.html", line 1, in top-level template code
     {% extends "base.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/base.html", line 4, in top-level template code
     <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 350, in getattr
     return getattr(obj, attribute)
 UndefinedError: 'settings' is undefined

The settings are all same in staging and prod as much as I can say. Any insight into it will be appreciated.

https fedorahosted org/fedora-infrastructure/ticket/4012

feedback causing error 500

hi,

https ask fedoraproject org/feedback/ gives an internal server error when submitted, it works fine on staging though. ( https ask stg fedoraproject org/feedback/ )

The server logs give the following:

 mod_wsgi (pid=23966): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
 Traceback (most recent call last):
   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
     response = self.get_response(request)
   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
     return callback(request, **param_dict)
   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
     response = view_func(request, *args, **kwargs)
   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
     return http.HttpResponseServerError(t.render(Context({})))
   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
     return super(Template, self).render(**context)
   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 669, in render
     return self.environment.handle_exception(exc_info, True)
   File "/usr/lib/python2.6/site-packages/askbot/templates/500.html", line 1, in top-level template code
     {% extends "two_column_body.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/two_column_body.html", line 1, in top-level template code
     {% extends "base.html" %}
   File "/usr/lib/python2.6/site-packages/askbot/templates/base.html", line 4, in top-level template code
     <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 350, in getattr
     return getattr(obj, attribute)
 UndefinedError: 'settings' is undefined

The settings are all same in staging and prod as much as I can say. Any insight into it will be appreciated.

https fedorahosted org/fedora-infrastructure/ticket/4012

feedback causing error 500

hi,

https ask fedoraproject org/feedback/ gives an internal server error when submitted, it works fine on staging though. ( https ask stg fedoraproject org/feedback/ )

The server logs give the following:

 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14] mod_wsgi (pid=23966): Exception occurred processing WSGI script '/usr/sbin/askbot.wsgi'.
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14] Traceback (most recent call last):
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 272, in __call__
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     response = self.get_response(request)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 169, in get_response
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/django/core/handlers/base.py", line 218, in handle_uncaught_exception
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     return callback(request, **param_dict)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/django/utils/decorators.py", line 93, in _wrapped_view
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     response = view_func(request, *args, **kwargs)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/django/views/defaults.py", line 31, in server_error
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     return http.HttpResponseServerError(t.render(Context({})))
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/coffin/template/__init__.py", line 54, in render
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     return super(Template, self).render(**context)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 669, in render
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     return self.environment.handle_exception(exc_info, True)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/askbot/templates/500.html", line 1, in top-level template code
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     {% extends "two_column_body.html" %}
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/askbot/templates/two_column_body.html", line 1, in top-level template code
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     {% extends "base.html" %}
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib/python2.6/site-packages/askbot/templates/base.html", line 4, in top-level template code
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     <title>{% block title %}{% endblock %} - {{ settings.APP_TITLE|escape }}</title>
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]   File "/usr/lib64/python2.6/site-packages/jinja2/environment.py", line 350, in getattr
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14]     return getattr(obj, attribute)
 [Sat Sep 21 18:56:19 2013] [error] [client 192.168.1.14] UndefinedError: 'settings' is undefined

The settings are all same in staging and prod as much as I can say. Any insight into it will be appreciated.

https fedorahosted org/fedora-infrastructure/ticket/4012