Advertisement
Guest User

Heroku one request spawns two responses that crashes my app

a guest
Jun 6th, 2013
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 7.19 KB | None | 0 0
  1. # NOTE: some sensitive data has been replaced with `~`
  2.  
  3. 2013-06-06T21:16:03.884244+00:00 app[web.1]: 2013-06-07 00:16:03 [5] [DEBUG] GET /iro/accounts/activate/94a780dd6a543672f4836c0db74e67bc~~~~~~94
  4. 2013-06-06T21:16:03.897178+00:00 heroku[router]: at=info method=GET path=/iro/accounts/activate/94a780dd6a543672f4836c0db74e67bcdaadca94 host=www.iroquote.com fwd="199.~~~.~~~.196" dyno=web.1 connect=2ms service=13ms status=301 bytes=0
  5. 2013-06-06T21:16:04.077931+00:00 app[web.1]: 2013-06-07 00:16:04 [5] [DEBUG] GET /iro/accounts/activate/94a780dd6a543672f4836c0db74e67bc~~~~~~94/
  6. 2013-06-06T21:16:04.908572+00:00 heroku[router]: at=info method=GET path=/iro/accounts/activate/94a780dd6a543672f4836c0db74e67bc~~~~~~94/ host=www.iroquote.com fwd="199.~~~.~~~.196" dyno=web.1 connect=3ms service=832ms status=302 bytes=0
  7. 2013-06-06T21:16:05.103453+00:00 app[web.1]: 2013-06-07 00:16:05 [5] [DEBUG] GET /iro/dashboard/
  8. 2013-06-06T21:16:10.506912+00:00 heroku[router]: at=info method=GET path=/iro/dashboard/ host=www.iroquote.com fwd="199.~~~.~~~.196" dyno=web.1 connect=2ms service=5409ms status=200 bytes=14284
  9. 2013-06-06T21:16:10.524864+00:00 app[web.1]: 2013-06-07 00:16:10 [5] [DEBUG] GET /iro/accounts/activate/94a780dd6a543672f4836c0db74e67bc~~~~~~94/
  10. 2013-06-06T21:16:12.505452+00:00 app[web.1]: [2013-06-07 00:16:10,748] ERROR Internal Server Error: /iro/accounts/activate/94a780dd6a543672f4836c0db74e67bc~~~~~~94/
  11. 2013-06-06T21:16:12.505452+00:00 app[web.1]: Traceback (most recent call last):
  12. 2013-06-06T21:16:12.505452+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
  13. 2013-06-06T21:16:12.505452+00:00 app[web.1]:     response = callback(request, *callback_args, **callback_kwargs)
  14. 2013-06-06T21:16:12.505452+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py", line 216, in __call__
  15. 2013-06-06T21:16:12.505452+00:00 app[web.1]:     self._nr_instance, args, kwargs)
  16. 2013-06-06T21:16:12.505452+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py", line 475, in wrapper
  17. 2013-06-06T21:16:12.505452+00:00 app[web.1]:     return wrapped(*args, **kwargs)
  18. 2013-06-06T21:16:12.505452+00:00 app[web.1]:   File "/app/iroquote/accounts/views.py", line 148, in activate
  19. 2013-06-06T21:16:12.505452+00:00 app[web.1]:     account.backend = settings.MONGOENGINE_AUTH_BACKEND
  20. 2013-06-06T21:16:12.505662+00:00 app[web.1]: AttributeError: 'NoneType' object has no attribute 'backend'
  21. 2013-06-06T21:16:12.523745+00:00 app[web.1]: 2013-06-07 00:16:12 [5] [ERROR] Error handling request
  22. 2013-06-06T21:16:12.523745+00:00 app[web.1]: Traceback (most recent call last):
  23. 2013-06-06T21:16:12.523745+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 102, in handle_request
  24. 2013-06-06T21:16:12.523745+00:00 app[web.1]:     respiter = self.wsgi(environ, resp.start_response)
  25. 2013-06-06T21:16:12.523745+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/web_transaction.py", line 795, in __call__
  26. 2013-06-06T21:16:12.523745+00:00 app[web.1]:     result = application(environ, _start_response)
  27. 2013-06-06T21:16:12.523745+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py", line 216, in __call__
  28. 2013-06-06T21:16:12.523745+00:00 app[web.1]:     self._nr_instance, args, kwargs)
  29. 2013-06-06T21:16:12.523745+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/function_trace.py", line 93, in literal_wrapper
  30. 2013-06-06T21:16:12.523745+00:00 app[web.1]:     return wrapped(*args, **kwargs)
  31. 2013-06-06T21:16:12.523992+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/web_transaction.py", line 684, in __call__
  32. 2013-06-06T21:16:12.523992+00:00 app[web.1]:     return self._nr_next_object(environ, start_response)
  33. 2013-06-06T21:16:12.523992+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__
  34. 2013-06-06T21:16:12.523992+00:00 app[web.1]:     response = self.get_response(request)
  35. 2013-06-06T21:16:12.523992+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 179, in get_response
  36. 2013-06-06T21:16:12.523992+00:00 app[web.1]:     response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  37. 2013-06-06T21:16:12.523992+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py", line 216, in __call__
  38. 2013-06-06T21:16:12.523992+00:00 app[web.1]:     self._nr_instance, args, kwargs)
  39. 2013-06-06T21:16:12.523992+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py", line 424, in wrapper
  40. 2013-06-06T21:16:12.523992+00:00 app[web.1]:     return _wrapped(*args, **kwargs)
  41. 2013-06-06T21:16:12.524177+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py", line 417, in _wrapped
  42. 2013-06-06T21:16:12.524177+00:00 app[web.1]:     return wrapped(request, resolver, exc_info)
  43. 2013-06-06T21:16:12.524177+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 228, in handle_uncaught_exception
  44. 2013-06-06T21:16:12.524177+00:00 app[web.1]:     return callback(request, **param_dict)
  45. 2013-06-06T21:16:12.524177+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/api/object_wrapper.py", line 216, in __call__
  46. 2013-06-06T21:16:12.524177+00:00 app[web.1]:     self._nr_instance, args, kwargs)
  47. 2013-06-06T21:16:12.524177+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-1.11.0.55/newrelic/hooks/framework_django.py", line 475, in wrapper
  48. 2013-06-06T21:16:12.524177+00:00 app[web.1]:     return wrapped(*args, **kwargs)
  49. 2013-06-06T21:16:12.524177+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/utils/decorators.py", line 91, in _wrapped_view
  50. 2013-06-06T21:16:12.524177+00:00 app[web.1]:     response = view_func(request, *args, **kwargs)
  51. 2013-06-06T21:16:12.524587+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/views/defaults.py", line 32, in server_error
  52. 2013-06-06T21:16:12.524587+00:00 app[web.1]:     t = loader.get_template(template_name) # You need to create a 500.html template.
  53. 2013-06-06T21:16:12.524587+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/template/loader.py", line 145, in get_template
  54. 2013-06-06T21:16:12.524587+00:00 app[web.1]:     template, origin = find_template(template_name)
  55. 2013-06-06T21:16:12.524587+00:00 app[web.1]:   File "/app/.heroku/python/lib/python2.7/site-packages/django/template/loader.py", line 138, in find_template
  56. 2013-06-06T21:16:12.524587+00:00 app[web.1]:     raise TemplateDoesNotExist(name)
  57. 2013-06-06T21:16:12.524587+00:00 app[web.1]: TemplateDoesNotExist: 500.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement