Ticket #3503 (closed defect: fixed)
OperationalError: database is locked
| Reported by: | anonymous | Owned by: | cboos |
|---|---|---|---|
| Priority: | highest | Milestone: | 0.10.1 |
| Component: | general | Version: | devel |
| Severity: | normal | Keywords: | session pysqlite database lock |
| Cc: | exarkun@… |
Description
recent trunk, trac/web/session.py, line 210, in save, attempts to commit a transaction without performing properly error handling. If an OperationalError? is raised here, it will propagate all the way up to the top of the application without being handled.
A stacktrace recently logged on my server:
File "/home/trac/Projects/Twisted/trunk/twisted/web2/wsgi.py", line 138, in run
result = self.application(self.environment, self.startWSGIResponse)
File "/home/trac/Run/trac/external.py", line 74, in __call__
return self.application(environ, start_response)
File "/home/trac/Run/trac/external.py", line 115, in tracApplication
return trac.web.main.dispatch_request(environ, start_response)
File "/home/trac/Projects/trac/trunk/trac/web/main.py", line 367, in dispatch_request
req.send_error(sys.exc_info(), status=500)
File "/home/trac/Projects/trac/trunk/trac/web/api.py", line 365, in send_error
exc_info)
File "/home/trac/Projects/trac/trunk/trac/web/main.py", line 335, in dispatch_request
dispatcher.dispatch(req)
File "/home/trac/Projects/trac/trunk/trac/web/main.py", line 236, in dispatch
req.session.save()
File "/home/trac/Projects/trac/trunk/trac/web/session.py", line 210, in save
db.commit()
pysqlite2.dbapi2.OperationalError: database is locked
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


