Rake test_units error

Hi, I often (but not always - though most of the time) get the following
error when I try to run rake test_units …

MySql etc is running.

Anybody any ideas?

Thanks
Joerg

rake test_units --trace
(in /Users/joerg/Development/work/www)
** Invoke test_units (first_time)
** Invoke test:units (first_time)
** Invoke db:test:prepare (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute db:test:prepare
** Invoke db:test:clone (first_time)
** Invoke db:schema:dump (first_time)
** Invoke environment
** Execute db:schema:dump
** Invoke db:test:purge (first_time)
** Invoke environment
** Execute db:test:purge
** Execute db:test:clone
** Invoke db:schema:load (first_time)
** Invoke environment
** Execute db:schema:load
rake aborted!
Lost connection to MySQL server during query
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1127:in
write' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/vendor/mysql.rb:1177:infinalizer’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:279:in
call' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:279:inadd_column_options!’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:219:in
add_column_options!' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:208:into_s’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:334:in
*' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb:334:into_sql’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb:102:in
create_table' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:331:increate_table’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/migration.rb:275:in
send' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/migration.rb:275:inmethod_missing’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/migration.rb:259:in
say_with_time' /opt/local/lib/ruby/1.8/benchmark.rb:293:inmeasure’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/migration.rb:259:in
say_with_time' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/migration.rb:273:inmethod_missing’
./db/schema.rb:50
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/active_record/schema.rb:43:in
instance_eval' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/active_record/schema.rb:43:indefine’
./db/schema.rb:5
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:482:in
load' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:482:inload’
/Users/joerg/Development/work/www/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:337:in
new_constants_in' /Users/joerg/Development/work/www/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:482:inload’
/Users/joerg/Development/work/www/config/…/vendor/rails/railties/lib/tasks/databases.rake:31
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in invoke' /opt/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /Users/joerg/Development/work/www/config/../vendor/rails/railties/lib/tasks/databases.rake:76 /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:incall’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:ineach’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in
execute' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:ininvoke’
/opt/local/lib/ruby/1.8/thread.rb:135:in synchronize' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:ininvoke’
/Users/joerg/Development/work/www/config/…/vendor/rails/railties/lib/tasks/databases.rake:153
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in call' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in invoke' /opt/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /opt/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /opt/local/lib/ruby/1.8/thread.rb:135:insynchronize’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in each' /opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/opt/local/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/opt/local/bin/rake:18:in `load’
/opt/local/bin/rake:18

Hi Joerg,
I just started getting these on and off again errors as well. This
happened when I froze to rc1 of rails 1.2. Have you found anything out
since
you posted? I am going to start investigate now.

Best,

Tim

Not really - they seem to be working again now… ?

Tim Trautmann wrote:

Hi Joerg,
I just started getting these on and off again errors as well. This
happened when I froze to rc1 of rails 1.2. Have you found anything out
since
you posted? I am going to start investigate now.

Best,

Tim

I’m also having these problems with rails 1.2.1. Did either of you
figure it out? The majority of times tests don’t run it seems like.
Any suggestions would be appreciated. Thanks,
Ben

Joerg D. wrote:

Not really - they seem to be working again now… ?

Tim Trautmann wrote:

Hi Joerg,
I just started getting these on and off again errors as well. This
happened when I froze to rc1 of rails 1.2. Have you found anything out
since
you posted? I am going to start investigate now.

Best,

Tim