Opened 10 years ago

Closed 18 months ago

#1582 closed defect (wontfix)

exception: "ProgrammingError: Cannot operate on a closed database."

Reported by: AndrewStraw Owned by: cygnus
Priority: normal Component: OpenidPlugin
Severity: major Keywords:
Cc: Trac Release: 0.10


I think I installed the plugin properly, but when I try to login, I get:

Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/trac/web/", line 406, in dispatch_request
  File "/var/lib/python-support/python2.5/trac/web/", line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.5/site-packages/OpenIDAuth-0.1dev-py2.5.egg/openidauth/", line 162, in process_request
    self._start_login(req, req.args.get('openid_url'))
  File "/usr/lib/python2.5/site-packages/OpenIDAuth-0.1dev-py2.5.egg/openidauth/", line 205, in _start_login
    authreq = oidconsumer.begin(url)
  File "/usr/lib/python2.5/site-packages/openid/consumer/", line 308, in begin
    return self.beginWithoutDiscovery(service)
  File "/usr/lib/python2.5/site-packages/openid/consumer/", line 331, in beginWithoutDiscovery
    auth_req = self.consumer.begin(service)
  File "/usr/lib/python2.5/site-packages/openid/consumer/", line 422, in begin
    nonce = self._createNonce()
  File "/usr/lib/python2.5/site-packages/openid/consumer/", line 482, in _createNonce
  File "/usr/lib/python2.5/site-packages/openid/store/", line 13, in wrapped
    return self._callInTransaction(func, self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/openid/store/", line 154, in _callInTransaction
  File "/var/lib/python-support/python2.5/trac/db/", line 177, in rollback
ProgrammingError: Cannot operate on a closed database.

I am using the svn version checked out today, Trac 10.4, the Python OpenID 1.2 combo pack, sqlite3, Python 2.5, and Ubuntu Feisty.

Attachments (0)

Change History (6)

comment:1 Changed 10 years ago by AndrewStraw

Resolution: worksforme
Status: newclosed

Hmm, changing from mod_python to FastCGI seems to have fixed the problem for me. I'm closing this ticket.

comment:2 Changed 10 years ago by Daniel Kahn Gillmor

Resolution: worksforme
Severity: blockermajor
Status: closedreopened

I'm getting this same problem under mod_python with trac 0.10.4, so i'm re-opening this ticket. This is a real problem, since trac needs to be able to run under mod python. the FastCGI workaround isn't an option for some folks who might very well want

comment:3 Changed 10 years ago by anonymous

I can corroborate this error with mod_python 3.3.1, trac 0.10.4. FastCGI is non-free software so that's not an option.

According to the source code browser, was last changed 2006-12-21. Do we have an abandoned project here?

comment:4 Changed 9 years ago by Dalius

If you want you can test this problem with AuthOpenIdPlugin which uses newer version of OpenID library which is potential source of problem.

comment:5 Changed 9 years ago by Dalius

This problem solved in AuthOpenIdPlugin (

comment:6 Changed 18 months ago by Ryan J Ollos

Resolution: wontfix
Status: reopenedclosed

Plugin is deprecated. See AuthOpenIdPlugin for an alternative.

Modify Ticket

as closed The owner will remain cygnus.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.