Skip to content

Instantly share code, notes, and snippets.

@Kulgar
Last active August 1, 2016 16:22
Show Gist options
  • Select an option

  • Save Kulgar/37f4e441555072d2ed54fee9f3c5bb04 to your computer and use it in GitHub Desktop.

Select an option

Save Kulgar/37f4e441555072d2ed54fee9f3c5bb04 to your computer and use it in GitHub Desktop.

Revisions

  1. Kulgar revised this gist Aug 1, 2016. 1 changed file with 5 additions and 6 deletions.
    11 changes: 5 additions & 6 deletions stacktrace.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    From production app:
    ```bash
    # From production app:

    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: read "_account_lookup4/1" 0.0000
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] ^[[1m^[[35mAccount Load (0.8ms)^[[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 1 LIMIT 1 [["id", 1]] [production:1 master]
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: generate "_account_lookup4/1" 0.0030
    @@ -122,12 +122,12 @@ PG::UnableToSend (no connection to the server
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
    /usr/share/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
    ```


    From the console:

    ```bash
    # From the console:


    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `async_exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:813:in `exec_no_cache'
    @@ -184,4 +184,3 @@ From the console:
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    ```
  2. Kulgar revised this gist Aug 1, 2016. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions stacktrace.txt
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    From production app:

    ```bash
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: read "_account_lookup4/1" 0.0000
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] ^[[1m^[[35mAccount Load (0.8ms)^[[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 1 LIMIT 1 [["id", 1]] [production:1 master]
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: generate "_account_lookup4/1" 0.0030
    @@ -122,11 +122,12 @@ PG::UnableToSend (no connection to the server
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
    /usr/share/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'

    ```


    From the console:

    ```bash
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `async_exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:813:in `exec_no_cache'
    @@ -183,3 +184,4 @@ From the console:
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    ```
  3. Kulgar revised this gist Aug 1, 2016. 1 changed file with 129 additions and 0 deletions.
    129 changes: 129 additions & 0 deletions stacktrace.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,132 @@
    From production app:

    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: read "_account_lookup4/1" 0.0000
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] ^[[1m^[[35mAccount Load (0.8ms)^[[0m SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 1 LIMIT 1 [["id", 1]] [production:1 master]
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: generate "_account_lookup4/1" 0.0030
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0]

    ActiveRecord::StatementInvalid (PG::UnableToSend: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.
    : SELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 1 LIMIT 1):
    app/models/account.rb:1118:in `block (2 levels) in find_cached'
    app/models/account.rb:1116:in `block in find_cached'
    app/models/account.rb:1115:in `find_cached'
    app/models/account.rb:1134:in `block in get_special_account'
    app/models/account.rb:1129:in `get_special_account'
    app/models/account.rb:1095:in `default'
    app/middleware/load_account.rb:15:in `default_domain_root_account'
    app/middleware/load_account.rb:8:in `call'
    app/middleware/request_context_generator.rb:49:in `call'
    app/middleware/prevent_non_multipart_parse.rb:32:in `call'

    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] Processing by ApplicationController#rescue_action_dispatch_exception as */*
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: read "_account_lookup4/1" 0.0000
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] ^[[1m^[[36mAccount Load (0.4ms)^[[0m ^[[1mSELECT "accounts".* FROM "accounts" WHERE "accounts"."id" = 1 LIMIT 1^[[0m [["id", 1]] [production:1 master]
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0] CacheStore: generate "_account_lookup4/1" 0.0020
    [- 6354c4d2-3927-411a-af09-5f2cc99ef8e0]


    PG::UnableToSend (no connection to the server
    ):
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `async_exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:472:in `block in log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/lib/switchman/sharded_instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:466:in `log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/lib/switchman/active_record/abstract_adapter.rb:33:in `log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql/database_statements.rb:160:in `exec_query'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:356:in `select'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract/database_statements.rb:32:in `select_all'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/lib/switchman/active_record/query_cache.rb:63:in `select_all'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/querying.rb:39:in `find_by_sql'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/lib/switchman/active_record/statement_cache.rb:22:in `block in execute'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:553:in `block in activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:79:in `activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:552:in `activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/lib/switchman/active_record/statement_cache.rb:21:in `execute'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/core.rb:153:in `find'
    /home/deploy/canvas-lms/app/models/account.rb:1118:in `block (2 levels) in find_cached'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:299:in `block in fetch'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:585:in `block in save_block_result_to_cache'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `block in instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in `block in instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:547:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:584:in `save_block_result_to_cache'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/cache.rb:299:in `fetch'
    /home/deploy/canvas-lms/app/models/account.rb:1116:in `block in find_cached'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:553:in `block in activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:79:in `activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:552:in `activate'
    /home/deploy/canvas-lms/app/models/account.rb:1115:in `find_cached'
    /home/deploy/canvas-lms/app/models/account.rb:1134:in `block in get_special_account'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:553:in `block in activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:79:in `activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.3/app/models/switchman/shard_internal.rb:552:in `activate'
    /home/deploy/canvas-lms/app/models/account.rb:1129:in `get_special_account'
    /home/deploy/canvas-lms/app/models/account.rb:1095:in `default'
    /home/deploy/canvas-lms/app/middleware/load_account.rb:15:in `default_domain_root_account'
    /home/deploy/canvas-lms/app/controllers/application_controller.rb:360:in `load_account'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:432:in `block in make_lambda'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:164:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:164:in `block in halting'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `block in call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `each'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:504:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/callbacks.rb:81:in `run_callbacks'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/abstract_controller/callbacks.rb:19:in `process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal/rescue.rb:29:in `process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in `block in instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.2.6/lib/active_support/notifications.rb:164:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.2.6/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/abstract_controller/base.rb:137:in `process'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionview-4.2.6/lib/action_view/rendering.rb:30:in `process'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/mini_profiler/profiling_methods.rb:79:in `block in profile_method'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal.rb:196:in `dispatch'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_controller/metal.rb:237:in `block in action'
    /home/deploy/canvas-lms/config/application.rb:239:in `call'
    /home/deploy/canvas-lms/config/application.rb:239:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb:47:in `render_exception'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb:35:in `rescue in call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/rack/logger.rb:38:in `call_app'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/rack/logger.rb:22:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/request_store-1.3.1/lib/request_store/middleware.rb:9:in `call'
    /home/deploy/canvas-lms/app/middleware/request_context_generator.rb:49:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:in `call'
    /home/deploy/canvas-lms/app/middleware/prevent_non_multipart_parse.rb:32:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-1.6.4/lib/rack/runtime.rb:18:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/actionpack-4.2.6/lib/action_dispatch/middleware/static.rb:120:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/mini_profiler/profiler.rb:193:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/engine.rb:518:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/application.rb:165:in `call'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `public_send'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.2.6/lib/rails/railtie.rb:194:in `method_missing'
    /usr/share/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:97:in `process_request'
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:152:in `accept_and_process_next_request'
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:113:in `main_loop'
    /usr/share/ruby/vendor_ruby/phusion_passenger/request_handler.rb:416:in `block (3 levels) in start_threads'
    /usr/share/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'



    From the console:

    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `async_exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:813:in `exec_no_cache'
  4. Kulgar created this gist Aug 1, 2016.
    56 changes: 56 additions & 0 deletions stacktrace.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,56 @@
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/rack-mini-profiler-0.9.2/lib/patches/sql_patches.rb:160:in `async_exec'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:813:in `exec_no_cache'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:138:in `block in exec_query'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract_adapter.rb:442:in `block in log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/sharded_instrumenter.rb:20:in `instrument'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract_adapter.rb:437:in `log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/abstract_adapter.rb:37:in `log'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql/database_statements.rb:137:in `exec_query'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/postgresql_adapter.rb:930:in `select'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/connection_adapters/abstract/database_statements.rb:25:in `select_all'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/query_cache.rb:63:in `select_all'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/querying.rb:36:in `find_by_sql'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/relation.rb:587:in `exec_queries'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/shackles/relation.rb:11:in `exec_queries'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/relation.rb:471:in `load'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/relation.rb:220:in `to_a'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/relation.rb:53:in `to_a'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/relation.rb:55:in `block in to_a'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/relation.rb:83:in `activate'
    /usr/local/rvm/gems/ruby-2.1.6/gems/switchman-1.5.13/lib/switchman/active_record/relation.rb:55:in `to_a'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/relation/finder_methods.rb:326:in `find_first'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/relation/finder_methods.rb:91:in `first'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-deprecated_finders-1.0.4/lib/active_record/deprecated_finders/relation.rb:129:in `first'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activerecord-4.0.13/lib/active_record/querying.rb:3:in `first'
    (irb):7:in `irb_binding'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/workspace.rb:86:in `eval'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/workspace.rb:86:in `evaluate'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/context.rb:380:in `evaluate'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:492:in `block (2 levels) in eval_input'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:624:in `signal_status'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:489:in `block in eval_input'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/ruby-lex.rb:247:in `block (2 levels) in each_top_level_statement'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `loop'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/ruby-lex.rb:233:in `block in each_top_level_statement'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `catch'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb/ruby-lex.rb:232:in `each_top_level_statement'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:488:in `eval_input'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:397:in `block in start'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:396:in `catch'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/2.1.0/irb.rb:396:in `start'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.0.13/lib/rails/commands/console.rb:90:in `start'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.0.13/lib/rails/commands/console.rb:9:in `start'
    /usr/local/rvm/gems/ruby-2.1.6/gems/railties-4.0.13/lib/rails/commands.rb:62:in `<top (required)>'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `block in require'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:229:in `require'
    /root/canvas/bin/rails:9:in `<top (required)>'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `block in load'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:214:in `load_dependency'
    /usr/local/rvm/gems/ruby-2.1.6/gems/activesupport-4.0.13/lib/active_support/dependencies.rb:223:in `load'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'
    /usr/local/rvm/rubies/ruby-2.1.6/lib/ruby/site_ruby/2.1.0/rubygems/core_ext/kernel_require.rb:54:in `require'