Opened 8 years ago

Last modified 7 years ago

#1582 reopened defect

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 (5)

comment:1 Changed 8 years ago by AndrewStraw

  • Resolution set to worksforme
  • Status changed from new to closed

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

comment:2 Changed 8 years ago by…

  • Resolution worksforme deleted
  • Severity changed from blocker to major
  • Status changed from closed to reopened

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 8 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 7 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 7 years ago by dalius

Add Comment

Modify Ticket

as reopened The owner will remain cygnus.

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

Note: See TracTickets for help on using tickets.