Ticket #2598 (closed defect: worksforme)
SQL logic error or missing database when database seems fine
| Reported by: | dangoor+trac@… | Owned by: | cboos |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | general | Version: | 0.9.3 |
| Severity: | critical | Keywords: | pysqlite |
| Cc: | dangoor+trac@… |
Description
This is in the TurboGears? trac http://trac.turbogears.org/
When trying to view the timeline or create a new ticket, the following exception appears:
17:42:52 Trac[__init__] DEBUG: Updating wiki page index
17:42:52 Trac[__init__] DEBUG: Opening subversion file-system at /home/kevin/svn
/turbogears with scope /
17:42:52 Trac[__init__] DEBUG: Checking whether sync with repository is needed
17:42:52 Trac[__init__] INFO: Syncing with repository (511 to 513)
17:42:52 Trac[__init__] ERROR: SQL logic error or missing database
Traceback (most recent call last):
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/web/standalone.p
y", line 303, in _do_trac_req
dispatch_request(path_info, req, env)
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/web/main.py", li
ne 139, in dispatch_request
dispatcher.dispatch(req)
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/web/main.py", line 107, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/Timeline.py", li
ne 139, in process_request
filters)
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/versioncontrol/w
eb_ui/changeset.py", line 116, in get_timeline_events
chgset = repos.get_changeset(rev)
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/versioncontrol/c
ache.py", line 42, in get_changeset
self.sync()
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/versioncontrol/c
ache.py", line 84, in sync
"VALUES (%s,%s,%s,%s)", (str(current_rev),
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/db.py", line 219
, in execute
args or [])
File "/usr/home/kevin/lib/python2.4/trac-0.9.3-py2.4.egg/trac/db.py", line 211
, in _rollback_on_error
return function(self, *args, **kwargs)
OperationalError: SQL logic error or missing database
17:42:52 Trac[__init__] DEBUG: Closing subversion file-system at /home/kevin/svn
/turbogears
The database looks fine when I open it with sqlite3. The log message implies that something may be throwing it off between r511 and r513 in the repository.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.


