Skip to content

Instantly share code, notes, and snippets.

@scytacki
Created January 16, 2015 12:58
Show Gist options
  • Save scytacki/d2d8c2416a7d0a994625 to your computer and use it in GitHub Desktop.
Save scytacki/d2d8c2416a7d0a994625 to your computer and use it in GitHub Desktop.
A ActionView::Template::Error occurred in sessions#create:
undefined method `id' for nil:NilClass
app/views/shared/_project_header.html.haml:19:in `_app_views_shared__project_header_html_haml__4589151684322682879_99488400'
-------------------------------
Request:
-------------------------------
* URL : http://has.portal.concord.org/users/sign_in
* IP address: 84.127.245.244
* Parameters: {"utf8"=>"✓", "user"=>{"login"=>"[filtered]", "password"=>"[FILTERED]"}, "commit"=>"Log In", "action"=>"create", "controller"=>"devise/sessions"}
* Rails root: /web/portal/releases/20141218232712
-------------------------------
Session:
-------------------------------
* session id: nil
* data: {"warden.user.user.key"=>["User", [12679], "emyr5zzw5b2uQSRzCTBi"],
"warden.user.user.session"=>{"last_request_at"=>2015-01-15 09:16:49 UTC}}
-------------------------------
Environment:
-------------------------------
* CONTENT_LENGTH : 77
* CONTENT_TYPE : application/x-www-form-urlencoded
* DOCUMENT_ROOT : /web/portal/current/public
* HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-ms-application, application/vnd.ms-xpsdocument, application/xaml+xml, application/x-ms-xbap, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
* HTTP_ACCEPT_ENCODING : gzip, deflate
* HTTP_ACCEPT_LANGUAGE : es
* HTTP_CACHE_CONTROL : no-cache
* HTTP_CONNECTION : keep-alive
* HTTP_COOKIE : _ga=GA1.2.1004115806.1421306544; _gat=1; __utma=217140111.1004115806.1421306544.1421306565.1421306565.1; __utmb=217140111.1.10.1421306565; __utmc=217140111; __utmz=217140111.1421306565.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1
* HTTP_HOST : has.portal.concord.org
* HTTP_REFERER : http://has.portal.concord.org/
* HTTP_UA_CPU : x86
* HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; GTB7.5; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30618; InfoPath.1; .NET4.0C)
* HTTP_X_FORWARDED_FOR : 84.127.245.244
* HTTP_X_FORWARDED_PORT : 80
* HTTP_X_FORWARDED_PROTO : http
* HTTP_X_QUEUE_START : t=1421313409404169
* ORIGINAL_FULLPATH : /users/sign_in
* PASSENGER_CONNECT_PASSWORD : [FILTERED]
* PATH_INFO : /users/sign_in
* QUERY_STRING :
* REMOTE_ADDR : 10.4.99.160
* REMOTE_PORT : 41754
* REQUEST_METHOD : POST
* REQUEST_URI : /users/sign_in
* SCRIPT_NAME :
* SCRIPT_URI : http://has.portal.concord.org/users/sign_in
* SCRIPT_URL : /users/sign_in
* SERVER_ADDR : 10.169.224.202
* SERVER_ADMIN : [no address given]
* SERVER_NAME : has.portal.concord.org
* SERVER_PORT : 80
* SERVER_PROTOCOL : HTTP/1.1
* SERVER_SOFTWARE : Apache
* _ : _
* action_controller.instance : sessions#create
* action_dispatch.backtrace_cleaner : #<Rails::BacktraceCleaner:0x00000002b0a610>
* action_dispatch.cookies : #<ActionDispatch::Cookies::CookieJar:0x0000000bd4f2c8>
* action_dispatch.logger : #<ActiveSupport::TaggedLogging:0x00000005d4d668>
* action_dispatch.parameter_filter : [:password, :password_confirmation, /RAW_POST_DATA/]
* action_dispatch.remote_ip : 84.127.245.244
* action_dispatch.request.content_type : application/x-www-form-urlencoded
* action_dispatch.request.formats : [text/html]
* action_dispatch.request.parameters : {"utf8"=>"✓", "user"=>{"login"=>"jmulet", "password"=>"[FILTERED]"}, "commit"=>"Log In", "action"=>"create", "controller"=>"devise/sessions"}
* action_dispatch.request.path_parameters : {:action=>"create", :controller=>"devise/sessions"}
* action_dispatch.request.query_parameters : {}
* action_dispatch.request.request_parameters: {"utf8"=>"✓", "user"=>{"login"=>"jmulet", "password"=>"[FILTERED]"}, "commit"=>"Log In"}
* action_dispatch.request_id : a62cd2dc8451b7691cf0e94573a4dd48
* action_dispatch.routes : #<ActionDispatch::Routing::RouteSet:0x00000004b8ee40>
* action_dispatch.secret_token : a3e2a51a371bb964a4250c21f8d083f9ddb224d455171dcba55518e74af43366e52e3f239773f90aed0ab6caf6554f051504ce7232599d066150dbabff0f1654
* action_dispatch.show_detailed_exceptions : false
* action_dispatch.show_exceptions : true
* devise.allow_params_authentication : true
* devise.mapping : #<Devise::Mapping:0x0000000b182648>
* devise.skip_timeout : true
* exception_notifier.options : {:sender_address=>"\"Application Error\" <[email protected]>", :exception_recipients=>["\"Admin\" <[email protected]>"], :email_prefix=>"[HAS Exception] ", :sections=>["request", "session", "environment", "backtrace"], :ignore_exceptions=>[ActiveRecord::RecordNotFound, AbstractController::ActionNotFound, ActionController::RoutingError]}
* rack-cache.allow_reload : false
* rack-cache.allow_revalidate : false
* rack-cache.cache_key : Rack::Cache::Key
* rack-cache.default_ttl : 0
* rack-cache.entitystore : rails:/
* rack-cache.ignore_headers : ["Set-Cookie"]
* rack-cache.metastore : rails:/
* rack-cache.private_headers : ["Authorization", "Cookie"]
* rack-cache.storage : #<Rack::Cache::Storage:0x00000008026158>
* rack-cache.use_native_ttl : false
* rack-cache.verbose : false
* rack.errors : #<IO:0x0000000271a320>
* rack.input : #<PhusionPassenger::Utils::RewindableInput:0x0000000c1f6d80>
* rack.multiprocess : true
* rack.multithread : false
* rack.request.cookie_hash : {"_ga"=>"GA1.2.1004115806.1421306544", "_gat"=>"1", "__utma"=>"217140111.1004115806.1421306544.1421306565.1421306565.1", "__utmb"=>"217140111.1.10.1421306565", "__utmc"=>"217140111", "__utmz"=>"217140111.1421306565.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)", "__utmt"=>"1"}
* rack.request.cookie_string : _ga=GA1.2.1004115806.1421306544; _gat=1; __utma=217140111.1004115806.1421306544.1421306565.1421306565.1; __utmb=217140111.1.10.1421306565; __utmc=217140111; __utmz=217140111.1421306565.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utmt=1
* rack.request.form_hash : {"utf8"=>"✓", "user"=>{"login"=>"jmulet", "password"=>"[FILTERED]"}, "commit"=>"Log In"}
* rack.request.form_input : #<PhusionPassenger::Utils::RewindableInput:0x0000000c1f6d80>
* rack.request.form_vars : utf8=%E2%9C%93&user%5Blogin%5D=jmulet&user%5Bpassword%5D=joanmu&commit=Log+In
* rack.request.query_hash : {}
* rack.request.query_string :
* rack.run_once : false
* rack.session : {"warden.user.user.key"=>["User", [12679], "emyr5zzw5b2uQSRzCTBi"], "warden.user.user.session"=>{"last_request_at"=>2015-01-15 09:16:49 UTC}}
* rack.session.options : {:path=>"/", :domain=>nil, :expire_after=>nil, :secure=>false, :httponly=>true, :defer=>false, :renew=>true, :secret=>"ee43cf2cdd6f0de395383e0265778663b5e7ab7b2a81e5de5712cf2cea81", :id=>"3ae456e1248d07c16da8bb86cc61949f"}
* rack.session.record : #<ActiveRecord::SessionStore::Session:0x0000000b328d80>
* rack.url_scheme : http
* rack.version : [1, 0]
* warden : Warden::Proxy:101117820 @config={:default_scope=>:user, :scope_defaults=>{}, :default_strategies=>{:user=>[:rememberable, :token_authenticatable, :database_authenticatable, :bearer_token_authenticatable]}, :intercept_401=>false, :failure_app=>CustomFailure}
* Process: 19971
* Server : ip-10-169-224-202
-------------------------------
Backtrace:
-------------------------------
app/views/shared/_project_header.html.haml:19:in `_app_views_shared__project_header_html_haml__4589151684322682879_99488400'
actionpack (3.2.19) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.19) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.19) lib/action_view/template.rb:143:in `render'
actionpack (3.2.19) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.19) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.19) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.19) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.19) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.19) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.19) lib/action_view/renderer/partial_renderer.rb:237:in `render'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:172:in `block in render_with_newrelic'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:171:in `render_with_newrelic'
actionpack (3.2.19) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.19) lib/action_view/renderer/renderer.rb:15:in `render'
actionpack (3.2.19) lib/action_view/helpers/rendering_helper.rb:24:in `render'
/web/portal/shared/bundle/ruby/1.9.1/bundler/gems/haml-e428066e86e1/lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
/web/portal/shared/bundle/ruby/1.9.1/bundler/gems/haml-e428066e86e1/lib/haml/helpers.rb:90:in `non_haml'
/web/portal/shared/bundle/ruby/1.9.1/bundler/gems/haml-e428066e86e1/lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
app/views/layouts/application.html.haml:67:in `_app_views_layouts_application_html_haml__206698928986040300_67898300'
actionpack (3.2.19) lib/action_view/template.rb:145:in `block in render'
activesupport (3.2.19) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.19) lib/action_view/template.rb:143:in `render'
actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:59:in `render_with_layout'
actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:45:in `render_template'
actionpack (3.2.19) lib/action_view/renderer/template_renderer.rb:18:in `render'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:156:in `block in render_with_newrelic'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:155:in `render_with_newrelic'
actionpack (3.2.19) lib/action_view/renderer/renderer.rb:36:in `render_template'
actionpack (3.2.19) lib/action_view/renderer/renderer.rb:17:in `render'
actionpack (3.2.19) lib/abstract_controller/rendering.rb:110:in `_render_template'
actionpack (3.2.19) lib/action_controller/metal/streaming.rb:225:in `_render_template'
actionpack (3.2.19) lib/abstract_controller/rendering.rb:103:in `render_to_body'
actionpack (3.2.19) lib/action_controller/metal/renderers.rb:28:in `render_to_body'
actionpack (3.2.19) lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
actionpack (3.2.19) lib/abstract_controller/rendering.rb:88:in `render'
actionpack (3.2.19) lib/action_controller/metal/rendering.rb:16:in `render'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
activesupport (3.2.19) lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
activesupport (3.2.19) lib/active_support/core_ext/benchmark.rb:5:in `ms'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:40:in `block in render'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
activerecord (3.2.19) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
sunspot_rails (2.0.0) lib/sunspot/rails/railties/controller_runtime.rb:15:in `cleanup_view_runtime'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:39:in `render'
app/controllers/application_controller.rb:209:in `reject_old_browsers'
activesupport (3.2.19) lib/active_support/callbacks.rb:473:in `_run__2984030078230248378__process_action__4555097590956917532__callbacks'
activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.19) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.19) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.19) lib/abstract_controller/callbacks.rb:17:in `process_action'
actionpack (3.2.19) lib/action_controller/metal/rescue.rb:29:in `process_action'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
activesupport (3.2.19) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.19) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.19) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.19) lib/action_controller/metal/instrumentation.rb:29:in `process_action'
actionpack (3.2.19) lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
activerecord (3.2.19) lib/active_record/railties/controller_runtime.rb:18:in `process_action'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:268:in `block in perform_action_with_newrelic_trace'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in `perform_action_with_newrelic_trace'
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
actionpack (3.2.19) lib/abstract_controller/base.rb:121:in `process'
actionpack (3.2.19) lib/abstract_controller/rendering.rb:45:in `process'
actionpack (3.2.19) lib/action_controller/metal.rb:203:in `dispatch'
actionpack (3.2.19) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
actionpack (3.2.19) lib/action_controller/metal.rb:246:in `block in action'
actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:73:in `call'
actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:36:in `call'
actionpack (3.2.19) lib/action_dispatch/routing/mapper.rb:43:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.19) lib/action_dispatch/routing/route_set.rb:608:in `call'
exception_notification (2.5.2) lib/exception_notifier.rb:25:in `call'
newrelic_rpm (3.5.8.72) lib/new_relic/rack/error_collector.rb:8:in `call'
newrelic_rpm (3.5.8.72) lib/new_relic/rack/agent_hooks.rb:14:in `call'
newrelic_rpm (3.5.8.72) lib/new_relic/rack/browser_monitoring.rb:12:in `call'
sass (3.2.1) lib/sass/plugin/rack.rb:54:in `call'
warden (1.2.1) lib/warden/manager.rb:35:in `block in call'
warden (1.2.1) lib/warden/manager.rb:34:in `catch'
warden (1.2.1) lib/warden/manager.rb:34:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:35:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
lib/rack/expand_b64_gzip.rb:35:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/cookies.rb:341:in `call'
lib/rack/config_session_cookies.rb:42:in `call'
activerecord (3.2.19) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.19) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `_run__1567604797892008699__call__2221690748131366305__callbacks'
activesupport (3.2.19) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.19) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.19) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.19) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.19) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.19) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.19) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.19) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
rack (1.4.5) lib/rack/runtime.rb:17:in `call'
activesupport (3.2.19) lib/active_support/cache/strategy/local_cache.rb:72:in `call'
rack (1.4.5) lib/rack/lock.rb:15:in `call'
actionpack (3.2.19) lib/action_dispatch/middleware/static.rb:63:in `call'
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward'
rack-cache (1.2) lib/rack/cache/context.rb:143:in `pass'
rack-cache (1.2) lib/rack/cache/context.rb:155:in `invalidate'
rack-cache (1.2) lib/rack/cache/context.rb:71:in `call!'
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call'
railties (3.2.19) lib/rails/engine.rb:484:in `call'
railties (3.2.19) lib/rails/application.rb:231:in `call'
railties (3.2.19) lib/rails/railtie/configurable.rb:30:in `method_missing'
passenger (3.0.12) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
passenger (3.0.12) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/utils.rb:479:in `safe_fork'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:180:in `start'
passenger (3.0.12) lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize'
<internal:prelude>:10:in `synchronize'
passenger (3.0.12) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
passenger (3.0.12) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
passenger (3.0.12) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
passenger (3.0.12) helper-scripts/passenger-spawn-server:99:in `<main>'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment