Skip to content

Instantly share code, notes, and snippets.

@manuelmeurer
Created January 25, 2012 17:22
Show Gist options
  • Save manuelmeurer/1677427 to your computer and use it in GitHub Desktop.
Save manuelmeurer/1677427 to your computer and use it in GitHub Desktop.
Error when logging in with Devise 1.4.9 and Rails 3.2.0
Started POST "/login" for 93.205.77.103 at 2012-01-25 18:03:05 +0100
Processing by Admin::SessionsController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"S721A0kGRl59UL86sEGqeKZfpzwnBn2HPlHdd6f5wUU=", "admin_user"=>{"email"=>"[email protected]", "password"=>"[FILTERED]", "remember_me"=>"0"}, "commit"=>"Log in"}
AdminUser Load (0.4ms) SELECT `admin_users`.* FROM `admin_users` WHERE `admin_users`.`email` = '[email protected]' LIMIT 1
(0.1ms) BEGIN
(0.3ms) UPDATE `admin_users` SET `last_sign_in_at` = '2012-01-25 17:02:45', `current_sign_in_at` = '2012-01-25 17:03:06', `last_sign_in_ip` = '93.205.77.103', `sign_in_count` = 185, `updated_at` = '2012-01-25 17:03:06' WHERE `admin_users`.`id` = 1
(2.4ms) COMMIT
Redirected by /home/rails/apps/showspace-staging/shared/bundle/ruby/1.9.1/gems/actionpack-3.2.0/lib/action_controller/metal/responder.rb:135:in `redirect_to'
Redirected to http://admin.staging.show-space.com/
Completed 302 Found in 79ms (ActiveRecord: 0.0ms)
RuntimeError (#destroy_session not implemented):
rack (1.4.0) lib/rack/session/abstract/id.rb:367:in `destroy_session'
rack (1.4.0) lib/rack/session/abstract/id.rb:312:in `commit_session'
rack (1.4.0) lib/rack/session/abstract/id.rb:206:in `context'
rack (1.4.0) lib/rack/session/abstract/id.rb:200:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/cookies.rb:338:in `call'
activerecord (3.2.0) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.0) lib/active_record/connection_adapters/abstract/connection_pool.rb:443:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `_run__2772614222238107376__call__2200384152657075633__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.0) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/reloader.rb:65:in `call'
rack (1.4.0) lib/rack/sendfile.rb:102:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.0) lib/rails/rack/logger.rb:26:in `call_app'
railties (3.2.0) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.0) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.0) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.0) lib/rack/runtime.rb:17:in `call'
rack (1.4.0) lib/rack/lock.rb:15:in `call'
rack-cache (1.1) lib/rack/cache/context.rb:132:in `forward'
rack-cache (1.1) lib/rack/cache/context.rb:139:in `pass'
rack-cache (1.1) lib/rack/cache/context.rb:151:in `invalidate'
rack-cache (1.1) lib/rack/cache/context.rb:70:in `call!'
rack-cache (1.1) lib/rack/cache/context.rb:50:in `call'
airbrake (3.0.9) lib/airbrake/user_informer.rb:12:in `call'
railties (3.2.0) lib/rails/engine.rb:479:in `call'
railties (3.2.0) lib/rails/application.rb:220:in `call'
railties (3.2.0) lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:205:in `start_request_handler'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:170:in `block in handle_spawn_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:165:in `handle_spawn_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:180:in `start'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/rack/application_spawner.rb:128:in `start'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/home/rails/.rvm/gems/ruby-1.9.2-p290@global/gems/passenger-3.0.7/helper-scripts/passenger-spawn-server:99:in `<main>'
@manuelmeurer
Copy link
Author

The error was an out-of-date version of the redis-store gem.

@gaganawhad
Copy link

Awesome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment