Devise sign_out can't find correct route - ruby-on-rails

Any idea why this isn't working?
This is odd, because testing locally it works fine. I sign out, it redirects through Devise's sign_out process to my homepage. But on Heroku I get a page missing error.
The Heroku logs are a bit baffling:
2013-06-21T08:05:17.173706+00:00 app[web.1]: Started GET "/users/sign_out" for 115.87.109.249 at 2013-06-21 08:05:17 +0000
2013-06-21T08:05:17.173706+00:00 app[web.1]:
2013-06-21T0
8:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_controller/metal.rb:246:in `block in action'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
2013-06-21T08:05:17.176805+00:00 app[web.1]:
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_controller/metal.rb:203:in `dispatch'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.1/lib/warden/manager.rb:35:in `block in call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in `call'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/head.rb:14:in `call'
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `call'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.1/lib/warden/manager.rb:34:in `catch'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `_run__434936903609672590__call__3559819517956854473__callbacks'
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:36:in `call'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in `__run_callback'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:45:in `process'
2013-06-21T08:05:17.176805+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
2013-06-21T08:05:17.176966+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.1/lib/warden/manager.rb:34:in `call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/flash.rb:242:in `call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in `call!'
2013-06-21T08:05:17.178109+00:00 app[web.1]:
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in `lookup'
2013-06-21T08:05:17.178109+00:00 app[web.1]:
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/cookies.rb:338:in `call'
2013-06-21T08:05:17.177151+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.3/lib/active_record/query_cache.rb:64:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.3/lib/rails/engine.rb:479:in `call'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in `fetch'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in `forward'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.3/lib/rails/rack/logger.rb:26:in `call_app'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.3/lib/rails/rack/logger.rb:16:in `call'
2013-06-21T08:05:17.177608+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/request_id.rb:22:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.3/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.3/lib/action_dispatch/middleware/static.rb:62:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.3/lib/rails/application.rb:220:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-3.2.3/lib/rails/rack/log_tailer.rb:14:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2013-06-21T08:05:17.177775+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
2013-06-21T08:05:17.178109+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'

You should follow this wiki page
https://github.com/plataformatec/devise/wiki/How-To:-Add-sign_in,-sign_out,-and-sign_up-links-to-your-layout-template

I have found, you are trying to call /users/sign_out with GET method
2013-06-21T08:05:17.173706+00:00 app[web.1]: Started GET "/users/sign_out" for 115.87.109.249 at 2013-06-21 08:05:17 +0000
while devise create route for DELETE method .. have you created route for it?

Related

Websockets' EventMachine becomes 'not initialized' after a few minutes on Heroku

