Modify

Opened 7 years ago

Last modified 7 years ago

#2185 assigned defect

Locked database after cancelled operation

Reported by: anonymous Owned by: ttressieres
Priority: normal Component: PerforcePlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

I stopped the tracd service while the perforce plugin was (I believe) enumerating changesets on a large database. This error message resulted the next time I ran tracd and connected a web browser:

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 406, in 
dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 191, in 
dispatch
    chosen_handler = self._pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.5/site-packages/trac/web/main.py", line 263, in 
_pre_process_request
    chosen_handler = f.pre_process_request(req, chosen_handler)
  File "/usr/lib/python2.5/site-packages/trac/versioncontrol/api.py", line 
73, in pre_process_request
    self.get_repository(req.authname).sync()
  File "build/bdist.linux-i686/egg/p4trac/api.py", line 227, in sync
    self.updateCache(fromChange=youngestStored+1)
  File "build/bdist.linux-i686/egg/p4trac/api.py", line 203, in 
updateCache
    self.storeChangesInDB(changes)
  File "build/bdist.linux-i686/egg/p4trac/api.py", line 156, in 
storeChangesInDB
    cs.message))
  File "/usr/lib/python2.5/site-packages/trac/db/util.py", line 50, in 
execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 
56, in execute
    args or [])
  File "/usr/lib/python2.5/site-packages/trac/db/sqlite_backend.py", line 
48, in _rollback_on_error
    return function(self, *args, **kwargs)
OperationalError: database is locked

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by ttressieres

  • Status changed from new to assigned

Add Comment

Modify Ticket

Action
as assigned .
Author


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

 
Note: See TracTickets for help on using tickets.