Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #3159 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Error connecting to database? Not sure.

Reported by: dreamer3@gmail.com Assigned to: David
Priority: normal Milestone:
Component: ActiveRecord Version: 0.14.3
Severity: normal Keywords: fcgi webrick mssql postgre mysql broken pipe timeout fd
Cc: dreamer3@gmail.com

Description

Running http://dev.rubyonrails.org/svn/rails/branches/stable, rev 3227. I hadn't used the system in quite a while... so I don't know if this is related to the MySQL timeout issues or is somethign different... the last time I did try it before this it was working just fine.

Processing OverviewController#today (for 63.235.175.87 at 2005-12-09 12:53:43) [GET]

Parameters: {"action"=>"today", "controller"=>"overview"}

Redirected to http://reservations.marengocave.com/login Filter chain halted as [require_login] returned false

NoMethodError (undefined method `[]' for nil:NilClass):

/vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:328:in `connect' /vendor/rails/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb:180:in `reconnect!' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:103:in `retrieve_connection' /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/connection_specification.rb:20:in `connection' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:85:in `active_record_runtime' /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:72:in `perform_action_without_rescue' /vendor/rails/actionpack/lib/action_controller/rescue.rb:82:in `perform_action' /vendor/rails/actionpack/lib/action_controller/base.rb:369:in `send' /vendor/rails/actionpack/lib/action_controller/base.rb:369:in `process_without_session_management_support' /vendor/rails/actionpack/lib/action_controller/session_management.rb:116:in `process' /vendor/rails/railties/lib/dispatcher.rb:38:in `dispatch' /vendor/rails/railties/lib/fcgi_handler.rb:141:in `process_request' /vendor/rails/railties/lib/fcgi_handler.rb:53:in `process!' /vendor/rails/railties/lib/fcgi_handler.rb:52:in `each_cgi' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each' /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.6.1/./fcgi.rb:597:in `each_cgi' /vendor/rails/railties/lib/fcgi_handler.rb:52:in `process!' /vendor/rails/railties/lib/fcgi_handler.rb:22:in `process!' /public/dispatch.fcgi:24

I ./script/process/reaper.... The first request I still got an error... (but not in the log) Something definately broke on this though - look at the very high requests per second.

Processing OverviewController#today (for 63.235.175.87 at 2005-12-09 12:55:48) [GET] Parameters: {"action"=>"today", "controller"=>"overview"}Redirected to http://reservations.marengocave.com/login Filter chain halted as [require_login] returned falseCompleted in 0.00152 (656 reqs/sec) | 302 Found http://reservations.marengocave.com/

The second time everything went thru perfectly... not sure if this is some problem with AR, or with filters (I'm not sure what the filter chain halted is all about)... In any case I've svn upped to 3255 now and will report if I see this again.

Change History

12/09/05 18:00:06 changed by dreamer3@gmail.com

  • cc set to dreamer3@gmail.com.

12/11/05 05:26:33 changed by dreamer3@gmail.com

  • keywords set to fcgi webrick mssql postgre mysql broken pipe timeout fd.
  • status changed from new to closed.
  • resolution set to fixed.

[3266] or [3267] seem to resolve this for me. In any case all seems well now (I can restart the DB with no problems with Rails)