I've deployed my Rails app running Puma on Heroku. I am using the gem websockets-rails for live chat and notifications.
I've had some issues connecting to websockets (RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):) initially but I fixed that by adding
Thread.new { EventMachine.run } unless EventMachine.reactor_running? && EventMachine.reactor_thread.alive?
to a config/initializers/eventmachine.rb. Again, everything works fine locally when I run heroku local and doesn't timeout/become eventmachine not initialized after a few minutes.
However, every time I deploy/re-deploy on Heroku, WebSockets works fine for the first few minutes but fails afterwards. I get a WebSocket connection to 'wss://www.studbuds.com/websocket' failed: Error during WebSocket handshake: Unexpected response code: 500 error on the client-side and the stack trace
2016-01-20T17:59:12.672733+00:00 app[web.1]: RuntimeError (eventmachine not initialized: evma_install_oneshot_timer):
2016-01-20T17:59:12.672734+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_oneshot_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/eventmachine.rb:331:in `add_timer'
2016-01-20T17:59:12.672735+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:50:in `schedule'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.8/lib/em/timers.rb:37:in `initialize'
2016-01-20T17:59:12.672736+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `new'
2016-01-20T17:59:12.672737+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:167:in `start_ping_timer'
2016-01-20T17:59:12.672738+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:46:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters/web_socket.rb:10:in `initialize'
2016-01-20T17:59:12.672739+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `new'
2016-01-20T17:59:12.672740+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_adapters.rb:14:in `establish_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:78:in `open_connection'
2016-01-20T17:59:12.672741+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/websocket-rails-0.7.0/lib/websocket_rails/connection_manager.rb:55:in `call'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/mapper.rb:51:in `serve'
2016-01-20T17:59:12.672742+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-20T17:59:12.672743+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/routing/route_set.rb:819:in `call'
2016-01-20T17:59:12.672744+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:35:in `block in call'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `catch'
2016-01-20T17:59:12.672745+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.4/lib/warden/manager.rb:34:in `call'
2016-01-20T17:59:12.672746+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
2016-01-20T17:59:12.672747+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-20T17:59:12.672748+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-20T17:59:12.672749+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/query_cache.rb:36:in `call'
2016-01-20T17:59:12.672750+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.2.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:649:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `call'
2016-01-20T17:59:12.672751+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:88:in `_run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:776:in `_run_call_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-20T17:59:12.672752+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-20T17:59:12.672753+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-20T17:59:12.672757+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-20T17:59:12.672758+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/rack/logger.rb:20:in `call'
2016-01-20T17:59:12.672759+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/request_store-1.3.0/lib/request_store/middleware.rb:9:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-20T17:59:12.672760+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-20T17:59:12.672761+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/static.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-20T17:59:12.672762+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.2.1/lib/action_dispatch/middleware/ssl.rb:24:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/engine.rb:518:in `call'
2016-01-20T17:59:12.672763+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.2.1/lib/rails/application.rb:164:in `call'
2016-01-20T17:59:12.672764+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:541:in `handle_request'
2016-01-20T17:59:12.672765+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:388:in `process_client'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/server.rb:270:in `block in run'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `call'
2016-01-20T17:59:12.672766+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/puma-2.15.3/lib/puma/thread_pool.rb:106:in `block in spawn_thread'
If I restart the dynos, it works again but dies shortly after.
Note I'm use a Puma which is multi-threaded, so could it be that my application is not thread-safe?

Rails 4 - devise error in sign out action

