IOError (closed stream) with R3(master), R1.9.2(head)

See trace below.

It isn't limited to this model/controller/view but happened to me in
other contexts as well, and I've seen this with "devise" instead of
"authlogic" being installed as well and not just during login, so this
is just an example.

The only gem I use that might be of interest at all is
gem 'mysql-ruby', :git => 'git://github.com/jzajpt/mysql-ruby.git',
the others are not active most of the time and when I get this error.
It is a nasty timing-error, when I reload many times it only shows up
occasionally. Passenger is used and at version 2.2.11. It's in an rvm
environment. I've seen it quite a lot since going Rails 3 (which I did
with beta2 at first) but only decided to post now.

Any ideas?

(rails, ruby 1.9.2 etc.: the latest as of today)

IOError in User sessionsController#create

closed stream

Rails.root: /home/mha/Nasenschein-Druck
Application Trace | Framework Trace | Full Trace

app/controllers/user_sessions_controller.rb:4:in
`<class:UserSessionsController>'
app/controllers/user_sessions_controller.rb:2:in `<top (required)>'

/home/mha/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:
277:in `close'
/home/mha/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:
277:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:410:in `block in __define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:414:in `class_eval'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:414:in `block in __define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:10:in `block in
silence_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:21:in `with_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:10:in
`silence_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:412:in `__define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:444:in `__update_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:474:in `set_callback'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:87:in `block in before_filter'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:75:in `block in _insert_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:74:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:74:in `_insert_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:86:in `before_filter'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:415:in `load'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:415:in `block in load_file'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:523:in `new_constants_in'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:414:in `load_file'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:310:in `require_or_load'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:452:in `load_missing_constant'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:153:in `block in const_missing'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:151:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:151:in `const_missing'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:112:in `block in constantize'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:111:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:111:in `constantize'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:47:in `controller'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:25:in `call'
rack-mount (0.6.1) lib/rack/mount/recognition/route_set.rb:75:in
`block in call'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:99:in
`block in recognize'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:76:in
`optimized_each'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:98:in
`recognize'
rack-mount (0.6.1) lib/rack/mount/recognition/route_set.rb:66:in
`call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:458:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:31:in `block in call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/connection_adapters/abstract/query_cache.rb:36:in
`cache'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:11:in `cache'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:30:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/connection_adapters/abstract/connection_pool.rb:365:in
`call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/head.rb:14:in `call'
rack (1.1.0) lib/rack/methodoverride.rb:24:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/params_parser.rb:19:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/flash.rb:167:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/session/abstract_store.rb:151:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/cookies.rb:202:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:429:in `_run_call_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:88:in `run_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.1.0) lib/rack/sendfile.rb:105:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/show_exceptions.rb:48:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/
rails/rack/logger.rb:13:in `call'
rack (1.1.0) lib/rack/runtime.rb:17:in `call'
rack (1.1.0) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.1.0) lib/rack/lock.rb:11:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/static.rb:30:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/
rails/application.rb:132:in `call'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:
207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
358:in `block in handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in
`start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in
`block (2 levels) in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in
`block in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
80:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in
`spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in
`handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
passenger (2.2.11) bin/passenger-spawn-server:61:in `<main>'

/home/mha/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:
277:in `close'
/home/mha/.rvm/rubies/ruby-1.9.2-head/lib/ruby/1.9.1/tempfile.rb:
277:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:410:in `block in __define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:414:in `class_eval'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:414:in `block in __define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:10:in `block in
silence_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:21:in `with_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/core_ext/kernel/reporting.rb:10:in
`silence_warnings'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:412:in `__define_runner'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:444:in `__update_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:474:in `set_callback'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:87:in `block in before_filter'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:75:in `block in _insert_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:74:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:74:in `_insert_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
abstract_controller/callbacks.rb:86:in `before_filter'
app/controllers/user_sessions_controller.rb:4:in
`<class:UserSessionsController>'
app/controllers/user_sessions_controller.rb:2:in `<top (required)>'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:415:in `load'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:415:in `block in load_file'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:523:in `new_constants_in'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:414:in `load_file'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:310:in `require_or_load'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:452:in `load_missing_constant'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:153:in `block in const_missing'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:151:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/dependencies.rb:151:in `const_missing'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:112:in `block in constantize'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:111:in `each'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/inflector/methods.rb:111:in `constantize'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:47:in `controller'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:25:in `call'
rack-mount (0.6.1) lib/rack/mount/recognition/route_set.rb:75:in
`block in call'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:99:in
`block in recognize'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:76:in
`optimized_each'
rack-mount (0.6.1) lib/rack/mount/recognition/code_generation.rb:98:in
`recognize'
rack-mount (0.6.1) lib/rack/mount/recognition/route_set.rb:66:in
`call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/routing/route_set.rb:458:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:31:in `block in call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/connection_adapters/abstract/query_cache.rb:36:in
`cache'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:11:in `cache'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/query_cache.rb:30:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activerecord/lib/
active_record/connection_adapters/abstract/connection_pool.rb:365:in
`call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/head.rb:14:in `call'
rack (1.1.0) lib/rack/methodoverride.rb:24:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/params_parser.rb:19:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/flash.rb:167:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/session/abstract_store.rb:151:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/cookies.rb:202:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/callbacks.rb:46:in `block in call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:429:in `_run_call_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/activesupport/
lib/active_support/callbacks.rb:88:in `run_callbacks'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/callbacks.rb:44:in `call'
rack (1.1.0) lib/rack/sendfile.rb:105:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/remote_ip.rb:48:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/show_exceptions.rb:48:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/
rails/rack/logger.rb:13:in `call'
rack (1.1.0) lib/rack/runtime.rb:17:in `call'
rack (1.1.0) lib/rack/lock.rb:11:in `block in call'
<internal:prelude>:10:in `synchronize'
rack (1.1.0) lib/rack/lock.rb:11:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/actionpack/lib/
action_dispatch/middleware/static.rb:30:in `call'
/home/mha/.rvm/gems/ruby-1.9.2-head/bundler/gems/
rails-16a5e918a06649ffac24fd5873b875daf66212ad-master/railties/lib/
rails/application.rb:132:in `call'
passenger (2.2.11) lib/phusion_passenger/rack/request_handler.rb:92:in
`process_request'
passenger (2.2.11) lib/phusion_passenger/abstract_request_handler.rb:
207:in `main_loop'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
418:in `start_request_handler'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
358:in `block in handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/utils.rb:184:in `safe_fork'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
354:in `handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:163:in
`start'
passenger (2.2.11) lib/phusion_passenger/railz/application_spawner.rb:
213:in `start'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:262:in
`block (2 levels) in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
126:in `lookup_or_add'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:256:in
`block in spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
80:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/abstract_server_collection.rb:
79:in `synchronize'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:255:in
`spawn_rails_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:154:in
`spawn_application'
passenger (2.2.11) lib/phusion_passenger/spawn_manager.rb:287:in
`handle_spawn_application'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:352:in
`main_loop'
passenger (2.2.11) lib/phusion_passenger/abstract_server.rb:196:in
`start_synchronously'
passenger (2.2.11) bin/passenger-spawn-server:61:in `<main>'

Request

Parameters:

{"authenticity_token"=>"cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI=",
"user_session"=>{"login"=>"mh",
"password"=>"[FILTERED]",
"remember_me"=>"0"},
"commit"=>"Melde mich an!"}

Show session dump

_csrf_token: "cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI="
return_to: "http://nasenschein-druck/"

Show env dump

CONTENT_LENGTH: "177"
CONTENT_TYPE: "application/x-www-form-urlencoded"
DOCUMENT_ROOT: "/home/mha/Nasenschein_Druck/public"
HTTP_ACCEPT: "text/html,application/xhtml+xml,application/xml;q=0.9,*/
*;q=0.8"
HTTP_ACCEPT_CHARSET: "ISO-8859-1,utf-8;q=0.7,*;q=0.7"
HTTP_ACCEPT_ENCODING: "gzip,deflate"
HTTP_ACCEPT_LANGUAGE: "en-us,en;q=0.7,de-de;q=0.3"
HTTP_CONNECTION: "keep-alive"
HTTP_COOKIE: "_session_id=4a4de684a09aaa7fc3c32650db12426c"
HTTP_HOST: "nasenschein-druck"
HTTP_KEEP_ALIVE: "115"
HTTP_REFERER: "http://nasenschein-druck/user_sessions"
HTTP_USER_AGENT: "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:
1.9.2.4pre) Gecko/20100407 Ubuntu/9.10 (karmic) Namoroka/3.6.4pre"
PATH_INFO: "/user_sessions"
QUERY_STRING: ""
REMOTE_ADDR: "127.0.0.1"
REMOTE_PORT: "43950"
REQUEST_METHOD: "POST"
REQUEST_URI: "/user_sessions"
SCRIPT_NAME: ""
SERVER_ADDR: "127.0.0.1"
SERVER_ADMIN: "root@localhost"
SERVER_NAME: "nasenschein-druck"
SERVER_PORT: "80"
SERVER_PROTOCOL: "HTTP/1.1"
SERVER_SOFTWARE: "Apache/2.2.12 (Ubuntu)"
_: "_"
action_dispatch.parameter_filter: [:password, :password_confirmation]
action_dispatch.remote_ip: 127.0.0.1
action_dispatch.request.content_type: application/x-www-form-
urlencoded
action_dispatch.request.parameters:
{"authenticity_token"=>"cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI=",
"user_session"=>{"login"=>"mh", "password"=>"s", "remember_me"=>"0"},
"commit"=>"Melde mich an!", "action"=>"create",
"controller"=>"user_sessions"}
action_dispatch.request.path_parameters:
{:action=>"create", :controller=>"user_sessions"}
action_dispatch.request.query_parameters: {}
action_dispatch.request.request_parameters:
{"authenticity_token"=>"cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI=",
"user_session"=>{"login"=>"mh", "password"=>"s", "remember_me"=>"0"},
"commit"=>"Melde mich an!"}
action_dispatch.secret_token:
"70ed1b59802b6e187166224214b1609bb7624fb275a79261a4145f23489a413c265cc5337b25750fd282fa22f19dd51370d99324dfb215ca4c652367c96c1b66"
rack.errors: #<IO:<STDERR>>
rack.input: #<PhusionPassenger::Utils::RewindableInput:0xac76e4c
@io=#<UNIXSocket:fd 8>, @rewindable_io=#<File:/tmp/
RackRewindableInput20100408-31052-11jtc06>, @unlinked=true>
rack.multiprocess: true
rack.multithread: false
rack.request.cookie_hash:
{"_session_id"=>"4a4de684a09aaa7fc3c32650db12426c"}
rack.request.cookie_string:
"_session_id=4a4de684a09aaa7fc3c32650db12426c"
rack.request.form_hash:
{"authenticity_token"=>"cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI=",
"user_session"=>{"login"=>"mh", "password"=>"s", "remember_me"=>"0"},
"commit"=>"Melde mich an!"}
rack.request.form_input: #<PhusionPassenger::Utils::RewindableInput:
0xac76e4c @io=#<UNIXSocket:fd 8>, @rewindable_io=#<File:/tmp/
RackRewindableInput20100408-31052-11jtc06>, @unlinked=true>
rack.request.form_vars:
"authenticity_token=cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI
%3D&user_session%5Blogin%5D=mh&user_session%5Bpassword
%5D=s&user_session%5Bremember_me%5D=0&commit=Melde+mich+an%21"
rack.request.query_hash: {}
rack.request.query_string: ""
rack.run_once: false
rack.session: {"return_to"=>"http://nasenschein-druck/",
"_csrf_token"=>"cTOBzwSlqfwKeCh2fGmKh7nuHZQI4CWEg2RW5vrVFJI="}
rack.session.options:
{:key=>"_session_id", :path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :cookie_only=>true, :id=>"4a4de684a09aaa7fc3c32650db12426c"}
rack.session.record: #<ActiveRecord::SessionStore::Session id: 3,
session_id: "4a4de684a09aaa7fc3c32650db12426c", data:
"BAh7B0kiDnJldHVybl90bwY6BkVGIh5odHRwOi8vbmFzZW5zY2h...", created_at:
"2010-04-08 17:41:23", updated_at: "2010-04-08 17:41:35">
rack.url_scheme: "http"
rack.version: [1, 0]

Response

Headers:

None

I think the bug you’re encountering is this one: http://stackoverflow.com/questions/1627582/ruby-1-9-1-p234-passenger-2-2-5-rails-2-3-stable-closed-stream-on-post-request

Well, similar to that one, at least. They do say Passenger 2.2.8 had a workaround.

I was about to say the two stack traces seem very different, but at
the very top mine indeed show ruby's tempfile.rb. Since this seems
POST-related I'll try to pay attention from now on if I only see it
with POSTs (I think I do), but I'll go ahead and re-post this in
http://code.google.com/p/phusion-passenger/issues/list

Michael