Forum: Ruby on Rails Ruby 1.8.4 upgrade screws up ActiveRecord

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.
137039860fa6b38713e1349da8a4137d?d=identicon&s=25 Marc Love (Guest)
on 2006-03-31 05:47
Okay, so I upgraded to Rails 1.1 on my Windows development machine and
everything worked fine.  Then I went to upgrade to Ruby 1.8.4 from
1.8.2, launched WEBrick and browsed to 127.0.0.1:3000 and here's what I
get:

Errno::EBADF in Front#index
Bad file descriptor - connect(2)

c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/vendor/mysql.rb:108:in
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/vendor/mysql.rb:108:in
`real_connect'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:331:in
`connect'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:88:in
`initialize'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/mysql_adapter.rb:37:in
`mysql_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:251:in
`connection_without_query_cache='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/query_cache.rb:54:in
`connection='
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:220:in
`retrieve_connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/connection_adapters/abstract/connection_specification.rb:78:in
`connection'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1044:in
`add_limit!'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:1017:in
`construct_finder_sql'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:924:in
`find_every'
c:/ruby/lib/ruby/gems/1.8/gems/activerecord-1.14.0/lib/active_record/base.rb:381:in
`find'
#{RAILS_ROOT}/app/controllers/front_controller.rb:14:in `index'

Line 14 in front_controller.rb is my first ActiveRecord call.

Am I doing something wrong or should I be submitting a ticket?  I can't
find anything anywhere about this so I'm guessing its something I did.

Thanks in advance!
137039860fa6b38713e1349da8a4137d?d=identicon&s=25 Marc Love (Guest)
on 2006-03-31 05:54
Nevermind, I'm an idiot.  Please ignore.  :-)
This topic is locked and can not be replied to.