An error happened when login: InvalidAuthenticityToken


#1

hi,
I use puma to run manageiq in production mode. The code is checkout to “darga-1-beta1” tag.
When I login, I encounter this error:

[----] W, [2016-05-27T02:09:42.663740 #2904:73f758] WARN – : Can’t verify CSRF token authenticity.
[----] F, [2016-05-27T02:09:42.664072 #2904:73f758] FATAL – : Error caught: [ActionController::InvalidAuthenticityToken] ActionController::InvalidAuthenticityToken
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/request_forgery_protection.rb:195:in handle_unverified_request' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/request_forgery_protection.rb:223:inhandle_unverified_request’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/request_forgery_protection.rb:218:in verify_authenticity_token' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:382:inblock in make_lambda’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:150:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:150:inblock (2 levels) in halting_and_conditional’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/abstract_controller/callbacks.rb:12:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/abstract_controller/callbacks.rb:12:inblock (2 levels) in module:Callbacks
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:151:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:151:inblock in halting_and_conditional’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:454:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:454:inblock in call’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:454:in each' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:454:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:101:in __run_callbacks__' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:750:in_run_process_action_callbacks’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:90:in run_callbacks' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/abstract_controller/callbacks.rb:19:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/rescue.rb:31:in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/instrumentation.rb:32:inblock in process_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/notifications.rb:164:in block in instrument' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/notifications/instrumenter.rb:21:ininstrument’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/notifications.rb:164:in instrument' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/instrumentation.rb:30:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal/params_wrapper.rb:248:in process_action' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activerecord/lib/active_record/railties/controller_runtime.rb:18:inprocess_action’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/abstract_controller/base.rb:126:in process' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionview/lib/action_view/rendering.rb:30:inprocess’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal.rb:190:in dispatch' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_controller/metal.rb:262:indispatch’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/routing/route_set.rb:50:in dispatch' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/routing/route_set.rb:32:inserve’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/journey/router.rb:39:in block in serve' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/journey/router.rb:26:ineach’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/journey/router.rb:26:in serve' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/routing/route_set.rb:739:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:186:in call!' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/omniauth-1.3.1/lib/omniauth/strategy.rb:164:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/omniauth-1.3.1/lib/omniauth/builder.rb:63:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/secure_headers-3.0.3/lib/secure_headers/middleware.rb:10:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/etag.rb:25:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/conditional_get.rb:38:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/head.rb:12:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:220:incontext’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/session/abstract/id.rb:214:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/cookies.rb:613:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/callbacks.rb:38:in block in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:97:inrun_callbacks
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:750:in _run_call_callbacks' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/callbacks.rb:90:inrun_callbacks’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/callbacks.rb:36:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/remote_ip.rb:79:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/debug_exceptions.rb:49:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/show_exceptions.rb:31:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/railties/lib/rails/rack/logger.rb:36:in call_app' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/railties/lib/rails/rack/logger.rb:26:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/request_id.rb:24:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/method_override.rb:22:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/runtime.rb:22:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/activesupport/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/actionpack/lib/action_dispatch/middleware/executor.rb:12:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/rack-2.0.0.alpha/lib/rack/sendfile.rb:111:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/bundler/gems/rails-3ff6b800f2fc/railties/lib/rails/engine.rb:522:incall’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/configuration.rb:224:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/server.rb:561:inhandle_request’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/server.rb:406:in process_client' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/server.rb:271:inblock in run’
/opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:in call' /opt/rubies/ruby-2.2.4/lib/ruby/gems/2.2.0/gems/puma-3.3.0/lib/puma/thread_pool.rb:111:inblock in spawn_thread’

Does any one meet the same problem?
Thank you!!


#2

@gtanzillo can you review this question from @wangxiangyu and forward to a SME if necessary.


#3

@jprause hi, will you please review this question?


#4

Hi @wangxiangyu,…thanks, I did review,…and I’m waiting for a subject matter expert to also review.