Actually usually it means mysql server died. it's certainly not twisted question, but first of all you need to check mysql logs.
I'm using MySQL database in my server app. Pretty often after some
inactivity I get this message in my logs "MySQL server has gone away".
How can I prevent this?
xooChat Evangelist and Team Leader
Twisted-Python mailing list