Edgewall Software
Modify

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

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

Attachments (0)

Change History (2)

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).

comment:2 by Christian Boos, 18 years ago

Funnily, I had also a lock at the first attempt I made to save the ticket comment above ;)

Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 316, in dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.3/site-packages/trac/web/main.py", line 201, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 259, in process_request
    self._do_save(req, db, ticket)
  File "/usr/lib/python2.3/site-packages/trac/ticket/web_ui.py", line 526, in _do_save
    cnum=internal_cnum)
  File "/usr/lib/python2.3/site-packages/trac/ticket/model.py", line 241, in save_changes
    (self[name], self.id))
  File "/usr/lib/python2.3/site-packages/trac/db/util.py", line 47, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py", line 44, in execute
    args or [])
  File "/usr/lib/python2.3/site-packages/trac/db/sqlite_backend.py", line 36, in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: database is locked

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Jonas Borgström.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Jonas Borgström to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.