Rails app: Undefined method 'Rewind' on POST commands

software development

#1

Hi,

I have a Rails 3.0.4 Rails app running on a VPS.

Some time between last night and today I satarted getting this error
on POST commands:
undefined method rewind' for #<UNIXSocket:0x7f9161d65188> The VPS has passenger 2.2.1 running and it had been working with no problems. Maybe I updated other gems by accident. The framework trace: vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/request.rb:157:inPOST’
vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/methodoverride.rb:
15:in call' vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/ middleware/params_parser.rb:21:incall’
vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/
middleware/flash.rb:182:in call' vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/ middleware/session/abstract_store.rb:149:incall’
vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/
middleware/cookies.rb:302:in call' vendor/bundle/ruby/1.8/gems/activerecord-3.0.4/lib/active_record/ query_cache.rb:32:incall’
vendor/bundle/ruby/1.8/gems/activerecord-3.0.4/lib/active_record/
connection_adapters/abstract/query_cache.rb:28:in cache' vendor/bundle/ruby/1.8/gems/activerecord-3.0.4/lib/active_record/ query_cache.rb:12:incache’
vendor/bundle/ruby/1.8/gems/activerecord-3.0.4/lib/active_record/
query_cache.rb:31:in call' vendor/bundle/ruby/1.8/gems/activerecord-3.0.4/lib/active_record/ connection_adapters/abstract/connection_pool.rb:354:incall’
vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/
middleware/callbacks.rb:46:in call' vendor/bundle/ruby/1.8/gems/activesupport-3.0.4/lib/active_support/ callbacks.rb:415:in_run_call_callbacks’
vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/
middleware/callbacks.rb:44:in call' vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/sendfile.rb:107:incall’
vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/
middleware/remote_ip.rb:48:in call' vendor/bundle/ruby/1.8/gems/actionpack-3.0.4/lib/action_dispatch/ middleware/show_exceptions.rb:47:incall’
vendor/bundle/ruby/1.8/gems/railties-3.0.4/lib/rails/rack/logger.rb:
13:in call' vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/runtime.rb:17:incall’
vendor/bundle/ruby/1.8/gems/activesupport-3.0.4/lib/active_support/
cache/strategy/local_cache.rb:72:in call' vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:incall’
vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:in
synchronize' vendor/bundle/ruby/1.8/gems/rack-1.2.1/lib/rack/lock.rb:11:incall’
vendor/bundle/ruby/1.8/gems/railties-3.0.4/lib/rails/application.rb:
168:in call' /dh/passenger/lib/phusion_passenger/rack/request_handler.rb:74:inprocess_request’
/dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:203:in
main_loop' /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb: 340:instart_request_handler’
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
298:in handle_spawn_application' /dh/passenger/lib/phusion_passenger/utils.rb:181:insafe_fork’
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
296:in handle_spawn_application' /dh/passenger/lib/phusion_passenger/abstract_server.rb:337:insend
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
main_loop' /dh/passenger/lib/phusion_passenger/abstract_server.rb:187:instart_synchronously’
/dh/passenger/lib/phusion_passenger/abstract_server.rb:154:in start' /dh/passenger/lib/phusion_passenger/railz/application_spawner.rb: 192:instart’
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:257:in
spawn_rails_application' /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb: 126:inlookup_or_add’
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:251:in
spawn_rails_application' /dh/passenger/lib/phusion_passenger/abstract_server_collection.rb: 80:insynchronize’
/dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:
79:in synchronize' /dh/passenger/lib/phusion_passenger/spawn_manager.rb:250:inspawn_rails_application’
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:153:in
spawn_application' /dh/passenger/lib/phusion_passenger/spawn_manager.rb:282:inhandle_spawn_application’
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
__send__' /dh/passenger/lib/phusion_passenger/abstract_server.rb:337:inmain_loop’
/dh/passenger/lib/phusion_passenger/abstract_server.rb:187:in
`start_synchronously’
/dh/passenger/bin/passenger-spawn-server:55
Request
Parameters:
{“btnLogin.x”=>“22”,
“btnLogin.y”=>“7”,
“authenticity_token”=>“iBz4ncaKSQCD1RiqLoPNhL5hwU2oeW/JENhNlDTTYk0=”,
“utf8”=>“✓”,
“password”=>"[FILTERED]",
“email”=>""}


#2

That session dump included what appeared to be your password (it was about eight or nine characters long, and had a period in the middle of it). I’ve removed it for you… be careful what you copy/paste, though, and please change that password right away!


#3

Impressive catch, it took me a while to find out what you where talking about. It was not a real password, just information in a password field for validation pourpuses.

Thanks,