Coursemology/coursemology.org

ActiveRecord::StatementInvalid: Interrupt: : SELECT COUNT(*) FROM `assessment_questions` INNER JOIN `question_assessments` ON `assessment_questions`.`id` = `question_assessments`.`question_id` WHERE `question_assessments`.`assessment_id` = 2553 AND (`asse

jsyeo opened this issue · 0 comments

View details in Rollbar: https://rollbar.com/jsyeo/coursemology.org/items/53/


Interrupt
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 245, in query
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 245, in block in execute
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb", line 280, in block in log
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activesupport-3.2.14/lib/active_support/notifications/instrumenter.rb", line 20, in instrument
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_adapter.rb", line 275, in log
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/active_record.rb", line 63, in block in log_with_newrelic_instrumentation
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/method_tracer.rb", line 219, in trace_execution_scoped
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/newrelic_rpm-3.9.1.236/lib/new_relic/agent/instrumentation/active_record.rb", line 60, in log_with_newrelic_instrumentation
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 245, in execute
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb", line 213, in execute
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb", line 217, in exec_query
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/mysql2_adapter.rb", line 226, in select
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb", line 18, in select_all
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/query_cache.rb", line 63, in select_all
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb", line 24, in select_one
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract/database_statements.rb", line 30, in select_value
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/calculations.rb", line 250, in execute_simple_calculation
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/calculations.rb", line 215, in perform_calculation
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/calculations.rb", line 159, in calculate
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/calculations.rb", line 162, in calculate
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/calculations.rb", line 58, in count
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/associations/collection_association.rb", line 210, in count
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/associations/collection_proxy.rb", line 46, in count
  File "/home/raymoond/jenkins/workspace/coursemology_second/lib/tasks/run_task.rake", line 21, in block (3 levels) in <top (required)>
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/delegation.rb", line 6, in each
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/relation/delegation.rb", line 6, in each
  File "/home/raymoond/jenkins/workspace/coursemology_second/lib/tasks/run_task.rake", line 20, in block (2 levels) in <top (required)>
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 240, in call
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 240, in block in execute
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 235, in each
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 235, in execute
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 179, in block in invoke_with_call_chain
  File "/home/raymoond/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/monitor.rb", line 211, in mon_synchronize
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 172, in invoke_with_call_chain
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/task.rb", line 165, in invoke
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 150, in invoke_task
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 106, in block (2 levels) in top_level
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 106, in each
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 106, in block in top_level
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 115, in run_with_threads
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 100, in top_level
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 78, in block in run
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 176, in standard_exception_handling
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/lib/rake/application.rb", line 75, in run
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/rake-10.3.2/bin/rake", line 33, in <top (required)>
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/bin/rake", line 23, in load
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/bin/rake", line 23, in <main>
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks", line 15, in eval
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/bin/ruby_executable_hooks", line 15, in <main>
ActiveRecord::StatementInvalid: Interrupt: : SELECT COUNT(*) FROM `assessment_questions` INNER JOIN `question_assessments` ON `assessment_questions`.`id` = `question_assessments`.`question_id` WHERE `question_assessments`.`assessment_id` = 2553 AND (`assessment_questions`.`deleted_at` IS NULL)
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gems/activerecord-3.2.14/lib/active_record/connection_adapters/abstract_mysql_adapter.rb", line 245, in query
  File "/home/raymoond/.rvm/gems/ruby-2.1.2/gem