Forum: Ruby on Rails Mysql::Error: MySQL server has gone away

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Thomas K. (Guest)
on 2006-01-04 18:07
Hello,

Does anyone see the following error? Is it possible that it has
something
to do with the connection maintained by active record timing out?

/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/abstract_adapter.rb:88:in
`log': Mysql::Error: MySQL server has gone away: SELECT * FROM toys
WHERE (toys.id = 28)  LIMIT 1 (ActiveRecord::StatementInvalid)
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:180:in
`execute'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:322:in
`select'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/connection_adapters/mysql_adapter.rb:171:in
`select_all'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:431:in
`find_by_sql'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:395:in
`find'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:393:in
`find'
from
/usr/lib/ruby/gems/1.8/gems/activerecord-1.13.2/lib/active_record/base.rb:409:in
`find'
from
/home/traderfi/rails/offer1/site/script/app/offer/offer-email-uploader:266:in
`main'
from
/home/traderfi/rails/offer1/site/script/app/offer/offer-email-uploader:263:in
`main'
from
/home/traderfi/rails/offer1/site/script/app/offer/offer-email-uploader:286
This topic is locked and can not be replied to.