Edgewall Software

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3536 closed defect (duplicate)

trac error when adding a comment to a ticket — at Version 1

Reported by: lars.eggert@… Owned by: Jonas Borgström
Priority: normal Milestone:
Component: general Version: 0.9.6
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Python Traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 315, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/local/lib/python2.4/site-packages/trac/web/main.py", line 200, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 259, in process_request
    self._do_save(req, db, ticket)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/web_ui.py", line 526, in _do_save
    cnum=internal_cnum)
  File "/usr/local/lib/python2.4/site-packages/trac/ticket/model.py", line 250, in save_changes
    (self.id, when, author, cnum, comment))
  File "/usr/local/lib/python2.4/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/local/lib/python2.4/site-packages/sqlite/main.py", line 237, in execute
    self.con._begin()
  File "/usr/local/lib/python2.4/site-packages/sqlite/main.py", line 503, in _begin
    self.db.execute("BEGIN")
OperationalError: database is locked

Change History (1)

comment:1 by Christian Boos, 18 years ago

Description: modified (diff)
Resolution: duplicate
Status: newclosed

Yeah, we know… Trac has still lots of progress to make regarding concurrent write access. See e.g. #3446.

However, by looking at the stacktrace, it seems you're still using an old version of PySqlite. Try to upgrade, it can help (latest stable is version 2.3.2).

Note: See TracTickets for help on using tickets.