Transient problems with MacPorts Trac
Clemens Lang
cal at macports.org
Mon Mar 23 05:44:27 PDT 2015
Hi Shree,
I'm seeing database connection problems with trac on every second
or so page load. When logged in, I see a python stack trace:
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 441, in send_error
data, 'text/html')
File "/usr/lib/python2.6/site-packages/trac/web/chrome.py", line 828, in render_template
message = req.session.pop('chrome.%s.%d' % (type_, i))
File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 216, in __getattr__
value = self.callbacks[name](self)
File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 309, in _get_session
return Session(self.env, req)
File "/usr/lib/python2.6/site-packages/trac/web/session.py", line 201, in __init__
if req.authname == 'anonymous':
File "/usr/lib/python2.6/site-packages/trac/web/api.py", line 216, in __getattr__
value = self.callbacks[name](self)
File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 168, in authenticate
authname = authenticator.authenticate(req)
File "/usr/lib/python2.6/site-packages/IgneousAuthenticationModule-2.0-py2.6.egg/igneousauth/auth.py", line 34, in authenticate
s = Session.objects.get(pk=fid)
File "/usr/lib/python2.6/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 344, in get
num = len(clone)
File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 82, in __len__
self._result_cache = list(self.iterator())
File "/usr/lib/python2.6/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 734, in execute_sql
cursor = self.connection.cursor()
File "/usr/lib/python2.6/site-packages/django/db/backends/__init__.py", line 252, in cursor
cursor = util.CursorWrapper(self._cursor(), self)
File "/usr/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 144, in _cursor
cursor = self.connection.cursor()
InterfaceError: connection already closed
Can you take a look?
--
Clemens Lang
More information about the macports-dev
mailing list