I've updated to rails 4.2. When I follow up on deprecation warnings and set config.active_record.raise_in_transactional_callbacks = true in my environment, I start running into issues:
Failure/Error: Unable to find matching line from backtrace
NoMethodError:
undefined method `id' for nil:NilClass
The id refers to current_user.id, which has become unavailable (hence the warden and devise mentions in the error trace).
When removing config.active_record.raise_in_transactional_callbacks = true, deprecation warnings appear only with respect to two models that use paperclip, which leads me to believe that this might be an issue with paperclip callbacks. I could just ignore the deprecation warnings, but i'd rather fix the underlying issue. Any suggestions?
Here's an error trace:
commpleted 500 Internal Server Error in 152ms
Unexpected error while processing request: undefined method `env' for nil:NilClass
/Users/j/.rvm/gems/ruby-2.1.2/gems/devise-3.4.1/lib/devise/controllers/helpers.rb:135:in `warden'
/Users/j/.rvm/gems/ruby-2.1.2/gems/devise-3.4.1/lib/devise/controllers/helpers.rb:120:in `current_user'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/abstract_controller/helpers.rb:67:in `current_user'
/Users/j/Google Drive/rails_projects/versneller/app/views/sync/messages/_message.html.erb:48:in `_app_views_sync_messages__message_html_erb___1152654597097292680_70140856995020'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications.rb:166:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:309:in `render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:47:in `render_partial'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:21:in `render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/helpers/rendering_helper.rb:32:in `render'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/renderer.rb:16:in `render_to_string'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/partial.rb:29:in `render_to_string'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/partial_creator.rb:30:in `message'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/actions.rb:87:in `block (2 levels) in sync_new'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/actions.rb:86:in `collect'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/actions.rb:86:in `block in sync_new'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/actions.rb:80:in `collect'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/actions.rb:80:in `sync_new'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/action.rb:17:in `perform'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/model_actions.rb:48:in `each'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/model_actions.rb:48:in `publish_sync_actions'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:250:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:250:in `block in conditional'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:245:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:245:in `block in conditional'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_commit_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:314:in `committed!'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:93:in `commit_records'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:157:in `commit'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:179:in `commit_transaction'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:198:in `within_new_transaction'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:220:in `transaction'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:344:in `with_transaction_returning_status'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:286:in `block in save'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/transactions.rb:285:in `save'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/persistence.rb:34:in `create'
/Users/j/Google Drive/rails_projects/versneller/app/controllers/instances_controller.rb:74:in `advice'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/rendering.rb:10:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:288:in `block (2 levels) in halting_and_conditional'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/controller_helpers.rb:22:in `block in enable_sync'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/model.rb:24:in `enable'
/Users/j/.rvm/gems/ruby-2.1.2/gems/sync-0.3.5/lib/sync/controller_helpers.rb:21:in `enable_sync'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:287:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:287:in `block in halting_and_conditional'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:151:in `block in halting_and_conditional'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:19:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/rescue.rb:29:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137:in `process'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionview-4.2.0/lib/action_view/rendering.rb:30:in `process'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal.rb:195:in `dispatch'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_controller/metal.rb:236:in `block in action'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:42:in `serve'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `each'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `serve'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:802:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/bullet-4.14.4/lib/bullet/rack.rb:10:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb:35:in `block in call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb:34:in `catch'
/Users/j/.rvm/gems/ruby-2.1.2/gems/warden-1.2.3/lib/warden/manager.rb:34:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/etag.rb:24:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/conditionalget.rb:25:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/head.rb:13:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/remotipart-1.2.1/lib/remotipart/middleware.rb:27:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:in `context'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:73:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/runtime.rb:18:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/lock.rb:17:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb:113:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/sendfile.rb:113:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/application.rb:164:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/content_length.rb:15:in `call'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/connection.rb:86:in `block in pre_process'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/connection.rb:84:in `catch'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/connection.rb:84:in `pre_process'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/connection.rb:53:in `process'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/connection.rb:39:in `receive_data'
/Users/j/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'
/Users/j/.rvm/gems/ruby-2.1.2/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/backends/base.rb:73:in `start'
/Users/j/.rvm/gems/ruby-2.1.2/gems/thin-1.6.3/lib/thin/server.rb:162:in `start'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/handler/thin.rb:19:in `run'
/Users/j/.rvm/gems/ruby-2.1.2/gems/rack-1.6.0/lib/rack/server.rb:286:in `start'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands/server.rb:80:in `start'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:80:in `block in server'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `tap'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:75:in `server'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
/Users/j/.rvm/gems/ruby-2.1.2/gems/railties-4.2.0/lib/rails/commands.rb:17:in `<top (required)>'
bin/railre'
Here is the issue related to what you say : https://github.com/thoughtbot/paperclip/issues/1933 (especially my comments : https://github.com/thoughtbot/paperclip/issues/1933#issuecomment-169607838 and https://github.com/thoughtbot/paperclip/issues/1933#issuecomment-170509222 )
Please note that this warning is not an error, it only tells you the futur behaviour of ActiveRecord, which is not to shallow error.
Removing config.active_record.raise_in_transactional_callbacks = true will show you the warning of after_commit / after_rollback and switch to the old behaviour, which is shallowing errors.
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'm trying to upload a mp3 file to aws bucket using carrierwave gem. I'm getting Broken Pipe exception. Here is the full trace
Broken pipe (Errno::EPIPE)
/Users/datt/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/openssl/buffering.rb:376:in `syswrite_nonblock'
/Users/datt/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/openssl/buffering.rb:376:in `write_nonblock'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/socket.rb:243:in `block in write_nonblock'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/socket.rb:238:in `loop'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/socket.rb:238:in `write_nonblock'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/socket.rb:78:in `write'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:152:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/mock.rb:47:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/instrumentor.rb:22:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:15:in `request_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:233:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/idempotent.rb:26:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:256:in `rescue in request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:204:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/idempotent.rb:26:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:256:in `rescue in request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:204:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/idempotent.rb:26:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/middlewares/base.rb:10:in `error_call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:256:in `rescue in request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/excon-0.45.3/lib/excon/connection.rb:204:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-core-1.30.0/lib/fog/core/connection.rb:81:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-xml-0.1.2/lib/fog/xml/connection.rb:9:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-aws-0.1.2/lib/fog/aws/storage.rb:593:in `_request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-aws-0.1.2/lib/fog/aws/storage.rb:588:in `request'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-aws-0.1.2/lib/fog/aws/requests/storage/put_object.rb:43:in `put_object'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-aws-0.1.2/lib/fog/aws/models/storage/file.rb:212:in `save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/fog-core-1.30.0/lib/fog/core/collection.rb:51:in `create'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:261:in `store'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/storage/fog.rb:80:in `store!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb:59:in `block in store!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/uploader/callbacks.rb:17:in `with_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/uploader/store.rb:58:in `store!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb:375:in `store!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/carrierwave-0.10.0/lib/carrierwave/mount.rb:207:in `store_file_url!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:427:in `block in make_lambda'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:225:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:225:in `block in halting_and_conditional'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:219:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:219:in `block in halting_and_conditional'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_save_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/callbacks.rb:302:in `create_or_update'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/persistence.rb:120:in `save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/validations.rb:37:in `save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/attribute_methods/dirty.rb:21:in `save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:286:in `block (2 levels) in save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:347:in `block in with_transaction_returning_status'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/transaction.rb:188:in `within_new_transaction'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:220:in `transaction'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:344:in `with_transaction_returning_status'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:286:in `block in save'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:301:in `rollback_active_record_state!'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/transactions.rb:285:in `save'
/Users/datt/projects/ruby/yogurt/Yolo/app/controllers/sound_tracks_controller.rb:59:in `upload'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/rendering.rb:10:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:117:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:234:in `block in halting'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:169:in `block in halting'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:92:in `_run_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:19:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/rescue.rb:29:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:31:in `block in process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137:in `process'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionview-4.2.0/lib/action_view/rendering.rb:30:in `process'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal.rb:195:in `dispatch'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_controller/metal.rb:236:in `block in action'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:42:in `serve'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `each'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/journey/router.rb:30:in `serve'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/routing/route_set.rb:802:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/etag.rb:24:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/conditionalget.rb:38:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/head.rb:13:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:in `context'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activerecord-4.2.0/lib/active_record/migration.rb:378:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/reloader.rb:73:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/runtime.rb:18:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/lock.rb:17:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/actionpack-4.2.0/lib/action_dispatch/middleware/static.rb:113:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/sendfile.rb:113:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/railties-4.2.0/lib/rails/application.rb:164:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/lock.rb:17:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/content_length.rb:15:in `call'
/Users/datt/.rvm/gems/ruby-2.0.0-p643/gems/rack-1.6.0/lib/rack/handler/webrick.rb:89:in `service'
/Users/datt/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/httpserver.rb:138:in `service'
/Users/datt/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/httpserver.rb:94:in `run'
/Users/datt/.rvm/rubies/ruby-2.0.0-p643/lib/ruby/2.0.0/webrick/server.rb:295:in `block in start_thread'
Completed 422 Unprocessable Entity in 26996ms (Views: 0.5ms | ActiveRecord: 39.7ms)
I found the problem. Carrierwave configurations for aws s3 was improper.
We were upgrading to Rails 4.2/Ruby 2.2 (from Rails 3.2-stable/Ruby 2.1.5) at work when we realize that something before worked fine now it doesn't.
Receiving a binary file from a external service (Unity app) the error was this one:
ActionView::Template::Error: unknown encoding name - "utf-8"
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:210:in `find'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:210:in `block in tag_multipart_encoding'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:206:in `each'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:206:in `tag_multipart_encoding'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:74:in `block (2 levels) in parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:249:in `get_data'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:73:in `block in parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:56:in `loop'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart/parser.rb:56:in `parse'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/multipart.rb:25:in `parse_multipart'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/request.rb:373:in `parse_multipart'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/request.rb:207:in `POST'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/request.rb:308:in `POST'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/parameters.rb:14:in `parameters'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/http/filter_parameters.rb:37:in `filtered_parameters'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/_request.text.erb:3:in `__var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier__request_text_erb___651057998597931832_70129559954080'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:339:in `render_partial'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:310:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/partial_renderer.rb:309:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:47:in `render_partial'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/helpers/rendering_helper.rb:35:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:9:in `block in __var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier_exception_notification_text_erb__4040125496682424407_70129560304780'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:7:in `map'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/views/exception_notifier/exception_notification.text.erb:7:in `__var_www_my_dev_shared_bundle_ruby_______gems_exception_notification_______lib_exception_notifier_views_exception_notifier_exception_notification_text_erb__4040125496682424407_70129560304780'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:145:in `block in render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:333:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/template.rb:143:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:54:in `block (2 levels) in render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/abstract_renderer.rb:39:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:53:in `block in render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:61:in `render_with_layout'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:52:in `render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/template_renderer.rb:14:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:42:in `render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/renderer/renderer.rb:23:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:100:in `_render_template'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:83:in `render_to_body'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/rendering.rb:25:in `render'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:87:in `block (2 levels) in exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/collector.rb:26:in `custom'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/collector.rb:10:in `text'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:87:in `block in exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:888:in `collect_responses'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:828:in `mail'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier/notifier.rb:86:in `exception_notification'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:198:in `process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:20:in `block in process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_process_action_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/callbacks.rb:19:in `process_action'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/abstract_controller/base.rb:137:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionview-4.2.0/lib/action_view/rendering.rb:30:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:596:in `block in process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `block in instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/notifications.rb:164:in `instrument'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:593:in `process'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/base.rb:584:in `initialize'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:25:in `new'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:25:in `__getobj__'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:34:in `message'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:85:in `deliver_now'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionmailer-4.2.0/lib/action_mailer/message_delivery.rb:105:in `deliver'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier.rb:42:in `rescue in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/exception_notification-2.6.0/lib/exception_notifier.rb:34:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/etag.rb:24:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/conditionalget.rb:25:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/head.rb:13:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/flash.rb:260:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:in `context'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activerecord-4.2.0/lib/active_record/query_cache.rb:36:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activerecord-4.2.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:647:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:88:in `_run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:734:in `_run_call_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/callbacks.rb:81:in `run_callbacks'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:38:in `call_app'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `block in call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:26:in `tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/tagged_logging.rb:68:in `tagged'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/rack/logger.rb:20:in `call'
/home/www/my/dev/releases/20150205135055/config/initializers/quiet_assets.rb:6:in `call_with_quiet_assets'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/actionpack-4.2.0/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/runtime.rb:18:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/activesupport-4.2.0/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/rack-1.6.0/lib/rack/sendfile.rb:113:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/home/www/my/dev/releases/20150205135055/lib/ping_monitor.rb:14:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/engine.rb:518:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/application.rb:164:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `public_send'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/railties-4.2.0/lib/rails/railtie.rb:194:in `method_missing'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/newrelic_rpm-3.9.9.275/lib/new_relic/agent/instrumentation/middleware_tracing.rb:57:in `call'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:535:in `process_client'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:610:in `worker_loop'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:491:in `spawn_missing_workers'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/lib/unicorn/http_server.rb:141:in `start'
/var/www/my/dev/shared/bundle/ruby/2.1.0/gems/unicorn-4.4.0/bin/unicorn_rails:209:in `<top (required)>'
/var/www/my/dev/shared/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `load'
/var/www/my/dev/shared/bundle/ruby/2.1.0/bin/unicorn_rails:23:in `<main>'
We use WWWForm.AddBinaryData from Unity side. Encoding: text/html; charset=ASCII-8BIT. Example:
form.AddBinaryData("image", jpegEncoder.GetBytes(), "imageName", "text/html; charset=ASCII-8BIT");
We searched in Rails changelog but we haven't seen anything new related.
Finally we moved to a different approach: this service provides a Base64 string and it works fine (but 30% aprox. weighter), so would be nice if someone has any idea about it.
In case anyone else runs into this, I've forked Rack and fixed it so that this error isn't thrown:
https://github.com/ianhirschfeld/rack
Essentially, I had to manually check the encoding for Unity's funky "utf-8" string and then force it to UTF-8 which Rack handles properly.
I am upgrading from rails 2.3 to rails 3.2. I have models divided into sub folders. Just like there is a model app/models/ad/ad.rb the other app/models/ad/ad_city.rb but inside the model it is written as:
class Ad < ActiveRecord::Base
class AdCity < ActiveRecord::Base
and not:
class Ad::Ad < ActiveRecord::Base
class Ad::AdCity < ActiveRecord::Base
I have in my application.rb:
config.autoload_paths += Dir[Rails.root.join('app', 'models', '{**}')]
even I tried including each folder in config.autoload_paths. But it give me a thousand lines warning:
Warning: Error loading /home/deep/projects/upgrade/models/myapp/app/models/ad/ad_city.rb:
uninitialized constant Ad::AdCity
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:230:in `block in constantize'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `each'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/inflector/methods.rb:229:in `constantize'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:64:in `block (2 levels) in load_models'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:54:in `each'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:54:in `block in load_models'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:53:in `each'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:53:in `load_models'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/context.rb:15:in `prepare'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx.rb:81:in `block in context'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx.rb:78:in `synchronize'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx.rb:78:in `context'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/thinking-sphinx-2.0.11/lib/thinking_sphinx/active_record.rb:162:in `define_index'
/home/deep/projects/upgrade/models/myapp/app/models/user/user_indexes.rb:6:in `included'
/home/deep/projects/upgrade/models/myapp/app/models/user/user.rb:295:in `include'
/home/deep/projects/upgrade/models/myapp/app/models/user/user.rb:295:in `<class:User>'
/home/deep/projects/upgrade/models/myapp/app/models/user/user.rb:1:in `<top (required)>'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:364:in `block in load_file_with_constant_tracking_internal'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:240:in `now_loading'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:364:in `load_file_with_constant_tracking_internal'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:234:in `block in load_file_with_constant_tracking'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:383:in `async_synchronize'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/dependencies_patch.rb:229:in `load_file_with_constant_tracking'
/home/deep/projects/upgrade/models/myapp/lib/authenticated_system.rb:108:in `login_from_session'
/home/deep/projects/upgrade/models/myapp/lib/authenticated_system.rb:24:in `current_user'
/home/deep/projects/upgrade/models/myapp/lib/authenticated_system.rb:14:in `logged_in?'
/home/deep/projects/upgrade/models/myapp/app/controllers/application_controller.rb:288:in `set_timezone'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:429:in `_run__402496120916004207__process_action__1098406492416702350__callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/abstract_controller/callbacks.rb:17:in `process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal/instrumentation.rb:30:in `block in process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/notifications.rb:123:in `block in instrument'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/notifications.rb:123:in `instrument'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal/params_wrapper.rb:207:in `process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activerecord-3.2.19/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/abstract_controller/base.rb:121:in `process'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/abstract_controller/rendering.rb:45:in `process'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal.rb:203:in `dispatch'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_controller/metal.rb:246:in `block in action'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/routing/route_set.rb:73:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/routing/route_set.rb:73:in `dispatch'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/routing/route_set.rb:36:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/journey-1.0.4/lib/journey/router.rb:68:in `block in call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/journey-1.0.4/lib/journey/router.rb:56:in `each'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/journey-1.0.4/lib/journey/router.rb:56:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/routing/route_set.rb:608:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/exception_notification-4.0.1/lib/exception_notification/rack.rb:28:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/bundler/gems/rails-dev-boost-bf49caca6670/lib/rails_development_boost/async.rb:14:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/etag.rb:23:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/conditionalget.rb:25:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/head.rb:14:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/flash.rb:242:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:210:in `context'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/session/abstract/id.rb:205:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/cookies.rb:341:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activerecord-3.2.19/lib/active_record/query_cache.rb:64:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activerecord-3.2.19/lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `_run__2960753221531180313__call__4371824738127159201__callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/reloader.rb:65:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/better_errors-2.0.0/lib/better_errors/middleware.rb:84:in `protected_app_call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/better_errors-2.0.0/lib/better_errors/middleware.rb:79:in `better_errors_call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/better_errors-2.0.0/lib/better_errors/middleware.rb:57:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/rack/logger.rb:32:in `call_app'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/rack/logger.rb:16:in `block in call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/tagged_logging.rb:22:in `tagged'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/rack/logger.rb:16:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/request_id.rb:22:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/methodoverride.rb:21:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/runtime.rb:17:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/activesupport-3.2.19/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/lock.rb:15:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/actionpack-3.2.19/lib/action_dispatch/middleware/static.rb:63:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/engine.rb:484:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/application.rb:231:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/content_length.rb:14:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/railties-3.2.19/lib/rails/rack/log_tailer.rb:17:in `call'
/home/deep/.rvm/gems/ruby-2.1.2#upgrade_mygemset/gems/rack-1.4.5/lib/rack/handler/webrick.rb:59:in `service'
/home/deep/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:138:in `service'
/home/deep/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/httpserver.rb:94:in `run'
/home/deep/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/webrick/server.rb:295:in `block in start_thread'
for all the models. It doesn't throw any error just gives warning each time my app makes any connection with the database. What should I do. Please help