First time here? Check out the FAQ!

Revision history  [back]

500 Error, Custom skin, "UndefinedError: 'skin' is undefined", nginx, gunicorn

This is an error I get after some time starting server, I'm using memcached, gunicorn, nginx.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined

500 Error, Custom skin, "UndefinedError: 'skin' is undefined", nginx, gunicorn

This is an error I get after some time starting server, I'm using memcached, gunicorn, nginx.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined

500 Error, Custom skin, skin "UndefinedError: 'skin' is undefined", nginx, gunicornundefined"

This is an error I get after some time starting server, I'm using memcached, gunicorn, nginx.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined

Custom skin "UndefinedError: 'skin' is undefined"

This is an error I get after some time starting server, I'm using memcached, gunicorn, nginx.gunicorn.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined

Custom skin "UndefinedError: 'skin' is undefined"

This is an error I get after some time starting server, I'm using memcached, gunicorn.

Can it be related to cache? Because I don't see it immediately after start, it works normally. I'm using a custom skin that I develop placed in myskins folder inside project root.normally.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined

Custom skin "UndefinedError: 'skin' is undefined"

This is an error I get after some time starting server, I'm using memcached, gunicorn.

Can it be related to cache? Because I don't see it immediately after start, it works normally.

The traceback is as follows:

2013-12-02 11:14:55 [6068] [ERROR] Error handling request
Traceback (most recent call last):
  File "/opt/myenv/local/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 131, in handle_request
    respiter = self.wsgi(environ, resp.start_response)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/wsgi.py", line 255, in __call__
    response = self.get_response(request)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 178, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/core/handlers/base.py", line 224, in handle_uncaught_exception
    return callback(request, **param_dict)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/utils/decorators.py", line 91, in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/opt/myenv/local/lib/python2.7/site-packages/Django-1.5-py2.7.egg/django/views/defaults.py", line 41, in server_error
    return http.HttpResponseServerError(template.render(Context({})))
  File "/opt/myenv/local/lib/python2.7/site-packages/Coffin-0.3.8-py2.7.egg/coffin/template/__init__.py", line 55, in render
    return super(Template, self).render(**context)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 969, in render
    return self.environment.handle_exception(exc_info, True)
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 742, in handle_exception
    reraise(exc_type, exc_value, tb)
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/500.html", "/home/bitch/askbot_fromgit/myskins/bilenkadin_skin/templates/500.html", line 1, in top-level template code
    {% extends "two_column_body.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/two_column_body.html", "/home/bitch/askbot_fromgit/myskins/bilenkadin_skin/templates/two_column_body.html", line 1, in top-level template code
    {% extends "base.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/base.html", "/home/bitch/askbot_fromgit/myskins/bilenkadin_skin/templates/base.html", line 27, in top-level template code
    {% include "meta/html_head_stylesheets.html" %}
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", "/home/bitch/askbot_fromgit/myskins/bilenkadin_skin/templates/meta/html_head_stylesheets.html", line 7, in top-level template code
    {% compress css %}
  File "/opt/myenv/local/lib/python2.7/site-packages/django_compressor-1.2-py2.7.egg/compressor/contrib/jinja2ext.py", line 40, in _compress
    original_content = caller()
  File "/home/bitch/askbot_fromgit/myskins/mysite_skin/templates/meta/html_head_stylesheets.html", "/home/bitch/askbot_fromgit/myskins/bilenkadin_skin/templates/meta/html_head_stylesheets.html", line 9, in template
    {{ skin.get_extra_css_link() }}
  File "/opt/myenv/local/lib/python2.7/site-packages/Jinja2-2.7.1-py2.7.egg/jinja2/environment.py", line 397, in getattr
    return getattr(obj, attribute)
UndefinedError: 'skin' is undefined