This is probably an easy fix, but my google fu has failed me.
Is there an easy way to find out from this which file has the encoding problem.
The application file has a meta tag for UTF-8
The application controller has a config.encoding ="utf-8"
I don't see any error in the browser. I'm seeing it from rake test.
1) Error:
StoreControllerTest#test_should_get_index:
ActionView::Template::Error: unknown encoding name - undecided
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:202:in `force_encoding'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:202:in `encode!'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:266:in `compile'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:244:in `block in compile!'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `synchronize'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:232:in `compile!'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:144:in `block in render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/template.rb:143:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:48:in `block (2 levels) in render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:47:in `block in render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:55:in `render_with_layout'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:46:in `render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/template_renderer.rb:19:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:36:in `render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_view/renderer/renderer.rb:17:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:110:in `_render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:88:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:16:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/benchmark.rb:294:in `realtime'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:39:in `render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:167:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:414:in `_run__996699002__process_action__630865188__callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `block in instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/notifications.rb:123:in `instrument'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activerecord-3.2.14/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/base.rb:121:in `process'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/abstract_controller/rendering.rb:45:in `process'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/metal/testing.rb:17:in `process_with_new_base_test'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/test_case.rb:490:in `process'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/test_case.rb:54:in `process'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/actionpack-3.2.14/lib/action_controller/test_case.rb:407:in `get'
/home/ubuntu/Documents/hartl/depot/test/functional/store_controller_test.rb:5:in `block in <class:StoreControllerTest>'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1265:in `run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit/testcase.rb:17:in `run'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:36:in `block in run'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:458:in `_run__884541456__setup__650240084__callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/activesupport-3.2.14/lib/active_support/testing/setup_and_teardown.rb:35:in `run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:940:in `block in _run_suite'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:933:in `map'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:933:in `_run_suite'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:663:in `block in _run_suites'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:661:in `each'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:661:in `_run_suites'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:884:in `_run_anything'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1092:in `run_tests'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1079:in `block in _run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1078:in `each'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1078:in `_run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/minitest/unit.rb:1066:in `run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:27:in `run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:780:in `run'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:372:in `block (2 levels) in autorun'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:33:in `run_once'
/home/ubuntu/.rvm/rubies/ruby-2.1.0/lib/ruby/2.1.0/test/unit.rb:371:in `block in autorun'
Finished tests in 0.663328s, 12.0604 tests/s, 15.0755 assertions/s.
8 tests, 10 assertions, 0 failures, 1 errors, 0 skips
ruby -v: ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux]
Errors running test:functionals! #<RuntimeError: Command failed with status (1): [ruby -I"lib:test" -I"/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib" "/home/ubuntu/.rvm/gems/ruby-2.1.0/gems/rake-10.4.2/lib/rake/rake_test_loader.rb" "test/functional/**/*_test.rb" ]>
Related
Upgrading from Rails 5.2.3 to 6.0.0 or 6.0.1, with Ruby 2.6.3, after bundling succeeds, the rails app:update command has been carefully run, and webpacker updated, a request to any page that requires no authentication gives:
Puma caught this error: undefined method `clear' for nil:NilClass (NoMethodError)
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:181:in `clear_cache'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:16:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:16:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/lookup_context.rb:79:in `block in clear'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/lookup_context.rb:78:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/lookup_context.rb:78:in `clear'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:40:in `clear_cache'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:30:in `block (2 levels) in clear_cache_if_necessary'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/file_update_checker.rb:83:in `execute'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:32:in `block in clear_cache_if_necessary'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:23:in `synchronize'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:23:in `clear_cache_if_necessary'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/cache_expiry.rb:11:in `before'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:429:in `block in make_lambda'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:201:in `block (2 levels) in halting'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:607:in `block (2 levels) in default_terminator'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:606:in `catch'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:606:in `block in default_terminator'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:202:in `block in halting'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:514:in `block in invoke_before'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:514:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:514:in `invoke_before'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:134:in `run_callbacks'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/execution_wrapper.rb:111:in `run!'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/execution_wrapper.rb:73:in `block in run!'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/execution_wrapper.rb:70:in `tap'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/execution_wrapper.rb:70:in `run!'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/executor.rb:12:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/static.rb:126:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/host_authorization.rb:83:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/webpacker-4.2.0/lib/webpacker/dev_server_proxy.rb:23:in `perform_request'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-proxy-0.6.5/lib/rack/proxy.rb:57:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/engine.rb:526:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `public_send'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `method_missing'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/deflater.rb:34:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/configuration.rb:228:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:667:in `handle_request'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:470:in `process_client'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:328:in `block in run'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
A second request to the same page gives:
Error during failsafe response: undefined method `compute_if_absent' for nil:NilClass
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:199:in `block in query'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:196:in `map'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:196:in `query'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:189:in `_find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:121:in `block in find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:156:in `block in cached'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:66:in `cache'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:155:in `cached'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/template/resolver.rb:120:in `find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:77:in `block (2 levels) in _find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:76:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:76:in `block in _find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:75:in `each'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:75:in `_find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:55:in `find_all'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/path_set.rb:48:in `find'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/lookup_context.rb:129:in `find'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/renderer/template_renderer.rb:47:in `determine_template'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/renderer/template_renderer.rb:9:in `render'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/renderer/renderer.rb:61:in `render_template_to_object'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/renderer/renderer.rb:29:in `render_to_object'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/rendering.rb:118:in `block in _render_template'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/base.rb:304:in `in_rendering_context'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/rendering.rb:117:in `_render_template'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/streaming.rb:219:in `_render_template'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/rendering.rb:103:in `render_to_body'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:52:in `render_to_body'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/renderers.rb:142:in `render_to_body'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/abstract_controller/rendering.rb:25:in `render'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:36:in `render'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/core_ext/benchmark.rb:14:in `block in ms'
/Users/Emma/.rvm/rubies/ruby-2.6.3/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/core_ext/benchmark.rb:14:in `ms'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:85:in `cleanup_view_runtime'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.1/lib/active_record/railties/controller_runtime.rb:34:in `cleanup_view_runtime'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:43:in `render'
/Users/Emma/rails/consonance/app/controllers/exceptions_controller.rb:20:in `block (2 levels) in show'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/mime_responds.rb:214:in `respond_to'
/Users/Emma/rails/consonance/app/controllers/exceptions_controller.rb:14:in `show'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:196:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/callbacks.rb:135:in `run_callbacks'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:33:in `block in process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/notifications.rb:180:in `block in instrument'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/notifications.rb:180:in `instrument'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal/params_wrapper.rb:245:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activerecord-6.0.1/lib/active_record/railties/controller_runtime.rb:27:in `process_action'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/abstract_controller/base.rb:136:in `process'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionview-6.0.1/lib/action_view/rendering.rb:39:in `process'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal.rb:191:in `dispatch'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_controller/metal.rb:236:in `block in action'
/Users/Emma/rails/consonance/config/application.rb:172:in `block in <class:Application>'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/show_exceptions.rb:51:in `render_exception'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/show_exceptions.rb:36:in `rescue in call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/rack/logger.rb:38:in `call_app'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/rack/logger.rb:26:in `block in call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/tagged_logging.rb:80:in `block in tagged'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/tagged_logging.rb:28:in `tagged'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/tagged_logging.rb:80:in `tagged'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/rack/logger.rb:26:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/request_store-1.4.1/lib/request_store/middleware.rb:19:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/skylight-core-4.0.2/lib/skylight/core/probes/action_dispatch/request_id.rb:12:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/activesupport-6.0.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/static.rb:126:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/actionpack-6.0.1/lib/action_dispatch/middleware/host_authorization.rb:83:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/webpacker-4.2.0/lib/webpacker/dev_server_proxy.rb:23:in `perform_request'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-proxy-0.6.5/lib/rack/proxy.rb:57:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/engine.rb:526:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `public_send'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/railties-6.0.1/lib/rails/railtie.rb:190:in `method_missing'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/rack-2.0.7/lib/rack/deflater.rb:34:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/configuration.rb:228:in `call'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:667:in `handle_request'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:470:in `process_client'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/server.rb:328:in `block in run'
/Users/Emma/.rvm/gems/ruby-2.6.3/gems/puma-4.3.0/lib/puma/thread_pool.rb:134:in `block in spawn_thread'
This means that the #unbound_templates variable introduced here is nil. On a Rails console, Concurrent::Map.new works fine.
How can this instance variable, that gets set in the initializer, be nil?
I have the exact same error and I have had no progress debugging it thus far. My suspicion is that it is caused by a gem but I just don't know yet.
#snowangel if you want to compare Gemfiles I've posted mine here: https://gist.github.com/biscuitvile/7bf0d4423ce0b2aa79e0ccc08bff4295
NOTE: I got the same error on the second request
undefined method `compute_if_absent' for nil:NilClass
TLDR;
Configure database's prepared_statements only to true or false
EXPLANATION
In my case, I erroneously configured prepared_statements to nil.
In this line on ActiveRecord, it calls #find_by_statement_cache then calls compute_if_absent,
def cached_find_by_statement(key, &block)
cache = #find_by_statement_cache[connection.prepared_statements]
# THIS LINE BELOW
cache.compute_if_absent(key) { StatementCache.create(connection, &block) }
end
where it has the following value:
#find_by_statement_cache = { true => Concurrent::Map.new, false => Concurrent::Map.new }
And since I've configured it to nil, it renders an undefined method compute_if_absent error.
I am getting following error when I am using prerender: true. I am using react-rails gems
its working fine with prerender: false
var Router = window.ReactRouter.Router
var Route = window.ReactRouter.Route
var Albums = React.createClass({
render: function(){
return(
<Router>
<Route path="/" component={App}>
</Route>
</Router>
)
}
})
Showing /home/rails/work/vijay/react/photo_study/app/views/home/index.html.erb where line #2 raised:
Encountered error "Error: Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings." when prerendering Albums with {}
Object.invariant [as default] ((execjs):21975:16)
createHashHistory ((execjs):24100:130)
(execjs):22625:20
wrapDeprecatedHistory ((execjs):25277:61)
createRouterObjects ((execjs):25251:23)
componentWillMount ((execjs):25220:38)
ReactCompositeComponentMixin.mountComponent ((execjs):7286:13)
wrapper [as mountComponent] ((execjs):1414:22)
Object.ReactReconciler.mountComponent ((execjs):5606:36)
ReactCompositeComponentMixin.mountComponent ((execjs):7301:35)
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:36:in `rescue in block in eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:33:in `block in eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:75:in `block in lock'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:73:in `Locker'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:73:in `lock'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:32:in `eval'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering/exec_js_renderer.rb:23:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering/sprockets_renderer.rb:32:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering.rb:17:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:64:in `block (2 levels) in with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `handle_interrupt'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:63:in `block in with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `handle_interrupt'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/connection_pool-2.2.0/lib/connection_pool.rb:60:in `with'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/server_rendering.rb:16:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/component_mount.rb:31:in `block in react_component'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:38:in `block in capture'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:202:in `with_output_buffer'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/capture_helper.rb:38:in `capture'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/helpers/tag_helper.rb:106:in `content_tag'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/component_mount.rb:44:in `react_component'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/react-rails-1.5.0/lib/react/rails/view_helper.rb:21:in `react_component'
/home/rails/work/vijay/react/photo_study/app/views/home/index.html.erb:2:in `_app_views_home_index_html_erb___821011538__654593158'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:145:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:166:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:333:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/template.rb:143:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/template_renderer.rb:14:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:42:in `render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/renderer/renderer.rb:23:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:100:in `_render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/streaming.rb:217:in `_render_template'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:83:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:32:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/renderers.rb:37:in `render_to_body'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/rendering.rb:25:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:16:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/benchmark.rb:308:in `realtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:43:in `render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:198:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rendering.rb:10:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:117:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:555:in `block (2 levels) in compile'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:505:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `block in instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/notifications.rb:164:in `instrument'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/abstract_controller/base.rb:137:in `process'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionview-4.2.5/lib/action_view/rendering.rb:30:in `process'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal.rb:196:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_controller/metal.rb:237:in `block in action'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:76:in `dispatch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:45:in `serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `each'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/journey/router.rb:30:in `serve'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/routing/route_set.rb:817:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:35:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:34:in `catch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/warden-1.2.6/lib/warden/manager.rb:34:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/etag.rb:24:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/conditionalget.rb:25:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/head.rb:13:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/flash.rb:260:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:in `context'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/query_cache.rb:36:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activerecord-4.2.5/lib/active_record/migration.rb:377:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/reloader.rb:73:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:28:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:18:in `catch'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/web-console-2.3.0/lib/web_console/middleware.rb:18:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:38:in `call_app'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `block in call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/tagged_logging.rb:68:in `tagged'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/rack/logger.rb:20:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/activesupport-4.2.5/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/actionpack-4.2.5/lib/action_dispatch/middleware/static.rb:116:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/engine.rb:518:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/railties-4.2.5/lib/rails/application.rb:165:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/lock.rb:17:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/content_length.rb:15:in `call'
/home/rails/.rvm/gems/ruby-2.3.0#react/gems/rack-1.6.4/lib/rack/handler/webrick.rb:88:in `service'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:140:in `service'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/httpserver.rb:96:in `run'
/home/rails/.rvm/rubies/ruby-2.3.0/lib/ruby/2.3.0/webrick/server.rb:296:in `block in start_thread'
I am trying to upload an image to Amazon S3.
The model Card.rb has
has_attached_file :marketing_image, default_url: '',
styles: {:thumb => ['66x80>', :png]},
hash_secret: "marketing-image-magic",
url: "/system/:class/:attachment/:id_partition/:style/:hash.:extension",
storage: :s3,
s3_credentials: {
bucket: ENV['AWS_BUCKET_NAME'],
access_key_id: ENV['AWS_ACCESS_KEY_ID'],
secret_access_key: ENV['AWS_SECRET_ACCESS_KEY'] },
s3_permissions: :public_read,
s3_headers: { 'Cache-Control' => 'max-age=315576000',
'Expires' => 10.years.from_now.httpdate },
s3_protocol: 'https'
and the credentials are stored in .env file.
All the tests are green on localhost but some fail on CI Jenkins server.
The trace for one of the test case on CI server is:
CardTest#test_uses_image_validation_as_default:
ArgumentError: missing required :bucket option
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:218:in `bucket_name'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:251:in `s3_bucket'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:255:in `s3_object'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:297:in `exists?'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:557:in `block in queue_all_for_delete'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:556:in `map'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:556:in `queue_all_for_delete'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/has_attached_file.rb:92:in `block in add_active_record_callbacks'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:443:in `instance_exec'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:443:in `block in make_lambda'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:161:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:161:in `block in halting'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `block in call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `each'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:501:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:86:in `run_callbacks'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/callbacks.rb:292:in `destroy'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:263:in `block in destroy'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:329:in `block in with_transaction_returning_status'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `block in transaction'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:209:in `within_new_transaction'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/connection_adapters/abstract/database_statements.rb:201:in `transaction'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:208:in `transaction'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:326:in `with_transaction_returning_status'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/transactions.rb:263:in `destroy'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/has_one_association.rb:81:in `remove_target!'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/has_one_association.rb:35:in `block in replace'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/has_one_association.rb:101:in `transaction_if'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/has_one_association.rb:34:in `replace'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/has_one_association.rb:73:in `set_new_record'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/protected_attributes-1.0.9/lib/active_record/mass_assignment_security/associations.rb:121:in `build'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/associations/builder/singular_association.rb:18:in `build_card'
/var/lib/jenkins/jobs/PunchhServer/workspace/test/models/card_test.rb:14:in `test_uses_image_validation_as_default'
and one more
Api::V1::CardsControllerTest#test_index:
ArgumentError: missing required :bucket option
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:218:in `bucket_name'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/storage/s3.rb:173:in `block in extended'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:34:in `block (2 levels) in interpolate'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:33:in `gsub'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:33:in `block in interpolate'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:32:in `each'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:32:in `inject'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/interpolations.rb:32:in `interpolate'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/url_generator.rb:13:in `for'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/paperclip-4.2.1/lib/paperclip/attachment.rb:143:in `url'
/var/lib/jenkins/jobs/PunchhServer/workspace/app/models/card.rb:131:in `marketing_image_url'
/var/lib/jenkins/jobs/PunchhServer/workspace/app/serializers/api_cardmeta.rb:121:in `marketing_image_url'
(eval):29:in `_fast_attributes'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/serializer.rb:467:in `rescue in attributes'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/serializer.rb:455:in `attributes'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/serializer.rb:479:in `_serializable_hash'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/serializer.rb:361:in `serializable_hash'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:89:in `block in _serializable_array'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:79:in `map'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:79:in `_serializable_array'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:73:in `serializable_array'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:53:in `as_json'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/json/encoding.rb:34:in `encode'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/json/encoding.rb:21:in `encode'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/core_ext/object/json.rb:37:in `to_json_with_active_support_encoder'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/active_model/array_serializer.rb:63:in `to_json'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/renderers.rb:96:in `block in <module:Renderers>'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/active_model_serializers-0.8.2/lib/action_controller/serialization.rb:46:in `_render_option_json'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/renderers.rb:39:in `block in _handle_render_options'
/usr/local/lib/ruby/2.2.0/set.rb:283:in `each_key'
/usr/local/lib/ruby/2.2.0/set.rb:283:in `each'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/renderers.rb:36:in `_handle_render_options'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/renderers.rb:32:in `render_to_body'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/abstract_controller/rendering.rb:25:in `render'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/rendering.rb:16:in `render'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:44:in `block (2 levels) in render'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/core_ext/benchmark.rb:12:in `block in ms'
/usr/local/lib/ruby/2.2.0/benchmark.rb:303:in `realtime'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/core_ext/benchmark.rb:12:in `ms'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:44:in `block in render'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:87:in `cleanup_view_runtime'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/railties/controller_runtime.rb:25:in `cleanup_view_runtime'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:43:in `render'
/var/lib/jenkins/jobs/PunchhServer/workspace/app/controllers/api/v1/cards_controller.rb:8:in `index'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/abstract_controller/base.rb:189:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/rendering.rb:10:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:113:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:113:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:552:in `block (2 levels) in compile'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:502:in `call'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/callbacks.rb:86:in `run_callbacks'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/abstract_controller/callbacks.rb:19:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/rescue.rb:29:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159:in `block in instrument'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activesupport-4.1.10/lib/active_support/notifications.rb:159:in `instrument'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/activerecord-4.1.10/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/abstract_controller/base.rb:136:in `process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionview-4.1.10/lib/action_view/rendering.rb:30:in `process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/test_case.rb:595:in `process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/apipie-rails-0.3.2/lib/apipie/extractor/recorder.rb:153:in `process_with_api_recording'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/test_case.rb:64:in `process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/devise-3.3.0/lib/devise/test_helpers.rb:19:in `block in process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/devise-3.3.0/lib/devise/test_helpers.rb:72:in `catch'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/devise-3.3.0/lib/devise/test_helpers.rb:72:in `_catch_warden'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/devise-3.3.0/lib/devise/test_helpers.rb:19:in `process'
/var/lib/jenkins/jobs/PunchhServer/workspace/vendor/bundle/ruby/2.2.0/gems/actionpack-4.1.10/lib/action_controller/test_case.rb:495:in `get'
/var/lib/jenkins/jobs/PunchhServer/workspace/test/controllers/api/v1/cards_controller_test.rb:60:in `test_index'
How can I remove this error?
I am trying to run simple test using cucumber/capybara. I want to visit a URL and it works when I do so manually. However, when I try to visit the URL using cucumber/capybara I am taken to an "Internal Server Error" page with the following error undefined method 'link' for []:Array
Here is my code
transfer.feature
Scenario: token transfer pixels from token shop
Given I transfer tokens from token shop
transfer_steps.rb
Given /^I transfer tokens from token shop$/ do
visit('/token-shop')
end
Here is the error logs
/Users/simon/Documents/gamefuse/gf/app/views/token_shop/shared/_promos.html.haml:4:in `_app_views_token_shop_shared__promos_html_haml___2437011481481195334_70124182969840'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/partial_renderer.rb:237:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:176:in `block in render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:175:in `render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:41:in `render_partial'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:15:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/helpers/rendering_helper.rb:24:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `block in render_with_haml'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers.rb:89:in `non_haml'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/haml-4.0.3/lib/haml/helpers/action_view_mods.rb:10:in `render_with_haml'
/Users/simon/Documents/gamefuse/gf/app/views/token_shop/index.html.haml:29:in `_app_views_token_shop_index_html_haml__779242564751016951_70124227746800'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:145:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:125:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/template.rb:143:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:46:in `block in render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:45:in `render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/template_renderer.rb:18:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:160:in `block in render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/method_tracer.rb:273:in `trace_execution_scoped'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:159:in `render_with_newrelic'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:36:in `render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_view/renderer/renderer.rb:17:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:110:in `_render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/streaming.rb:225:in `_render_template'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:103:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/renderers.rb:28:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/compatibility.rb:50:in `render_to_body'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:88:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:16:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/core_ext/benchmark.rb:5:in `ms'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:39:in `render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/remotipart-1.2.1/lib/remotipart/render_overrides.rb:14:in `render_with_remotipart'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rendering.rb:10:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:458:in `_run__4434222007848262428__process_action__3763121460391815624__callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/callbacks.rb:17:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rescue.rb:29:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/notifications.rb:123:in `instrument'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:38:in `block in process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:318:in `perform_action_with_newrelic_trace'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:37:in `process_action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/base.rb:121:in `process'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/abstract_controller/rendering.rb:45:in `process'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal.rb:203:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_controller/metal.rb:246:in `block in action'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:36:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:612:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-pjax-0.7.0/lib/rack/pjax.rb:12:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/route_downcaser-0.2.0/lib/route_downcaser/downcase_route_middleware.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/error_collector.rb:12:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/agent_hooks.rb:18:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/newrelic_rpm-3.6.2.96/lib/new_relic/rack/browser_monitoring.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:35:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:34:in `catch'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/warden-1.2.1/lib/warden/manager.rb:34:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/head.rb:14:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/flash.rb:242:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/query_cache.rb:64:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activerecord-3.2.13/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `_run__1537760651371211515__call__2831774802156914086__callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/cucumber-rails-1.3.1/lib/cucumber/rails/action_controller.rb:10:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:32:in `call_app'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/tagged_logging.rb:22:in `tagged'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/rack/logger.rb:16:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/activesupport-3.2.13/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/actionpack-3.2.13/lib/action_dispatch/middleware/static.rb:63:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/engine.rb:479:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/railties-3.2.13/lib/rails/application.rb:223:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/builder.rb:134:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:64:in `block in call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `each'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/urlmap.rb:49:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/capybara-2.1.0/lib/capybara/server.rb:19:in `call'
/Users/simon/.rvm/gems/ruby-1.9.3-p392#changyou-us.gf.master/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:138:in `service'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/httpserver.rb:94:in `run'
/Users/simon/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/webrick/server.rb:191:in `block in start_thread'
EDIT
And here is the haml file mentioned in the error log
_promos.html.haml
.promos
.item
-if #token_shop_promotion
-if #token_shop_promotion.link == "empty"
= image_tag #token_shop_promotion.image.url, :alt => #token_shop_promotion.title, :height => 456, :width => 444
-else
= link_to(image_tag(#token_shop_promotion.image.url, :alt => #token_shop_promotion.title, :height => 456, :width => 444), #token_shop_promotion.link, :target => 'blanck')
It seems that #token_shop_promotion is an array in your partial, when you expect it to be a singular object. Make sure the data is what you expect it to be, the is pretty much the first step/rule in any debugging scenario.
In your case it seems that you assume the data you are using to be different, it fails because of that and instead of verifying your assumptions, you go on a wild goose hunt :)
Reminds me of this blog post, read it :)
I get this error:
RuntimeError: Session collision on '"6a17879bbd78f0ee4dbc823e3cd50682"'
The app is configured using: unicorn, memcached.
session_store.rb is:
Bulevard::Application.config.session_store :mem_cache_store, :key => '_bulevard_session', :expire_after => 10.minutes
production.rb is:
config.cache_store = :mem_cache_store
Here is the full airbrake trace:
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/memcache.rb:54:in `block in get_session'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/memcache.rb:80:in `with_lock'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/memcache.rb:50:in `get_session'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:236:in `load_session'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/session/abstract_store.rb:47:in `block in load_session'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/session/abstract_store.rb:55:in `stale_session_check!'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/session/abstract_store.rb:47:in `load_session'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:122:in `load!'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:118:in `load_for_write!'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:71:in `[]='
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/request_forgery_protection.rb:100:in `form_authenticity_token'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/helpers.rb:53:in `form_authenticity_token'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/helpers/csrf_helper.rb:23:in `csrf_meta_tags'
app/views/shared/_head.html.erb:30:in `_app_views_shared__head_html_erb___2281751522169299485_22292500'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/template.rb:171:in `block in render'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/partial_renderer.rb:256:in `render_partial'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/partial_renderer.rb:228:in `block (2 levels) in render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `block in instrument'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:33:in `instrument'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/partial_renderer.rb:227:in `block in render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/partial_renderer.rb:219:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:41:in `render_partial'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/helpers/rendering_helper.rb:27:in `render'
app/views/layouts/pictures.html.erb:4:in `_app_views_layouts_pictures_html_erb___1703071847365294431_22026920'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/template.rb:171:in `block in render'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:55:in `instrument'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/template.rb:169:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:52:in `render_with_layout'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:38:in `render_template'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:12:in `block in render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/abstract_renderer.rb:22:in `wrap_formats'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/template_renderer.rb:9:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:36:in `render_template'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_view/renderer/renderer.rb:17:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:120:in `_render_template'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/streaming.rb:250:in `_render_template'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:114:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/renderers.rb:30:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/compatibility.rb:43:in `render_to_body'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:99:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:16:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `block in ms'
/opt/ruby-1.9.3-p0/lib/ruby/1.9.1/benchmark.rb:295:in `realtime'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/core_ext/benchmark.rb:5:in `ms'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:40:in `block in render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:78:in `cleanup_view_runtime'
[GEM_ROOT]/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime'
[GEM_ROOT]/gems/thinking-sphinx-2.0.10/lib/thinking_sphinx/action_controller.rb:12:in `cleanup_view_runtime'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:39:in `render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:10:in `default_render'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/implicit_render.rb:5:in `send_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:167:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/rendering.rb:10:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:425:in `_run__108937060683959279__process_action__92800621948533106__callbacks'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:386:in `_run_process_action_callbacks'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/callbacks.rb:81:in `run_callbacks'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/rescue.rb:17:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `block in instrument'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[GEM_ROOT]/gems/activesupport-3.1.3/lib/active_support/notifications.rb:53:in `instrument'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/params_wrapper.rb:201:in `process_action'
[GEM_ROOT]/gems/activerecord-3.1.3/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/base.rb:121:in `process'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/abstract_controller/rendering.rb:45:in `process'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal.rb:193:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_controller/metal.rb:236:in `block in action'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:65:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:29:in `call'
[GEM_ROOT]/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:152:in `block in call'
[GEM_ROOT]/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `block in recognize'
[GEM_ROOT]/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:96:in `optimized_each'
[GEM_ROOT]/gems/rack-mount-0.8.3/lib/rack/mount/code_generation.rb:95:in `recognize'
[GEM_ROOT]/gems/rack-mount-0.8.3/lib/rack/mount/route_set.rb:141:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/routing/route_set.rb:532:in `call'
[GEM_ROOT]/gems/omniauth-1.0.1/lib/omniauth/strategy.rb:168:in `call!'
[GEM_ROOT]/gems/omniauth-1.0.1/lib/omniauth/strategy.rb:148:in `call'
[GEM_ROOT]/gems/omniauth-1.0.1/lib/omniauth/builder.rb:34:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/etag.rb:23:in `call'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/conditionalget.rb:25:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/head.rb:14:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/flash.rb:247:in `call'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:195:in `context'
[GEM_ROOT]/gems/rack-1.3.5/lib/rack/session/abstract/id.rb:190:in `call'
[GEM_ROOT]/gems/actionpack-3.1.3/lib/action_dispatch/middleware/cookies.rb:331:in `call'
[GEM_ROOT]/gems/activerecord-3.1.3/lib/active_record/query_cache.rb:64:in `call'