Forum: Ruby on Rails Mysql keeps loosing connection

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Ec30a6fd730b3c7788b59409ed568e7a?d=identicon&s=25 Justin Blake (Guest)
on 2006-12-25 04:36
(Received via mailing list)
I just set up email notification of unhandled exceptions and I'm
noticing this error happening a couple times a day:

(ActiveRecord::StatementInvalid) "Mysql::Error: Lost connection to
MySQL server during query:

But whenever I check the site after-the-fact it seems to be running
fine. There doesn't seem to be any strain on the db that would be
causing it to timeout or anything either. I'm not sure how to debug
this problem. Any ideas?

E41ff53614fcbf599d07b0d55bd18269?d=identicon&s=25 Chad (Guest)
on 2006-12-25 09:39
(Received via mailing list)
long shot, but are you persisting any objects to the session?  One time
I wasn't pre-loading models before storing them to session and I got
random lost connections....

good luck
F734b6ca0eb2ebd01744224437a72498?d=identicon&s=25 Harm de Laat (Guest)
on 2006-12-25 11:41
(Received via mailing list)
Have you installed the mysql gem?
This topic is locked and can not be replied to.