I am trying to make an app with Rails 4.
I am trying (desperately) to setup devise (I have been trying, unsuccessfully for the past 3 years).
My app is on heroku.
When i am logged in, I try to press the sign out button. I get an error message telling me to check the logs.
The log output is:
2016-01-02T00:52:17.660202+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:57:in `sign_out'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660195+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/rememberable.rb:23:in `forget_me'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/lib/devise/controllers/sign_in_out.rb:75:in `sign_out_all_scopes'
2016-01-02T00:52:17.660208+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:505:in `call'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rendering.rb:10:in `process_action'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:262:in `block in logout'
2016-01-02T00:52:17.660206+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660201+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `logout'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
2016-01-02T00:52:17.660199+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:53:in `_run_callbacks'
2016-01-02T00:52:17.660205+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
2016-01-02T00:52:17.660198+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:9:in `each'
2016-01-02T00:52:17.660204+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:198:in `process_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660165+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
2016-01-02T00:52:17.660196+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `call'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/devise-3.4.1/app/controllers/devise/sessions_controller.rb:25:in `destroy'
2016-01-02T00:52:17.660209+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
2016-01-02T00:52:17.660174+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:285:in `save'
2016-01-02T00:52:17.660200+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/proxy.rb:260:in `each'
2016-01-02T00:52:17.660207+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:117:in `call'
2016-01-02T00:52:17.660167+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/transactions.rb:220:in `transaction'
2016-01-02T00:52:17.660197+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/hooks.rb:14:in `block in _run_callbacks'
2016-01-02T00:52:17.660203+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2016-01-02T00:52:17.660210+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
2016-01-02T00:52:17.660215+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2016-01-02T00:52:17.660211+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/callbacks.rb:19:in `process_action'
2016-01-02T00:52:17.660218+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/abstract_controller/base.rb:137:in `process'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
2016-01-02T00:52:17.660214+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2016-01-02T00:52:17.660224+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:237:in `block in action'
2016-01-02T00:52:17.660212+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/rescue.rb:29:in `process_action'
2016-01-02T00:52:17.660217+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
2016-01-02T00:52:17.660225+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:76:in `call'
2016-01-02T00:52:17.660213+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/notifications.rb:164:in `block in instrument'
2016-01-02T00:52:17.660223+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_controller/metal.rb:196:in `dispatch'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/mapper.rb:49:in `serve'
2016-01-02T00:52:17.660219+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionview-4.2.4/lib/action_view/rendering.rb:30:in `process'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `serve'
2016-01-02T00:52:17.660216+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/searchkick-1.1.2/lib/searchkick/logging.rb:108:in `process_action'
2016-01-02T00:52:17.660227+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:43:in `block in serve'
2016-01-02T00:52:17.660226+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:45:in `serve'
2016-01-02T00:52:17.660228+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/journey/router.rb:30:in `each'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660229+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/routing/route_set.rb:821:in `call'
2016-01-02T00:52:17.660231+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660234+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660235+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2016-01-02T00:52:17.660230+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2016-01-02T00:52:17.660232+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/flash.rb:260:in `call'
2016-01-02T00:52:17.660233+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
2016-01-02T00:52:17.660241+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/cookies.rb:560:in `call'
2016-01-02T00:52:17.660239+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
2016-01-02T00:52:17.660236+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2016-01-02T00:52:17.660243+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2016-01-02T00:52:17.660238+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:in `call'
2016-01-02T00:52:17.660244+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
2016-01-02T00:52:17.660237+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2016-01-02T00:52:17.660242+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord-4.2.4/lib/active_record/query_cache.rb:36:in `call'
2016-01-02T00:52:17.660247+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:38:in `call_app'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2016-01-02T00:52:17.660253+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/engine.rb:518:in `call'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:68:in `block in tagged'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
2016-01-02T00:52:17.660250+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `block in call'
2016-01-02T00:52:17.660257+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
2016-01-02T00:52:17.660251+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/tagged_logging.rb:26:in `tagged'
2016-01-02T00:52:17.660259+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/application.rb:165:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activesupport-4.2.4/lib/active_support/callbacks.rb:81:in `run_callbacks'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/railties-4.2.4/lib/rails/rack/logger.rb:20:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
2016-01-02T00:52:17.660245+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:94:in `run'
2016-01-02T00:52:17.660246+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
2016-01-02T00:52:17.660252+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2016-01-02T00:52:17.660260+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
2016-01-02T00:52:17.660258+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/actionpack-4.2.4/lib/action_dispatch/middleware/static.rb:116:in `call'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
2016-01-02T00:52:17.660263+00:00 app[web.1]:
2016-01-02T00:52:17.660261+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/httpserver.rb:138:in `service'
2016-01-02T00:52:17.660262+00:00 app[web.1]: vendor/ruby-2.2.2/lib/ruby/2.2.0/webrick/server.rb:294:in `block in start_thread'
I don't understand a word of this message. Can anyone decipher what it means?
My routes are:
devise_for :users, #class_name: 'FormUser',
:controllers => {
:registrations => "users/registrations",
# :omniauth_callbacks => "users/authentications"
:omniauth_callbacks => 'users/omniauth_callbacks'
}
# get '/auth/:provider/callback' => 'users/authentications#create'
# get '/authentications/sign_out', :to => 'users/authentications#destroy'
# PER SOURCEY TUTORIAL ----------
match '/users/:id/finish_signup' => 'users#finish_signup', via: [:get, :patch], :as => :finish_signup
I don't have a specific sign out path defined in the routes. The sourcey tutorial I'm following doesnt use one and I understood this was part of the devise gem functionality.
My rake routes shows:
destroy_user_session DELETE /users/sign_out(.:format) devise/sessions#destroy
The nav bar has a sign out link as:
<%= link_to "Sign out", destroy_user_session_path, :method => :delete %>

Apartment::SchemaNotFound when trying to deploy multi-tenancy Rails app on Heroku

I have been working on an app locally for a while now, and I've matched my development environment to that on Heroku as closely as I can.
The app is set up for multi-tenancy using Apartment (https://github.com/influitive/apartment), and designed to use subdomains to identify tenants. Both environments use postgres, and Apartment has been using schemas to manage the 'tanants' data.
This evening, I have attempted to push the code to Heroku (the same app before it became multi-tenancy worked beautifully), and no pages load, all give an error.
I've taken a look at the logs, and the most interesting line I can find is; Apartment::SchemaNotFound (One of the following schema(s) is invalid: heroku-app-name, "public"):
This certainly seems to be a peculiarity of Heroku, but I'm struggling for ideas on where to look next.
Any suggestions or help would be appreciated.
I've included all of the logs for reference;
2014-04-04T18:27:09.884367+00:00 app[web.1]: Apartment::SchemaNotFound (One of the following schema(s) is invalid: heroku-app-name, "public"):
2014-04-04T18:27:09.884368+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/postgresql_adapter.rb:95:in `rescue in connect_to_new'
2014-04-04T18:27:09.884384+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-04-04T18:27:09.884362+00:00 app[web.1]:
2014-04-04T18:27:09.884385+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:25:in `call'
2014-04-04T18:27:09.884364+00:00 app[web.1]: I, [2014-04-04T18:27:09.879482 #2] INFO -- : Started GET "/favicon.ico" for 92.25.163.224 at 2014-04-04 18:27:09 +0000
2014-04-04T18:27:09.884388+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-04-04T18:27:09.884389+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/flash.rb:241:in `call'
2014-04-04T18:27:09.884366+00:00 app[web.1]: F, [2014-04-04T18:27:09.884136 #2] FATAL -- :
2014-04-04T18:27:09.884370+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/postgresql_adapter.rb:88:in `connect_to_new'
2014-04-04T18:27:09.884381+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
2014-04-04T18:27:09.884371+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/adapters/abstract_adapter.rb:100:in `switch'
2014-04-04T18:27:09.884383+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
2014-04-04T18:27:09.884396+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
2014-04-04T18:27:09.884372+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/apartment-0.24.3/lib/apartment/elevators/generic.rb:20:in `call'
2014-04-04T18:27:09.884387+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-04-04T18:27:09.884398+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-04-04T18:27:09.884403+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-04-04T18:27:09.884391+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-04-04T18:27:09.884392+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-04-04T18:27:09.884399+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:373:in `_run__2212192162733263500__call__callbacks'
2014-04-04T18:27:09.884400+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-04-04T18:27:09.884393+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/cookies.rb:486:in `call'
2014-04-04T18:27:09.884402+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-04-04T18:27:09.884406+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-04-04T18:27:09.884379+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
2014-04-04T18:27:09.884395+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.0/lib/active_record/query_cache.rb:36:in `call'
2014-04-04T18:27:09.884409+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `block in call'
2014-04-04T18:27:09.884407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:38:in `call_app'
2014-04-04T18:27:09.884410+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2014-04-04T18:27:09.884404+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-04-04T18:27:09.884430+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:67:in `tagged'
2014-04-04T18:27:09.884431+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/rack/logger.rb:21:in `call'
2014-04-04T18:27:09.884432+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-04-04T18:27:09.884428+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/tagged_logging.rb:25:in `tagged'
2014-04-04T18:27:09.884435+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-04-04T18:27:09.884444+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:97:in `call'
2014-04-04T18:27:09.884434+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-04-04T18:27:09.884437+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-04-04T18:27:09.884442+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:511:in `call'
2014-04-04T18:27:09.884445+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-04-04T18:27:09.884448+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-04-04T18:27:09.884446+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-04-04T18:27:09.884450+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-04-04T18:27:09.884451+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-04-04T18:27:09.884452+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Take a look at your apartment initializer and remove the subdomain elevator settings. i commented out everything related to elevator. since your app is probably on a heroku subdomain, the elevator setting will try to load that particular tenant from the db and will issue that error.
it worked fine for me after i commented
# Rails.application.config.middleware.use 'Apartment::Elevators::Subdomain'

Internal Server Error while submitting devise login form on heroku

I am getting internal server 500 while submitting devise login form. In heroku logs, it says that Can't verify CSRF token authenticity , but I do have CSRF token in login form and this is completely working on my localhost.
Heroku logs
2014-02-18T22:12:55.779665+00:00 app[web.1]: Started POST "/users/sign_in" for 0.0.0.0 at 2014-02-18 22:12:55 +0000
2014-02-18T22:12:55.779665+00:00 app[web.1]: Started POST "/users/sign_in" for 0.0.0.0 at 2014-02-18 22:12:55 +0000
2014-02-18T22:12:55.785405+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-02-18T22:12:55.785405+00:00 app[web.1]: Processing by Devise::SessionsController#create as HTML
2014-02-18T22:12:55.785405+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"rEKLcjNF7KlhQOfOCMW5azPIpFZWFsLWRfgsFQVcmcs=", "user"=>{"email"=>"test#email.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
2014-02-18T22:12:55.785405+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"rEKLcjNF7KlhQOfOCMW5azPIpFZWFsLWRfgsFQVcmcs=", "user"=>{"email"=>"test#email.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
2014-02-18T22:12:55.786314+00:00 app[web.1]: Can't verify CSRF token authenticity
2014-02-18T22:12:55.786314+00:00 app[web.1]: Can't verify CSRF token authenticity
2014-02-18T22:12:55.789168+00:00 app[web.1]: Completed 401 Unauthorized in 4ms
2014-02-18T22:12:55.789243+00:00 app[web.1]: Completed 401 Unauthorized in 4ms
2014-02-18T22:12:55.790658+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-02-18T22:12:55.790658+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2014-02-18T22:12:55.790781+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"rEKLcjNF7KlhQOfOCMW5azPIpFZWFsLWRfgsFQVcmcs=", "user"=>{"email"=>"test#email.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
2014-02-18T22:12:55.790833+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"rEKLcjNF7KlhQOfOCMW5azPIpFZWFsLWRfgsFQVcmcs=", "user"=>{"email"=>"test#email.com", "password"=>"[FILTERED]"}, "commit"=>"Sign in"}
2014-02-18T22:12:55.791437+00:00 app[web.1]: Can't verify CSRF token authenticity
2014-02-18T22:12:55.791437+00:00 app[web.1]: Can't verify CSRF token authenticity
2014-02-18T22:12:55.791897+00:00 app[web.1]: Completed 500 Internal Server Error in 1ms
2014-02-18T22:12:55.791897+00:00 app[web.1]: Completed 500 Internal Server Error in 1ms
2014-02-18T22:12:55.794553+00:00 app[web.1]:
2014-02-18T22:12:55.794553+00:00 app[web.1]: NoMethodError (undefined method `destroy_session' for nil:NilClass):
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:85:in `destroy'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/http/request.rb:257:in `reset_session'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/rails/warden_compat.rb:8:in `reset_session!'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:268:in `logout'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/controllers/helpers.rb:168:in `sign_out_all_scopes'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/controllers/helpers.rb:275:in `handle_unverified_request'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/request_forgery_protection.rb:177:in `verify_authenticity_token'
2014-02-18T22:12:55.794553+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:417:in `_run__3351252874345740854__process_action__callbacks'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
2014-02-18T22:12:55.794731+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:44:in `process'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:51:in `call'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:51:in `recall'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:35:in `respond'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:189:in `process_action'
2014-02-18T22:12:55.794895+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
2014-02-18T22:12:55.799047+00:00 heroku[router]: at=info method=POST path=/users/sign_in host=advertype-akhil.herokuapp.com request_id=a4583a05-850d-43f8-bba4-a7f9e4065005 fwd="49.249.135.78" dyno=web.1 connect=3ms service=24ms status=500 bytes=722
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:20:in `call'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:20:in `call'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/delegator.rb:5:in `call'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:130:in `call_failure_app'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:116:in `process_unauthenticated'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:47:in `call'
2014-02-18T22:12:55.795426+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/flash.rb:241:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/cookies.rb:486:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/query_cache.rb:36:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
2014-02-18T22:12:55.795656+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:373:in `_run__2905009366359532870__call__callbacks'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2014-02-18T22:12:55.796115+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
2014-02-18T22:12:55.796407+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/deflater.rb:25:in `call'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-02-18T22:12:55.796851+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
2014-02-18T22:12:55.796851+00:00 app[web.1]:
2014-02-18T22:12:55.796851+00:00 app[web.1]:
2014-02-18T22:12:55.797107+00:00 app[web.1]:
2014-02-18T22:12:55.797107+00:00 app[web.1]: NoMethodError (undefined method `destroy_session' for nil:NilClass):
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:85:in `destroy'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/http/request.rb:257:in `reset_session'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/rails/warden_compat.rb:8:in `reset_session!'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/proxy.rb:268:in `logout'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/controllers/helpers.rb:168:in `sign_out_all_scopes'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/controllers/helpers.rb:275:in `handle_unverified_request'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/request_forgery_protection.rb:177:in `verify_authenticity_token'
2014-02-18T22:12:55.797107+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:417:in `_run__3351252874345740854__process_action__callbacks'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/callbacks.rb:17:in `process_action'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rescue.rb:29:in `process_action'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `block in instrument'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/notifications.rb:159:in `instrument'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
2014-02-18T22:12:55.797713+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/rendering.rb:44:in `process'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:51:in `call'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:51:in `recall'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:35:in `respond'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:189:in `process_action'
2014-02-18T22:12:55.797967+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/abstract_controller/base.rb:136:in `process'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:195:in `dispatch'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_controller/metal.rb:231:in `block in action'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:20:in `call'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/failure_app.rb:20:in `call'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/devise-3.0.0/lib/devise/delegator.rb:5:in `call'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:130:in `call_failure_app'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:116:in `process_unauthenticated'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/warden-1.2.3/lib/warden/manager.rb:47:in `call'
2014-02-18T22:12:55.798611+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/etag.rb:23:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/conditionalget.rb:35:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/head.rb:11:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/flash.rb:241:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:225:in `context'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/session/abstract/id.rb:220:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/cookies.rb:486:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/query_cache.rb:36:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:626:in `call'
2014-02-18T22:12:55.798959+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:373:in `_run__2905009366359532870__call__callbacks'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/callbacks.rb:80:in `run_callbacks'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/remote_ip.rb:76:in `call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:38:in `call_app'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `block in call'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `block in tagged'
2014-02-18T22:12:55.799587+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:25:in `tagged'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/tagged_logging.rb:67:in `tagged'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/rack/logger.rb:20:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/request_id.rb:21:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/methodoverride.rb:21:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/runtime.rb:17:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.2/lib/active_support/cache/strategy/local_cache.rb:83:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.2/lib/action_dispatch/middleware/static.rb:64:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/sendfile.rb:112:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/engine.rb:511:in `call'
2014-02-18T22:12:55.799819+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/application.rb:97:in `call'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/deflater.rb:25:in `call'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/lock.rb:17:in `call'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/content_length.rb:14:in `call'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:60:in `service'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
2014-02-18T22:12:55.800374+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Any help and suggestions are really appreciable, Thanks.
I can't comment as I don't have enough votes but here is the answer from earlier SO post that had same issue like your's on Heroku platform:
Rails: CSRF token not working but setup
Hope this helps.

How do I fix this mysterious Heroku error that has no specific error that I can identify?

Forgive me if this is a duplicate of another post, but I can't seem to identify anything in this error log that I recognize as fixable. Generally, the topmost error is something in my rails app, and something that I can address. In this case, I havent a clue.
2012-06-04T03:53:58+00:00 app[web.1]:
2012-06-04T03:53:58+00:00 app[web.1]:
2012-06-04T03:53:58+00:00 app[web.1]: Started GET "/tasks.json" for 24.131.239.67 at 2012-06-03 20:53:58 -0700
2012-06-04T03:53:58+00:00 app[web.1]: Processing by TasksController#index as JSON
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:150:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rendering.rb:11:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:451:in `_run__3347105819948830800__process_action__6324466216974895__callbacks'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:94:in `run_callbacks'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/callbacks.rb:17:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rescue.rb:17:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `block in instrument'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/notifications.rb:52:in `instrument'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `block in perform_action_with_newrelic_trace'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in `perform_action_with_newrelic_trace'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/base.rb:119:in `process'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/abstract_controller/rendering.rb:41:in `process'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb:138:in `dispatch'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_controller/metal.rb:178:in `block in action'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:27:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in `block in recognize'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:68:in `optimized_each'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in `recognize'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/routing/route_set.rb:493:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/vendor/plugins/rpm/lib/new_relic/rack/browser_monitoring.rb:23:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/warden-1.2.0/lib/warden/manager.rb:35:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/warden-1.2.0/lib/warden/manager.rb:34:in `catch'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/warden-1.2.0/lib/warden/manager.rb:34:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/head.rb:14:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/flash.rb:182:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/cookies.rb:302:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:32:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:12:in `cache'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/query_cache.rb:31:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activerecord-3.0.10/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:46:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/activesupport-3.0.10/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/sendfile.rb:106:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.10/lib/rails/rack/logger.rb:13:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/runtime.rb:17:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/lock.rb:13:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: <internal:prelude>:10:in `synchronize'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/lock.rb:13:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/actionpack-3.0.10/lib/action_dispatch/middleware/static.rb:30:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/airbrake-3.1.0/lib/airbrake/rack.rb:30:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/airbrake-3.1.0/lib/airbrake/user_informer.rb:12:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:168:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/railties-3.0.10/lib/rails/application.rb:77:in `method_missing'
2012-06-04T03:53:58+00:00 app[web.1]: /home/heroku_rack/lib/static_assets.rb:9:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /home/heroku_rack/lib/last_access.rb:15:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/urlmap.rb:47:in `block in call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/urlmap.rb:41:in `each'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/urlmap.rb:41:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /home/heroku_rack/lib/date_header.rb:14:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /app/.bundle/gems/ruby/1.9.1/gems/rack-1.2.5/lib/rack/builder.rb:77:in `call'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:76:in `block in pre_process'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:74:in `catch'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:74:in `pre_process'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:57:in `process'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/connection.rb:42:in `receive_data'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run_machine'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in `run'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/backends/base.rb:57:in `start'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/server.rb:156:in `start'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/controllers/controller.rb:80:in `start'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:177:in `run_command'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/lib/thin/runner.rb:143:in `run!'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/lib/ruby/gems/1.9.1/gems/thin-1.2.6/bin/thin:6:in `<top (required)>'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/bin/thin:19:in `load'
2012-06-04T03:53:58+00:00 app[web.1]: /usr/ruby1.9.2/bin/thin:19:in `<main>'
2012-06-04T03:53:58+00:00 app[web.1]: Completed 200 OK in 166ms (Views: 16.4ms | ActiveRecord: 71.9ms)
It seems to be a new-relic related error. Have you followed herokus' installation instructions?

Resources