Skip to content

Instantly share code, notes, and snippets.

@benton
Last active August 29, 2015 14:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benton/22de911bf87f1cfe5d39 to your computer and use it in GitHub Desktop.
Save benton/22de911bf87f1cfe5d39 to your computer and use it in GitHub Desktop.
localhost medistrano login error
Filter redirecting to "/auth/google_oauth2"
==================================================
Redirected to http://localhost:3000/auth/google_oauth2
Filter chain halted as :google_filter rendered or redirected
Completed 302 Found in 15.1ms (ActiveRecord: 0.7ms)
Started GET "/auth/google_oauth2" for 127.0.0.1 at 2015-08-17 12:55:26 -0700
(google_oauth2) Request phase initiated.
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/mdsol-tools-a579688d034a/lib/mdsol_uri.rb:93:in `generate'
/home/benton/projects/medidata/medistrano/lib/maudit/maudit_client.rb:60:in `where_uri'
/home/benton/projects/medidata/medistrano/lib/maudit/maudit_client.rb:73:in `make_audit!'
/home/benton/projects/medidata/medistrano/lib/auditable.rb:42:in `after_audit'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__1364919866869175070__audit__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_audit_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/audited-3.0.0/lib/audited/auditor.rb:216:in `write_audit'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/audited-3.0.0/lib/audited/auditor.rb:203:in `audit_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:407:in `_run__1364919866869175070__update__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_update_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:272:in `update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:348:in `create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:425:in `_run__1364919866869175070__save__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:104:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/validations.rb:56:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `block in save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `save!'
/home/benton/projects/medidata/medistrano/app/models/user.rb:234:in `update_google_token'
/home/benton/projects/medidata/medistrano/lib/google_login.rb:187:in `verify_token?'
/home/benton/projects/medidata/medistrano/lib/google_login.rb:59:in `filter'
/home/benton/projects/medidata/medistrano/lib/authenticated_system.rb:39:in `run_filter'
/home/benton/projects/medidata/medistrano/lib/authenticated_system.rb:15:in `filter'
/home/benton/projects/medidata/medistrano/app/controllers/application_controller.rb:20:in `google_filter'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:419:in `block in _run__3135569211666150390__process_action__3006592624096028562__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_1158'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:326:in `around'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:310:in `_callback_around_15'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_1158'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:414:in `_run__3135569211666150390__process_action__3006592624096028562__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246:in `block in action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:404:in `call_app!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:362:in `callback_phase'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-oauth2-1.1.2/lib/omniauth/strategies/oauth2.rb:77:in `callback_phase'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:227:in `callback_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:184:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-active_record_status-0.4/lib/rack/active_record_status.rb:11:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/etag.rb:23:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/conditionalget.rb:25:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:210:in `context'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:205:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__3210831494682221153__call__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:84:in `protected_app_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:79:in `better_errors_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:57:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:32:in `call_app'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/quiet_assets-1.1.0/lib/quiet_assets.rb:27:in `call_with_quiet_assets'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/methodoverride.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/runtime.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/lock.rb:15:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/engine.rb:484:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/application.rb:231:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/content_length.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/log_tailer.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/handler/thin.rb:13:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/server.rb:268:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands/server.rb:70:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:55:in `block in <top (required)>'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `tap'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `<top (required)>'
./script/rails:6:in `require'
./script/rails:6:in `<main>'
Started GET "/auth/google_oauth2/callback?state=13aaa1a28231e58f90aaea8ef2cd9ed64a25f5b8bc8a0367&code=4/x1HwamocZQ5bqx-Sz8o6QAoNpcnhJZ33-aAq7DVB5D8" for 127.0.0.1 at 2015-08-17 12:55:31 -0700
(google_oauth2) Callback phase initiated.
Processing by UsersController#google_apps_token as HTML
Parameters: {"state"=>"13aaa1a28231e58f90aaea8ef2cd9ed64a25f5b8bc8a0367", "code"=>"4/x1HwamocZQ5bqx-Sz8o6QAoNpcnhJZ33-aAq7DVB5D8"}
==================================================
USERNAME:
UNKNOWN
DEBUG:
Starting google authentication filter
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
No google token in the session; assume we are receiving the token via google callback
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Start verification of google token
==================================================
User Load (0.4ms) SELECT `users`.* FROM `users` WHERE (lower(email) = 'broberts@mdsol.com') LIMIT 1
(0.3ms) BEGIN
User Exists (0.4ms) SELECT 1 AS one FROM `users` WHERE (`users`.`login` = 'broberts' AND `users`.`id` != 6) LIMIT 1
User Exists (0.3ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = 'broberts@mdsol.com' AND `users`.`id` != 6) LIMIT 1
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
(0.4ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 6 AND `audits`.`auditable_type` = 'User'
User Load (0.3ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'broberts@mdsol.com' LIMIT 1
SQL (0.3ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('update', NULL, NULL, 6, 'User', '---\n:action: :update\n:change_list:\n- field: google_token\n new: 1/m42nGtpPwrEHxbZCp6VcpwsQo1NY3ajwN2S0ig81cW9IgOrJDtdun6zK6XiATCKT\n old: 1/WdYVxqF8dl-zEkCWtte121y2piEuOS3W0jwgBxfDF-E\n', NULL, '2015-08-17 19:55:32', '127.0.0.1', 6, 'User', NULL, 7)
(8.0ms) ROLLBACK
==================================================
USERNAME:
UNKNOWN
ERROR:
Unable to save google token for broberts@mdsol.com: undefined method `uuid' for nil:NilClass
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Google token provided, but not verified; filter exiting with FAILED status
==================================================
Redirected to http://localhost:3000/
Filter chain halted as AuthenticatedSystem::ResetRequestFilter rendered or redirected
Completed 302 Found in 683.5ms (ActiveRecord: 14.3ms)
Started GET "/" for 127.0.0.1 at 2015-08-17 12:55:32 -0700
Processing by ProjectsController#index as HTML
==================================================
USERNAME:
UNKNOWN
DEBUG:
Starting google authentication filter
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Google filter has status FAILED, so exiting.
==================================================
Redirected to http://localhost:3000/sessions/new
Filter chain halted as :login_required rendered or redirected
Completed 302 Found in 3.1ms (ActiveRecord: 0.0ms)
Started GET "/sessions/new" for 127.0.0.1 at 2015-08-17 12:55:32 -0700
Processing by SessionsController#new as HTML
==================================================
USERNAME:
UNKNOWN
DEBUG:
Starting google authentication filter
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
No google token in the session; assume we are receiving the token via google callback
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Start verification of google token
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
No google token was provided!
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Redirecting to retrieve google token: action /sessions/new
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Filter redirecting to "/auth/google_oauth2"
==================================================
Redirected to http://localhost:3000/auth/google_oauth2
Filter chain halted as :google_filter rendered or redirected
Completed 302 Found in 0.8ms (ActiveRecord: 0.0ms)
Started GET "/auth/google_oauth2" for 127.0.0.1 at 2015-08-17 12:55:32 -0700
(google_oauth2) Request phase initiated.
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/bundler/gems/mdsol-tools-a579688d034a/lib/mdsol_uri.rb:93:in `generate'
/home/benton/projects/medidata/medistrano/lib/maudit/maudit_client.rb:60:in `where_uri'
/home/benton/projects/medidata/medistrano/lib/maudit/maudit_client.rb:73:in `make_audit!'
/home/benton/projects/medidata/medistrano/lib/auditable.rb:42:in `after_audit'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__1364919866869175070__audit__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_audit_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/audited-3.0.0/lib/audited/auditor.rb:216:in `write_audit'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/audited-3.0.0/lib/audited/auditor.rb:203:in `audit_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:407:in `_run__1364919866869175070__update__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_update_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:272:in `update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:348:in `create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `block in create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:425:in `_run__1364919866869175070__save__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/callbacks.rb:264:in `create_or_update'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/persistence.rb:104:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/validations.rb:56:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `block in save!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:208:in `transaction'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/transactions.rb:264:in `save!'
/home/benton/projects/medidata/medistrano/app/models/user.rb:234:in `update_google_token'
/home/benton/projects/medidata/medistrano/lib/google_login.rb:187:in `verify_token?'
/home/benton/projects/medidata/medistrano/lib/google_login.rb:59:in `filter'
/home/benton/projects/medidata/medistrano/lib/authenticated_system.rb:39:in `run_filter'
/home/benton/projects/medidata/medistrano/lib/authenticated_system.rb:15:in `filter'
/home/benton/projects/medidata/medistrano/app/controllers/application_controller.rb:20:in `google_filter'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:419:in `block in _run__3135569211666150390__process_action__3006592624096028562__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_1158'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:326:in `around'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:310:in `_callback_around_15'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_1158'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:414:in `_run__3135569211666150390__process_action__3006592624096028562__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246:in `block in action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:404:in `call_app!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:362:in `callback_phase'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-oauth2-1.1.2/lib/omniauth/strategies/oauth2.rb:77:in `callback_phase'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:227:in `callback_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:184:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-active_record_status-0.4/lib/rack/active_record_status.rb:11:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/etag.rb:23:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/conditionalget.rb:25:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:210:in `context'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:205:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__3210831494682221153__call__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:84:in `protected_app_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:79:in `better_errors_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:57:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:32:in `call_app'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/quiet_assets-1.1.0/lib/quiet_assets.rb:27:in `call_with_quiet_assets'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/methodoverride.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/runtime.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/lock.rb:15:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/engine.rb:484:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/application.rb:231:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/content_length.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/log_tailer.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/handler/thin.rb:13:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/server.rb:268:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands/server.rb:70:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:55:in `block in <top (required)>'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `tap'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `<top (required)>'
./script/rails:6:in `require'
./script/rails:6:in `<main>'
Started GET "/auth/google_oauth2/callback?state=4f0f50d05d7abcd99d3c8adae49185c682db10134f34378a&code=4/fbfc42SKFYTo7jOxKuw1zwoNpcnhJZ33-aAq7DVB5D8" for 127.0.0.1 at 2015-08-17 12:55:38 -0700
(google_oauth2) Callback phase initiated.
Processing by UsersController#google_apps_token as HTML
Parameters: {"state"=>"4f0f50d05d7abcd99d3c8adae49185c682db10134f34378a", "code"=>"4/fbfc42SKFYTo7jOxKuw1zwoNpcnhJZ33-aAq7DVB5D8"}
==================================================
USERNAME:
UNKNOWN
DEBUG:
Starting google authentication filter
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
No google token in the session; assume we are receiving the token via google callback
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Start verification of google token
==================================================
User Load (0.9ms) SELECT `users`.* FROM `users` WHERE (lower(email) = 'broberts@mdsol.com') LIMIT 1
(0.4ms) BEGIN
User Exists (0.8ms) SELECT 1 AS one FROM `users` WHERE (`users`.`login` = 'broberts' AND `users`.`id` != 6) LIMIT 1
User Exists (0.6ms) SELECT 1 AS one FROM `users` WHERE (`users`.`email` = 'broberts@mdsol.com' AND `users`.`id` != 6) LIMIT 1
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = 6 LIMIT 1
(0.7ms) SELECT MAX(`audits`.`version`) AS max_id FROM `audits` WHERE `audits`.`auditable_id` = 6 AND `audits`.`auditable_type` = 'User'
User Load (0.6ms) SELECT `users`.* FROM `users` WHERE `users`.`email` = 'broberts@mdsol.com' LIMIT 1
SQL (0.7ms) INSERT INTO `audits` (`action`, `associated_id`, `associated_type`, `auditable_id`, `auditable_type`, `audited_changes`, `comment`, `created_at`, `remote_address`, `user_id`, `user_type`, `username`, `version`) VALUES ('update', NULL, NULL, 6, 'User', '---\n:action: :update\n:change_list:\n- field: google_token\n new: 1/ZDvAg2H7caZibFeZI0VlmpszYNs5X6qriTi5OF9POsnBactUREZofsF9C7PrpE-j\n old: 1/WdYVxqF8dl-zEkCWtte121y2piEuOS3W0jwgBxfDF-E\n', NULL, '2015-08-17 19:55:40', '127.0.0.1', 6, 'User', NULL, 7)
(9.9ms) ROLLBACK
==================================================
USERNAME:
UNKNOWN
ERROR:
Unable to save google token for broberts@mdsol.com: undefined method `uuid' for nil:NilClass
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Google token provided, but not verified; filter exiting with FAILED status
==================================================
Redirected to http://localhost:3000/sessions/new
Filter chain halted as AuthenticatedSystem::ResetRequestFilter rendered or redirected
Completed 302 Found in 632.0ms (ActiveRecord: 15.2ms)
Started GET "/sessions/new" for 127.0.0.1 at 2015-08-17 12:55:40 -0700
Processing by SessionsController#new as HTML
==================================================
USERNAME:
UNKNOWN
DEBUG:
Starting google authentication filter
==================================================
==================================================
USERNAME:
UNKNOWN
DEBUG:
Google filter has status FAILED, so exiting.
==================================================
==================================================
USERNAME:
UNKNOWN
ERROR:
Exception Class: NoMethodError
Unhandled exception: undefined method `uri' for :false:Symbol (from NoMethodError)
Backtrace:
/home/benton/projects/medidata/medistrano/app/models/user.rb:59:in `current='
/home/benton/projects/medidata/medistrano/app/controllers/application_controller.rb:110:in `set_current_user'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:496:in `block in _run__2159293581913844757__process_action__307483012104988092__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:215:in `block in _conditional_callback_around_1166'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:326:in `around'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:310:in `_callback_around_15'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:214:in `_conditional_callback_around_1166'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:414:in `_run__2159293581913844757__process_action__307483012104988092__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `block in instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/notifications.rb:123:in `instrument'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/base.rb:121:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/abstract_controller/rendering.rb:45:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:203:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_controller/metal.rb:246:in `block in action'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:186:in `call!'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/strategy.rb:164:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/omniauth-1.2.2/lib/omniauth/builder.rb:59:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-active_record_status-0.4/lib/rack/active_record_status.rb:11:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/etag.rb:23:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/conditionalget.rb:25:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:210:in `context'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/session/abstract/id.rb:205:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/query_cache.rb:64:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activerecord-3.2.22/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `_run__3210831494682221153__call__2071441115348320499__callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:84:in `protected_app_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:79:in `better_errors_call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/better_errors-2.1.1/lib/better_errors/middleware.rb:57:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:32:in `call_app'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `block in call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/logger.rb:16:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/quiet_assets-1.1.0/lib/quiet_assets.rb:27:in `call_with_quiet_assets'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/methodoverride.rb:21:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/runtime.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/activesupport-3.2.22/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/lock.rb:15:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/actionpack-3.2.22/lib/action_dispatch/middleware/static.rb:83:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/engine.rb:484:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/application.rb:231:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/content_length.rb:14:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/rack/log_tailer.rb:17:in `call'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/handler/thin.rb:13:in `run'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/rack-1.4.6/lib/rack/server.rb:268:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands/server.rb:70:in `start'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:55:in `block in <top (required)>'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `tap'
/home/benton/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/railties-3.2.22/lib/rails/commands.rb:50:in `<top (required)>'
./script/rails:6:in `require'
./script/rails:6:in `<main>'
==================================================
Rendered public/500.html (1.0ms)
Completed 500 Internal Server Error in 6.6ms (Views: 6.0ms | ActiveRecord: 0.0ms | Fog: 0.0ms, 0 reqs)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment