Current time: 04-16-2014, 02:53 PM Hello There, Guest! (LoginRegister)

Post Reply 
Rails app: Undefined method 'Rewind' on POST commands
03-15-2011, 11:41 AM
Post: #1
Rails app: Undefined method 'Rewind' on POST commands
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:in
`POST'
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:in `call'
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:in `call'
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:in `call'
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:in `cache'
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:in `call'
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:in
`call'
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:in `call'
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:in
`call'
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:in `call'
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:in `call'
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:in
`process_request'
/dh/passenger/lib/phusion_passenger/abstract_request_handler.rb:203:in
`main_loop'
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
340:in `start_request_handler'
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
298:in `handle_spawn_application'
/dh/passenger/lib/phusion_passenger/utils.rb:181:in `safe_fork'
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
296:in `handle_spawn_application'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
`__send__'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
`main_loop'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:187:in
`start_synchronously'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:154:in `start'
/dh/passenger/lib/phusion_passenger/railz/application_spawner.rb:
192:in `start'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:257:in
`spawn_rails_application'
/dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:
126:in `lookup_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:in `synchronize'
/dh/passenger/lib/phusion_passenger/abstract_server_collection.rb:
79:in `synchronize'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:250:in
`spawn_rails_application'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:153:in
`spawn_application'
/dh/passenger/lib/phusion_passenger/spawn_manager.rb:282:in
`handle_spawn_application'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
`__send__'
/dh/passenger/lib/phusion_passenger/abstract_server.rb:337:in
`main_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"=>""}
Find all posts by this user
Quote this message in a reply
03-15-2011, 12:02 PM
Post: #2
RE: Rails app: Undefined method 'Rewind' on POST commands
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!
Find all posts by this user
Quote this message in a reply
03-15-2011, 01:22 PM
Post: #3
RE: Rails app: Undefined method 'Rewind' on POST commands
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,

(03-15-2011 12:02 PM)andrewf Wrote:  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!
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: