Created
March 21, 2013 02:57
-
-
Save normancapule/5210368 to your computer and use it in GitHub Desktop.
Intermittent error occuring in rails 3.2.11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#error trace | |
Started GET "/" for 124.6.182.55 at 2013-03-21 13:40:08 +1100 | |
Processing by DashboardsController#show as HTML | |
Rendered activities/_slip_activity.html.erb (4.4ms) | |
Rendered slips/_form.html.erb (19.8ms) | |
Rendered slips/_delete_button.html.haml (1.9ms) | |
Rendered slips/_slip.html.erb (27.5ms) | |
Rendered activities/_group_header.html.erb (0.2ms) | |
Rendered activities/_activity.html.erb (19.7ms) | |
Rendered activities/_group_header.html.erb (0.1ms) | |
Rendered activities/_activity.html.erb (1.6ms) | |
Rendered activities/_group_header.html.erb (0.2ms) | |
Rendered activities/_activity.html.erb (33.1ms) | |
Rendered activities/_grouped_activities.html.erb (65.0ms) | |
Rendered activities/_group_header.html.erb (0.2ms) | |
Rendered activities/_activity.html.erb (3.8ms) | |
Rendered activities/_group_header.html.erb (0.1ms) | |
Rendered activities/_activity.html.erb (75.9ms) | |
Rendered activities/_group_header.html.erb (0.2ms) | |
Rendered activities/_activity.html.erb (4.4ms) | |
Rendered activities/_group_header.html.erb (0.2ms) | |
Rendered activities/_activity.html.erb (9.5ms) | |
Rendered activities/_grouped_activities.html.erb (102.6ms) | |
Rendered dashboards/show.html.erb within layouts/dashboards (207.2ms) | |
Completed 500 Internal Server Error in 231ms | |
ActionView::Template::Error (undefined method `locked' for #<Class:0x000000075f78f8>): | |
87: <%= will_paginate @trashed_acts, :param_name => 'trashed_page' %> | |
88: </div> | |
89: </div> | |
90: <% if can? :manage, @company %> | |
91: <div class="tab-pane" id="reports"> | |
92: <%= render "reports", {:user_type => "admin"} %> | |
93: </div> | |
activerecord (3.2.11) lib/active_record/dynamic_matchers.rb:55:in `method_missing' | |
activerecord (3.2.11) lib/active_record/relation/delegation.rb:14:in `block in locked' | |
activerecord (3.2.11) lib/active_record/relation.rb:241:in `block in scoping' | |
activerecord (3.2.11) lib/active_record/scoping.rb:98:in `with_scope' | |
activerecord (3.2.11) lib/active_record/relation.rb:241:in `scoping' | |
activerecord (3.2.11) lib/active_record/relation/delegation.rb:14:in `locked' | |
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/query_cache.rb:83:in `locked?' | |
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/query_cache.rb:59:in `select_all' | |
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:24:in `select_one' | |
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/database_statements.rb:30:in `select_value' | |
activerecord (3.2.11) lib/active_record/relation/finder_methods.rb:202:in `exists?' | |
activerecord (3.2.11) lib/active_record/associations/collection_association.rb:326:in `include?' | |
activerecord (3.2.11) lib/active_record/associations/collection_proxy.rb:46:in `include?' | |
app/models/ability.rb:11:in `block in initialize' | |
cancan (1.6.9) lib/cancan/rule.rb:34:in `call' | |
cancan (1.6.9) lib/cancan/rule.rb:34:in `matches_conditions?' | |
cancan (1.6.9) lib/cancan/ability.rb:58:in `block in can?' | |
cancan (1.6.9) lib/cancan/ability.rb:57:in `each' | |
cancan (1.6.9) lib/cancan/ability.rb:57:in `detect' | |
cancan (1.6.9) lib/cancan/ability.rb:57:in `can?' | |
cancan (1.6.9) lib/cancan/controller_additions.rb:375:in `can?' | |
actionpack (3.2.11) lib/abstract_controller/helpers.rb:53:in `can?' | |
app/views/dashboards/show.html.erb:90:in `_app_views_dashboards_show_html_erb___4411244871511439388_73612280' | |
actionpack (3.2.11) lib/action_view/template.rb:145:in `block in render' | |
activesupport (3.2.11) lib/active_support/notifications.rb:125:in `instrument' | |
actionpack (3.2.11) lib/action_view/template.rb:143:in `render' | |
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:47:in `block (2 levels) in render_template' | |
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument' | |
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument' | |
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument' | |
actionpack (3.2.11) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument' | |
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:46:in `block in render_template' | |
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:54:in `render_with_layout' | |
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:45:in `render_template' | |
actionpack (3.2.11) lib/action_view/renderer/template_renderer.rb:18:in `render' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:156:in `block in render_with_newrelic' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:155:in `render_with_newrelic' | |
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:36:in `render_template' | |
actionpack (3.2.11) lib/action_view/renderer/renderer.rb:17:in `render' | |
actionpack (3.2.11) lib/abstract_controller/rendering.rb:110:in `_render_template' | |
actionpack (3.2.11) lib/action_controller/metal/streaming.rb:225:in `_render_template' | |
actionpack (3.2.11) lib/abstract_controller/rendering.rb:103:in `render_to_body' | |
actionpack (3.2.11) lib/action_controller/metal/renderers.rb:28:in `render_to_body' | |
actionpack (3.2.11) lib/action_controller/metal/compatibility.rb:50:in `render_to_body' | |
actionpack (3.2.11) lib/abstract_controller/rendering.rb:88:in `render' | |
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:16:in `render' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block (2 levels) in render' | |
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `block in ms' | |
/usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `realtime' | |
activesupport (3.2.11) lib/active_support/core_ext/benchmark.rb:5:in `ms' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:40:in `block in render' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:83:in `cleanup_view_runtime' | |
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:24:in `cleanup_view_runtime' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:39:in `render' | |
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:10:in `default_render' | |
actionpack (3.2.11) lib/action_controller/metal/mime_responds.rb:196:in `respond_to' | |
app/controllers/dashboards_controller.rb:17:in `show' | |
actionpack (3.2.11) lib/action_controller/metal/implicit_render.rb:4:in `send_action' | |
actionpack (3.2.11) lib/abstract_controller/base.rb:167:in `process_action' | |
actionpack (3.2.11) lib/action_controller/metal/rendering.rb:10:in `process_action' | |
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:18:in `block in process_action' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:480:in `_run__1168370032228650982__process_action__1420004814414540794__callbacks' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks' | |
actionpack (3.2.11) lib/abstract_controller/callbacks.rb:17:in `process_action' | |
actionpack (3.2.11) lib/action_controller/metal/rescue.rb:29:in `process_action' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:30:in `block in process_action' | |
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `block in instrument' | |
activesupport (3.2.11) lib/active_support/notifications/instrumenter.rb:20:in `instrument' | |
activesupport (3.2.11) lib/active_support/notifications.rb:123:in `instrument' | |
actionpack (3.2.11) lib/action_controller/metal/instrumentation.rb:29:in `process_action' | |
actionpack (3.2.11) lib/action_controller/metal/params_wrapper.rb:207:in `process_action' | |
activerecord (3.2.11) lib/active_record/railties/controller_runtime.rb:18:in `process_action' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in `block in process_action' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:268:in `block in perform_action_with_newrelic_trace' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/method_tracer.rb:240:in `trace_execution_scoped' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/controller_instrumentation.rb:263:in `perform_action_with_newrelic_trace' | |
newrelic_rpm (3.5.8.72) lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in `process_action' | |
actionpack (3.2.11) lib/abstract_controller/base.rb:121:in `process' | |
actionpack (3.2.11) lib/abstract_controller/rendering.rb:45:in `process' | |
actionpack (3.2.11) lib/action_controller/metal.rb:203:in `dispatch' | |
actionpack (3.2.11) lib/action_controller/metal/rack_delegation.rb:14:in `dispatch' | |
actionpack (3.2.11) lib/action_controller/metal.rb:246:in `block in action' | |
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `call' | |
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:73:in `dispatch' | |
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:36:in `call' | |
journey (1.0.4) lib/journey/router.rb:68:in `block in call' | |
journey (1.0.4) lib/journey/router.rb:56:in `each' | |
journey (1.0.4) lib/journey/router.rb:56:in `call' | |
actionpack (3.2.11) lib/action_dispatch/routing/route_set.rb:601:in `call' | |
newrelic_rpm (3.5.8.72) lib/new_relic/rack/error_collector.rb:8:in `call' | |
newrelic_rpm (3.5.8.72) lib/new_relic/rack/agent_hooks.rb:14:in `call' | |
newrelic_rpm (3.5.8.72) lib/new_relic/rack/browser_monitoring.rb:12:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call' | |
rack (1.4.5) lib/rack/etag.rb:23:in `call' | |
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/head.rb:14:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/params_parser.rb:21:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/flash.rb:242:in `call' | |
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context' | |
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/cookies.rb:341:in `call' | |
dragonfly (0.9.14) lib/dragonfly/cookie_monster.rb:9:in `call' | |
activerecord (3.2.11) lib/active_record/query_cache.rb:64:in `call' | |
activerecord (3.2.11) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `_run__3067645758728573593__call__1380840935364469534__callbacks' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:405:in `__run_callback' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:385:in `_run_call_callbacks' | |
activesupport (3.2.11) lib/active_support/callbacks.rb:81:in `run_callbacks' | |
actionpack (3.2.11) lib/action_dispatch/middleware/callbacks.rb:27:in `call' | |
rack (1.4.5) lib/rack/sendfile.rb:102:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/remote_ip.rb:31:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call' | |
railties (3.2.11) lib/rails/rack/logger.rb:32:in `call_app' | |
railties (3.2.11) lib/rails/rack/logger.rb:16:in `block in call' | |
activesupport (3.2.11) lib/active_support/tagged_logging.rb:22:in `tagged' | |
railties (3.2.11) lib/rails/rack/logger.rb:16:in `call' | |
actionpack (3.2.11) lib/action_dispatch/middleware/request_id.rb:22:in `call' | |
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call' | |
rack (1.4.5) lib/rack/runtime.rb:17:in `call' | |
activesupport (3.2.11) lib/active_support/cache/strategy/local_cache.rb:72:in `call' | |
rack (1.4.5) lib/rack/lock.rb:15:in `call' | |
dragonfly (0.9.14) lib/dragonfly/middleware.rb:13:in `call' | |
rack-cache (1.2) lib/rack/cache/context.rb:136:in `forward' | |
rack-cache (1.2) lib/rack/cache/context.rb:245:in `fetch' | |
rack-cache (1.2) lib/rack/cache/context.rb:185:in `lookup' | |
rack-cache (1.2) lib/rack/cache/context.rb:66:in `call!' | |
rack-cache (1.2) lib/rack/cache/context.rb:51:in `call' | |
railties (3.2.11) lib/rails/engine.rb:479:in `call' | |
railties (3.2.11) lib/rails/application.rb:223:in `call' | |
railties (3.2.11) lib/rails/railtie/configurable.rb:30:in `method_missing' | |
passenger (3.0.19) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request' | |
passenger (3.0.19) lib/phusion_passenger/abstract_request_handler.rb:516:in `accept_and_process_next_request' | |
passenger (3.0.19) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop' | |
passenger (3.0.19) lib/phusion_passenger/rack/application_spawner.rb:206:in `start_request_handler' | |
passenger (3.0.19) lib/phusion_passenger/rack/application_spawner.rb:171:in `block in handle_spawn_application' | |
passenger (3.0.19) lib/phusion_passenger/utils.rb:470:in `safe_fork' | |
passenger (3.0.19) lib/phusion_passenger/rack/application_spawner.rb:166:in `handle_spawn_application' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:180:in `start' | |
passenger (3.0.19) lib/phusion_passenger/rack/application_spawner.rb:129:in `start' | |
passenger (3.0.19) lib/phusion_passenger/spawn_manager.rb:253:in `block (2 levels) in spawn_rack_application' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server_collection.rb:132:in `lookup_or_add' | |
passenger (3.0.19) lib/phusion_passenger/spawn_manager.rb:246:in `block in spawn_rack_application' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server_collection.rb:82:in `block in synchronize' | |
<internal:prelude>:10:in `synchronize' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server_collection.rb:79:in `synchronize' | |
passenger (3.0.19) lib/phusion_passenger/spawn_manager.rb:244:in `spawn_rack_application' | |
passenger (3.0.19) lib/phusion_passenger/spawn_manager.rb:137:in `spawn_application' | |
passenger (3.0.19) lib/phusion_passenger/spawn_manager.rb:275:in `handle_spawn_application' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:357:in `server_main_loop' | |
passenger (3.0.19) lib/phusion_passenger/abstract_server.rb:206:in `start_synchronously' | |
passenger (3.0.19) helper-scripts/passenger-spawn-server:99:in `<main>' | |
#models/ability.rb:10-11 | |
can :manage, Company, Company.where(:id => user.company) do |company| | |
company.users.include? user |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment