[Trac-tickets] [The Trac Project] #1811: Ooops w/ SQLite & threading

The Trac Project noreply at edgewall.com
Wed Jul 20 11:39:35 CDT 2005


#1811: Ooops w/ SQLite & threading
---------------------+------------------------------------------------------
       Id:  1811     |      Status:  new                     
Component:  general  |    Modified:  Wed Jul 20 11:39:35 2005
 Severity:  major    |   Milestone:  0.9                     
 Priority:  normal   |     Version:  devel                   
    Owner:  jonas    |    Reporter:  eblot                   
---------------------+------------------------------------------------------
 I've upgraded from [1954] to [2011], and I got this error three times in a
 10 minutes time frame.
 I've restarted the Apache server (2.0.54, worker) each time, but this
 problem randomly occurs ;-(

 Server runs on a Linux Debian, and I had to upgrade the Trac SQLite DB
 version (sqlite2 .dump, sqlite3 .read) after the last {{{aptitude
 upgrade}}} - I don't know whether the problem is related to this upgrade,
 as I done the system upgrade and the Trac upgrade one after the other.

 {{{
 Oops...

 Trac detected an internal error:

 SQLite objects created in a thread can only be used in that same
 thread.The object was created in thread id 1101532080 and this is thread
 id 1269304240
 Traceback (most recent call last):
   File "/local/engine/trac/trac/web/modpython_frontend.py", line 274, in
 handler
     dispatch_request(mpr.path_info, mpr, env)
   File "/local/engine/trac/trac/web/main.py", line 434, in
 dispatch_request
     db.close()
   File "/local/engine/trac/trac/db.py", line 89, in close
     self.__pool._return_cnx(self.cnx)
   File "/local/engine/trac/trac/db.py", line 134, in _return_cnx
     cnx.rollback()
 ProgrammingError: SQLite objects created in a thread can only be used in
 that same thread.The object was created in thread id 1101532080 and this
 is thread id 1269304240
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/1811>
The Trac Project <>


More information about the Trac-Tickets mailing list