Skip to content

Instantly share code, notes, and snippets.

@richdownie
Created April 10, 2010 19:06
Show Gist options
  • Select an option

  • Save richdownie/362231 to your computer and use it in GitHub Desktop.

Select an option

Save richdownie/362231 to your computer and use it in GitHub Desktop.
ActiveRecord::StatementInvalid in Line_items#search
Showing app/views/line_items/_results.html.erb where line #2 raised:
PGError: ERROR: column reference "id" is ambiguous
LINE 1: ...d WHERE ("issues"."issue_type_id" = 23) ORDER BY id asc LIM...
^
: SELECT "line_items"."id" AS t0_r0, "line_items"."issue_id" AS t0_r1, "line_items"."created_at" AS t0_r2, "line_items"."updated_at" AS t0_r3, "line_items"."position" AS t0_r4, "line_items"."status" AS t0_r5, "line_items"."resolved_at" AS t0_r6, "line_items"."closed_at" AS t0_r7, "line_items"."most_recent_post_date" AS t0_r8, "issues"."id" AS t1_r0, "issues"."issue_type_id" AS t1_r1, "issues"."initiator_id" AS t1_r2, "issues"."responder_id" AS t1_r3, "issues"."creator_id" AS t1_r4, "issues"."created_at" AS t1_r5, "issues"."updated_at" AS t1_r6, "issues"."status" AS t1_r7, "issues"."initiator_organization_ids" AS t1_r8, "issues"."responder_organization_ids" AS t1_r9, "issues"."issue_id" AS t1_r10, "issues"."closed_at" AS t1_r11 FROM "line_items" LEFT OUTER JOIN "issues" ON "issues".id = "line_items".issue_id WHERE ("issues"."issue_type_id" = 23) ORDER BY id asc LIMIT 1
Extracted source (around line #2):
1: <div>
2: <%= pagination_info line_items %> &nbsp;
3: </div>
4:
5: <table class="result-list issues">
Trace of template inclusion: app/views/line_items/index.html.erb
RAILS_ROOT: /var/www/railsapps/auto/releases/20100410185934
Application Trace | Framework Trace | Full Trace
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log_without_newrelic_instrumentation'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:52:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:50:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `execute'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1037:in `select_raw'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1024:in `select'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
/var/www/railsapps/auto/releases/20100410185934/config/initializers/query_caching.rb:12:in `cache_sql'
/var/www/railsapps/auto/releases/20100410185934/config/initializers/model_dot_first_fix.rb:10:in `find_initial'
/var/www/railsapps/auto/releases/20100410185934/app/helpers/issue_resolution_helper.rb:148:in `pagination_info'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/_results.html.erb:2:in `_run_erb_app47views47line_items47_results46html46erb_locals_issue_type_line_items_object_results'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/index.html.erb:50:in `_run_erb_app47views47line_items47index46html46erb'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/index.html.erb:17:in `_run_erb_app47views47line_items47index46html46erb'
/var/www/railsapps/auto/releases/20100410185934/app/controllers/line_items_controller.rb:27:in `search'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log_without_newrelic_instrumentation'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:52:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:50:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `execute'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1037:in `select_raw'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1024:in `select'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1614:in `select_all_rows'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1392:in `find_with_associations'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1390:in `catch'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1390:in `find_with_associations'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1546:in `find_every'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:613:in `find'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:181:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:181:in `method_missing'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:2143:in `with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:113:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:113:in `with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:174:in `method_missing'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:132:in `first'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in `with_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:20:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:19:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in `render_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:44:in `render_partial_without_trace_View___path__Partial'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/partials.rb:184:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:262:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/var/www/railsapps/auto/releases/20100410185934/vendor/plugins/shway_skeletons/lib/helpers/skeletons_helper.rb:36:in `skeleton'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in `with_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in `render_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:260:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:343:in `_render_with_layout'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:257:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1250:in `render_for_file'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:in `render_without_benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:in `call_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/flash.rb:146:in `perform_action_without_newrelic_trace'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:122:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:38:in `trace_method_execution_no_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:117:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in `process_without_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in `sass_old_process'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/sass/plugin/rails.rb:19:in `process'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:391:in `process'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb:437:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in `dispatch'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:121:in `_call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:122:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in `cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:28:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:106:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:400:in `start_request_handler'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:351:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/utils.rb:184:in `safe_fork'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:349:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:163:in `start'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/bin/passenger-spawn-server:61
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log_without_newrelic_instrumentation'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:52:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/active_record_instrumentation.rb:50:in `log'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:550:in `execute'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1037:in `select_raw'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1024:in `select'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all_without_query_cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
/var/www/railsapps/auto/releases/20100410185934/config/initializers/query_caching.rb:12:in `cache_sql'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:60:in `select_all'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1614:in `select_all_rows'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1392:in `find_with_associations'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1390:in `catch'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/associations.rb:1390:in `find_with_associations'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1546:in `find_every'
/var/www/railsapps/auto/releases/20100410185934/config/initializers/model_dot_first_fix.rb:10:in `find_initial'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:613:in `find'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:181:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:181:in `method_missing'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:2143:in `with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:113:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:113:in `with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:174:in `method_missing'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/named_scope.rb:132:in `first'
/var/www/railsapps/auto/releases/20100410185934/app/helpers/issue_resolution_helper.rb:148:in `pagination_info'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/_results.html.erb:2:in `_run_erb_app47views47line_items47_results46html46erb_locals_issue_type_line_items_object_results'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in `with_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:20:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:26:in `benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:19:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in `render_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable_partial.rb:44:in `render_partial_without_trace_View___path__Partial'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/partials.rb:184:in `render_partial'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:262:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/index.html.erb:50:in `_run_erb_app47views47line_items47index46html46erb'
/var/www/railsapps/auto/releases/20100410185934/vendor/plugins/shway_skeletons/lib/helpers/skeletons_helper.rb:36:in `skeleton'
/var/www/railsapps/auto/releases/20100410185934/app/views/line_items/index.html.erb:17:in `_run_erb_app47views47line_items47index46html46erb'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:34:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:301:in `with_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/renderable.rb:30:in `render_without_trace_View___path__Rendering'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:161:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:160:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/template.rb:199:in `render_template'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:260:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:343:in `_render_with_layout'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_view/base.rb:257:in `render_without_haml'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/haml/helpers/action_view_mods.rb:13:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1250:in `render_for_file'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:951:in `render_without_benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in `render'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:51:in `render'
/var/www/railsapps/auto/releases/20100410185934/app/controllers/line_items_controller.rb:27:in `search'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:1331:in `perform_action_without_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:617:in `call_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/1.8/benchmark.rb:308:in `realtime'
/opt/ree/lib/ruby/gems/1.8/gems/activesupport-2.3.4/lib/active_support/core_ext/benchmark.rb:17:in `ms'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/rescue.rb:160:in `perform_action_without_flash'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/flash.rb:146:in `perform_action_without_newrelic_trace'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:138:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:62:in `trace_method_execution_with_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:122:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/method_tracer.rb:38:in `trace_method_execution_no_scope'
/opt/ree/lib/ruby/gems/1.8/gems/newrelic_rpm-2.9.5/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:117:in `perform_action'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in `send'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:532:in `process_without_filters'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/filters.rb:606:in `sass_old_process'
/opt/ree/lib/ruby/gems/1.8/gems/haml-2.2.1/lib/sass/plugin/rails.rb:19:in `process'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:391:in `process'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/base.rb:386:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/routing/route_set.rb:437:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:87:in `dispatch'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:121:in `_call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:130:in `build_middleware_stack'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/head.rb:9:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/methodoverride.rb:24:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/params_parser.rb:15:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/session/abstract_store.rb:122:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:29:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:9:in `cache'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/query_cache.rb:28:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract/connection_pool.rb:361:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/failsafe.rb:26:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/rack-1.0.1/lib/rack/lock.rb:11:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/actionpack-2.3.4/lib/action_controller/dispatcher.rb:106:in `call'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/rack/request_handler.rb:92:in `process_request'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_request_handler.rb:207:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:400:in `start_request_handler'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:351:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/utils.rb:184:in `safe_fork'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:349:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:163:in `start'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/railz/application_spawner.rb:209:in `start'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:262:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:126:in `lookup_or_add'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:256:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:80:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:255:in `spawn_rails_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:154:in `spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/spawn_manager.rb:287:in `handle_spawn_application'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `__send__'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:352:in `main_loop'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/lib/phusion_passenger/abstract_server.rb:196:in `start_synchronously'
/opt/ree/lib/ruby/gems/1.8/gems/passenger-2.2.9/bin/passenger-spawn-server:61
Request
Parameters:
{"issue_type_id"=>"23",
"search_id"=>"43"}
Show session dump
---
Response
Headers:
{"Content-Type"=>"text/html",
"Cache-Control"=>"no-cache"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment