IsBOF
2007-Jan-24 13:42 UTC
Problems with railsbench - "benchmarking database is not configured"
Anyone have any experience with Railsbench?
I have some problems getting it to run on our build server (it runs
fine on my development machine).
I have installed the latest gem and when I try to running it on our
build server it raises the following error:
/usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_spec
ification.rb:194:in `establish_connection'': benchmarking database is
not configured (ActiveRecord::AdapterNotSpecified)
from
/usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/co
nnection_specification.rb:185:in `establish_connection''
from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:182:in
`initialize_database''
from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:84:in
`process''
from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in
`send''
from
/usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in
`run''
from /usr/home/app/sources/config/environment.rb:16
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in
`require''
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in
`initialize''
... 6 levels...
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:25
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:182:in
`benchmark''
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:212:in
`bm''
from
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:24
perf_run: ruby
/usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench
100 returned 256
I have done some testing with both ruby script/runner
"some class" and rcov. Both runs with no problems, they can see the
database fine.
Rasmus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
IsBOF
2007-Jan-24 22:16 UTC
Re: Problems with railsbench - "benchmarking database is not configured"
Okay, found the problem, remember to include a special benchmarking entry in the database.yml file. Rasmus On Jan 24, 2:42 pm, "IsBOF" <rasmu...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Anyone have any experience with Railsbench? > > I have some problems getting it to run on our build server (it runs > fine on my development machine). > > I have installed the latest gem and when I try to running it on our > build server it raises the following error: > > /usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_spec > ification.rb:194:in `establish_connection'': benchmarking database is > not configured (ActiveRecord::AdapterNotSpecified) > from > /usr/home/app/sources/config/../vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/co > nnection_specification.rb:185:in `establish_connection'' > from > /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:182:in > `initialize_database'' > from > /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:84:in > `process'' > from > /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in > `send'' > from > /usr/home/app/sources/config/../vendor/rails/railties/lib/initializer.rb:42:in > `run'' > from /usr/home/app/sources/config/environment.rb:16 > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in > `require'' > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/railsbench/railsbenchmark.rb:41:in > `initialize'' > ... 6 levels... > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:25 > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:182:in > `benchmark'' > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/lib/benchmark.rb:212:in > `bm'' > from > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench:24 > perf_run: ruby > /usr/local/lib/ruby/gems/1.8/gems/railsbench-0.9.1/script/perf_bench > 100 returned 256 > > I have done some testing with both ruby script/runner > "some class" and rcov. Both runs with no problems, they can see the > database fine. > > Rasmus--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---