[Backgroundrb-devel] lost connection 2.0

Joost Hietbrink (YelloYello) joost at yelloyello.com
Fri Dec 28 03:24:32 EST 2007


Here you are :)

A ActiveRecord::StatementInvalid occurred in IndexingWorker#refetch_record:

  Mysql::Error: MySQL server has gone away: SELECT * FROM places WHERE (places.`id` = 616752) 
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'

-------------------------------
Request:
-------------------------------

  * URL: N/A
  * Parameters: []
  * Rails root: /var/home/releases/yy/20071227135247

-------------------------------
Session:
-------------------------------

  * session id: "N/A"
  * data: "N/A"

-------------------------------
Environment:
-------------------------------

  * Process: 10327
  * Server : yy

-------------------------------
Backtrace:
-------------------------------

  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in `log'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/mysql_adapter.rb:243:in `execute'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/mysql_adapter.rb:399:in `select'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:427:in `find_by_sql'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:997:in `find_every'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:1028:in `find_one'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:1014:in `find_from_ids'
  /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/base.rb:419:in `find'
  [RAILS_ROOT]/vendor/plugins/backgroundrb_extensions/lib/rails_model_worker.rb:86:in `refetch_record'
  [RAILS_ROOT]/vendor/plugins/backgroundrb_extensions/lib/rails_model_worker.rb:84:in `each'
  [RAILS_ROOT]/vendor/plugins/backgroundrb_extensions/lib/rails_model_worker.rb:84:in `refetch_record'
  [RAILS_ROOT]/vendor/plugins/backgroundrb_extensions/lib/rails_model_worker.rb:59:in `request_work'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/meta_worker.rb:219:in `send'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/meta_worker.rb:219:in `process_request'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/meta_worker.rb:202:in `receive_data'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/worker.rb:54:in `receive_internal_data'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/bin_parser.rb:29:in `call'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/bin_parser.rb:29:in `extract'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/worker.rb:52:in `receive_internal_data'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/worker.rb:48:in `handle_internal_messages'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:158:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:156:in `each'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:156:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:147:in `loop'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:147:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/worker.rb:21:in `start_worker'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/packet_master.rb:134:in `fork_and_load'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/packet_master.rb:115:in `start_worker'
  (__FORWARDABLE__):3:in `__send__'
  (__FORWARDABLE__):3:in `start_worker'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/master_worker.rb:78:in `start_worker_request'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/master_worker.rb:38:in `receive_data'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/bin_parser.rb:29:in `call'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/bin_parser.rb:29:in `extract'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/master_worker.rb:31:in `receive_data'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:199:in `read_external_socket'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:191:in `handle_external_messages'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:160:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:156:in `each'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:156:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:147:in `loop'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/core.rb:147:in `start_reactor'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/framework/packet_master.rb:20:in `run'
  [RAILS_ROOT]/vendor/plugins/backgroundrb/server/master_worker.rb:144:in `initialize'
  script/backgroundrb:41:in `new'
  script/backgroundrb:41


hemant wrote:
> On Dec 28, 2007 1:27 PM, Joost Hietbrink (YelloYello)
> <joost at yelloyello.com> wrote:
>   
>> I lost my "connection lost" error.. but now I've got a "Mysql::Error:
>> MySQL server has gone away" error..
>> It comes from:
>>
>>   /usr/lib/ruby/gems/1.8/gems/activerecord-1.15.6/lib/active_record/connection_adapters/abstract_adapter.rb:128:in 'log'.
>>     
>
> Complete backtrace please.
>
>
>   

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20071228/1b6e190a/attachment.html 


More information about the Backgroundrb-devel mailing list