Opened 18 years ago
Closed 18 years ago
#2919 closed defect (duplicate)
ReferenceError? at / weakly-referenced object no longer exists
Reported by: | Owned by: | Adrian Holovaty | |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | |
Severity: | major | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
We just moved Django from a BSD server to a Fedora Core linux install. This error randomly pops up and you can refresh to get rid of it.
I'm assuming this is a framework issue and not something we're doing as it happens throughout the site (not on any specific view/app)
Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/django/core/handlers/base.py" in get_response
- response = callback(request, *callback_args, callback_kwargs)
File "/home/www/cursedjango/cursesite/../cursesite/articles/views.py" in index
- return render_to_response('index.html', context_instance=context)
File "/usr/lib/python2.4/site-packages/django/shortcuts/init.py" in render_to_response
- return HttpResponse(loader.render_to_string(*args, kwargs))
File "/usr/lib/python2.4/site-packages/django/template/loader.py" in render_to_string
- return t.render(context_instance)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- return self.nodelist.render(context)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- bits.append(self.render_node(node, context))
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render_node
- return(node.render(context))
File "/usr/lib/python2.4/site-packages/django/template/loader_tags.py" in render
- return compiled_parent.render(context)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- return self.nodelist.render(context)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- bits.append(self.render_node(node, context))
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render_node
- return(node.render(context))
File "/usr/lib/python2.4/site-packages/django/template/loader_tags.py" in render
- result = self.nodelist.render(context)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- bits.append(self.render_node(node, context))
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render_node
- return(node.render(context))
File "/usr/lib/python2.4/site-packages/django/template/defaulttags.py" in render
- return self.nodelist_true.render(context)
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- bits.append(self.render_node(node, context))
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render_node
- return(node.render(context))
File "/usr/lib/python2.4/site-packages/django/template/defaulttags.py" in render
- nodelist.append(node.render(context))
File "/usr/lib/python2.4/site-packages/django/template/init.py" in render
- dict = func(*args)
File "/home/www/cursedjango/cursesite/../cursesite/ratings/templatetags/ratings.py" in show_rating
File "/usr/lib/python2.4/site-packages/django/db/models/manager.py" in get
- return self.get_query_set().get(*args, kwargs)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in get
- obj_list = list(clone)
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in iter
- return iter(self._get_data())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in _get_data
- self._result_cache = list(self.iterator())
File "/usr/lib/python2.4/site-packages/django/db/models/query.py" in iterator
- cursor.execute("SELECT " + (self._distinct and "DISTINCT " or "") + ",".join(select) + sql, params)
File "/usr/lib/python2.4/site-packages/django/db/backends/util.py" in execute
- return self.cursor.execute(sql, params)
File "/usr/lib/python2.4/site-packages/django/db/backends/mysql/base.py" in execute
- return self.cursor.execute(sql, params)
File "/usr/lib/python2.4/site-packages/MySQLdb/cursors.py" in execute
- self.errorhandler(self, exc, value)
File "/usr/lib/python2.4/site-packages/MySQLdb/connections.py" in defaulterrorhandler
- raise errorclass, errorvalue
ReferenceError at /
weakly-referenced object no longer exists
Change History (7)
comment:1 by , 18 years ago
comment:3 by , 18 years ago
comment:4 by , 18 years ago
http://web.t-online.hu/oro18/error.html
Wish I could change this to critical, as something that prevents a user from viewing the site randomly (seems to be on session creation) has become a major issue.
comment:5 by , 18 years ago
Summary: | DB Api Issues → ReferenceError? at / weakly-referenced object no longer exists |
---|---|
Version: | SVN |
Does this problem still exist? Can anyone provide more information?
comment:6 by , 18 years ago
This was related to lighttpd and threaded mode.. I believe, our solution: use Apache with its enormous memory overhead.
comment:7 by , 18 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
duplicate of #3279 (but there with apache/fastcgi/threaded).
Which web server interface are you using: development server, mod_python or wsgi?