I'm using mysql2 0.3.13, rails 3.2.14, ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] .. and I'm getting this problem intermittently on production. Any suggestions? My wait_timeout in mysql is set to 28800.
The text was updated successfully, but these errors were encountered:
What was the previous query? Your connection may have timed out before starting this query. Any other timeout values that are set low? Is reconnect enabled or disabled?
By any chance have you set the reaping_frequency ActiveRecord config? I found that the ActiveRecord connection reaper was causing this error. It's disabled by default in rails (for good reason it seems), but some some samples out there recommend enabling it (such as from Heroku).
I'm using mysql2 0.3.13, rails 3.2.14, ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-linux] .. and I'm getting this problem intermittently on production. Any suggestions? My wait_timeout in mysql is set to 28800.
The text was updated successfully, but these errors were encountered: