I'm getting the following after a couple of hours inactivity:
File
"/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r1631-py2.4.egg/sqlobject/main.py",
line 1329, in selectBy
conn = connection or cls._connection
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/database.py",
line 150, in __get__
return self.hub.__get__(obj, type)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r1631-py2.4.egg/sqlobject/dbconnection.py",
line 935, in __get__
return self.getConnection()
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/database.py",
line 56, in getConnection
return self.begin(conn)
File
"/usr/lib/python2.4/site-packages/TurboGears-0.9a4-py2.4.egg/turbogears/database.py",
line 87, in begin
trans = conn.transaction()
File
"/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r1631-py2.4.egg/sqlobject/dbconnection.py",
line 365, in transaction
return Transaction(self)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r1631-py2.4.egg/sqlobject/dbconnection.py",
line 790, in __init__
self._dbConnection._setAutoCommit(self._connection, 0)
File
"/usr/lib/python2.4/site-packages/SQLObject-0.8dev_r1631-py2.4.egg/sqlobject/mysql/mysqlconnection.py",
line 61, in _setAutoCommit
conn.autocommit(auto)
OperationalError: (2006, 'MySQL server has gone away')
This also happens when I 'killall -9 mysqld' (ie kill the current open
threads)
>From looking at the turbogears PackageManager in database.py, it seems
it is meant to reconnect, but it doesn't for me. I've been unable to
figure it out - am I doing something wrong or is this a bug?
--
Dan Ros
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---