Skip to content

Instantly share code, notes, and snippets.

@jeffdeville
Created July 23, 2012 19:01
Show Gist options
  • Select an option

  • Save jeffdeville/3165443 to your computer and use it in GitHub Desktop.

Select an option

Save jeffdeville/3165443 to your computer and use it in GitHub Desktop.
backtrace from airbrake
[GEM_ROOT]/gems/mysql2-0.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:265:in `query'
[GEM_ROOT]/gems/mysql2-0.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:265:in `execute'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract_adapter.rb:202:in `log_without_newrelic_instrumentation'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract_adapter.rb:200:in `log_without_newrelic_instrumentation'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/active_record.rb:31:in `log'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/active_record.rb:28:in `log'
[GEM_ROOT]/gems/mysql2-0.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:265:in `execute'
[GEM_ROOT]/gems/mysql2-0.2.18/lib/active_record/connection_adapters/mysql2_adapter.rb:586:in `select'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/database_statements.rb:7:in `select_all'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/query_cache.rb:54:in `select_all'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/query_cache.rb:68:in `cache_sql'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/query_cache.rb:54:in `select_all'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/base.rb:473:in `find_by_sql_without_trace_ActiveRecord_self_name_find_by_sql'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:491:in `find_by_sql'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:486:in `find_by_sql'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation.rb:64:in `to_a'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:343:in `find_first'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:122:in `first'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:301:in `find_one'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:291:in `find_with_ids'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:107:in `find'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/relation/finder_methods.rb:101:in `find'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/base.rb:444:in `__send__'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/base.rb:444:in `find'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/associations/belongs_to_association.rb:59:in `send'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/associations/belongs_to_association.rb:59:in `find_target'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/associations/association_proxy.rb:246:in `load_target'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/associations/association_proxy.rb:117:in `_load'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/associations.rb:1442:in `property_management_company'
app/models/inventory/effective_methods.rb:29:in `effective_pricing_guardrails'
lib/dynamic_pricing.rb:11:in `percent_off'
app/models/inventory/price_calculations.rb:474:in `current_percent_off'
app/models/inventory/price_calculations.rb:334:in `discount_percentage_for_checkin'
app/models/inventory/price_calculations.rb:445:in `approx_discounted_price_per_night'
app/models/inventory.rb:222:in `diff'
app/models/inventory.rb:357:in `call'
app/models/inventory.rb:357:in `compare_feature'
app/models/inventory.rb:354:in `map'
app/models/inventory.rb:354:in `compare_feature'
app/models/inventory.rb:220:in `diff'
app/models/inventory.rb:218:in `tap'
app/models/inventory.rb:218:in `diff'
app/controllers/inventories_controller.rb:159:in `compare'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/implicit_render.rb:4:in `send_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/abstract_controller/base.rb:150:in `process_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/rendering.rb:11:in `process_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/abstract_controller/callbacks.rb:18:in `process_action'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:477:in `_run__1776091788__process_action__1695628855__callbacks'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:221:in `_conditional_callback_around_2555'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/caching/actions.rb:147:in `filter'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:326:in `around'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:315:in `send'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:315:in `_callback_around_241'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:220:in `_conditional_callback_around_2555'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:476:in `_run__1776091788__process_action__1695628855__callbacks'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:410:in `send'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:410:in `_run_process_action_callbacks'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:94:in `send'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:94:in `run_callbacks'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/abstract_controller/callbacks.rb:17:in `process_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/rescue.rb:17:in `process_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/notifications.rb:52:in `instrument'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/notifications.rb:52:in `instrument'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/instrumentation.rb:29:in `process_action'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `process_action'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:255:in `perform_action_with_newrelic_trace'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/method_tracer.rb:242:in `trace_execution_scoped'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:250:in `perform_action_with_newrelic_trace'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/abstract_controller/base.rb:119:in `process'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/abstract_controller/rendering.rb:41:in `process'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal.rb:138:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal/rack_delegation.rb:14:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_controller/metal.rb:178:in `action'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/routing/route_set.rb:62:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/routing/route_set.rb:62:in `dispatch'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/routing/route_set.rb:27:in `call'
[GEM_ROOT]/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:148:in `call'
[GEM_ROOT]/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:93:in `recognize'
[GEM_ROOT]/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:75:in `optimized_each'
[GEM_ROOT]/gems/rack-mount-0.6.14/lib/rack/mount/code_generation.rb:92:in `recognize'
[GEM_ROOT]/gems/rack-mount-0.6.14/lib/rack/mount/route_set.rb:139:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/routing/route_set.rb:493:in `call'
[GEM_ROOT]/gems/robdimarco_authlogic_oauth2-1.1.4/lib/oauth2_callback_filter.rb:10:in `call'
[GEM_ROOT]/gems/newrelic_rpm-3.3.4.1/lib/new_relic/rack/browser_monitoring.rb:23:in `call'
[GEM_ROOT]/gems/sass-3.1.15/lib/sass/../sass/plugin/rack.rb:54:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/head.rb:14:in `call'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/methodoverride.rb:24:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/params_parser.rb:21:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/flash.rb:182:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/session/abstract_store.rb:149:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/cookies.rb:302:in `call'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/query_cache.rb:32:in `call'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/query_cache.rb:28:in `cache'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/query_cache.rb:12:in `cache'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/query_cache.rb:31:in `call'
[GEM_ROOT]/gems/activerecord-3.0.12/lib/active_record/connection_adapters/abstract/connection_pool.rb:354:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/callbacks.rb:46:in `call'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/callbacks.rb:416:in `_run_call_callbacks'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/callbacks.rb:44:in `call'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/sendfile.rb:106:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/remote_ip.rb:48:in `call'
[GEM_ROOT]/gems/actionpack-3.0.12/lib/action_dispatch/middleware/show_exceptions.rb:47:in `call'
[GEM_ROOT]/gems/railties-3.0.12/lib/rails/rack/logger.rb:13:in `call'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/runtime.rb:17:in `call'
[GEM_ROOT]/gems/activesupport-3.0.12/lib/active_support/cache/strategy/local_cache.rb:72:in `call'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/lock.rb:13:in `call'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/lock.rb:13:in `synchronize'
[GEM_ROOT]/gems/rack-1.2.5/lib/rack/lock.rb:13:in `call'
[GEM_ROOT]/gems/railties-3.0.12/lib/rails/application.rb:168:in `call'
[GEM_ROOT]/gems/railties-3.0.12/lib/rails/application.rb:77:in `send'
[GEM_ROOT]/gems/railties-3.0.12/lib/rails/application.rb:77:in `method_missing'
/usr/libexec/passenger/lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
/usr/libexec/passenger/lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:171:in `send'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:171:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/utils.rb:479:in `safe_fork'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:180:in `start'
/usr/libexec/passenger/lib/phusion_passenger/rack/application_spawner.rb:129:in `start'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:253:in `spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:246:in `spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:82:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `__send__'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop'
/usr/libexec/passenger/lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously'
/usr/libexec/passenger/bin/passenger-spawn-server:101
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment