Erro ao cadastrar uma Avaliações descritivas

I, [2022-10-20T16:52:57.808323 #1139231]  INFO -- : LOG: ApplicationController#policy - Policy found
E, [2022-10-20T16:52:57.843751 #1139231] ERROR -- : /var/www/i-diario/app/models/student_enrollment.rb:117:in `block (2 levels) in by_opinion_type_query'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in `each'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in `each'
/var/www/i-diario/app/models/student_enrollment.rb:114:in `block in by_opinion_type_query'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in `each'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:46:in `each'
/var/www/i-diario/app/models/student_enrollment.rb:109:in `by_opinion_type_query'
/var/www/i-diario/app/models/student_enrollment.rb:26:in `block in <class:StudentEnrollment>'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/scoping/named.rb:155:in `block (2 levels) in scope'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation.rb:302:in `scoping'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/scoping/named.rb:155:in `block in scope'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:70:in `block in by_opinion_type'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation.rb:302:in `scoping'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/relation/delegation.rb:70:in `by_opinion_type'
/var/www/i-diario/app/services/student_enrollments_list.rb:75:in `fetch_student_enrollments'
/var/www/i-diario/app/services/student_enrollments_list.rb:37:in `student_enrollments'
/var/www/i-diario/app/controllers/descriptive_exams_controller.rb:163:in `fetch_student_enrollments'
/var/www/i-diario/app/controllers/descriptive_exams_controller.rb:167:in `fetch_students'
/var/www/i-diario/app/controllers/descriptive_exams_controller.rb:286:in `view_data'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:145:in `block in halting_and_conditional'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `each'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:504:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/var/www/i-diario/app/controllers/application_controller.rb:305:in `set_thread_origin_type'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:312:in `block in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/var/www/i-diario/app/controllers/application_controller.rb:295:in `set_user_current'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:312:in `block in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/bundler/gems/activerecord-connections-b2a704ff10c4/lib/active_record/connections.rb:32:in `using_connection'
/var/www/i-diario/app/models/entity.rb:23:in `using_connection'
/var/www/i-diario/app/controllers/application_controller.rb:91:in `handle_customer'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:432:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:312:in `block in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:498:in `block (2 levels) in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:313:in `block (2 levels) in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/bundler/gems/audited-6d2ff8d5ae81/lib/audited/sweeper.rb:14:in `around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:455:in `public_send'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:455:in `block in make_lambda'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:312:in `block in halting'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:497:in `block in around'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:505:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:92:in `__run_callbacks__'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_process_action_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/abstract_controller/callbacks.rb:19:in `process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal/rescue.rb:29:in `process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal/instrumentation.rb:32:in `block in process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/notifications.rb:164:in `block in instrument'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/notifications.rb:164:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal/instrumentation.rb:30:in `process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal/params_wrapper.rb:250:in `process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/railties/controller_runtime.rb:18:in `process_action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/abstract_controller/base.rb:137:in `process'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionview-4.2.11.1/lib/action_view/rendering.rb:30:in `process'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal.rb:196:in `dispatch'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal/rack_delegation.rb:13:in `dispatch'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_controller/metal.rb:237:in `block in action'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:74:in `dispatch'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:43:in `serve'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/journey/router.rb:43:in `block in serve'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/journey/router.rb:30:in `each'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/journey/router.rb:30:in `serve'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/routing/route_set.rb:817:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/action_dispatch/routing/route_set.rb:14:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/fanout.rb:25:in `instrument'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/action_dispatch/routing/route_set.rb:13:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/warden-1.2.7/lib/warden/manager.rb:36:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/warden-1.2.7/lib/warden/manager.rb:35:in `catch'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/warden-1.2.7/lib/warden/manager.rb:35:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/etag.rb:24:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/conditionalget.rb:25:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/head.rb:13:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/params_parser.rb:27:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/flash.rb:260:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/session/abstract/id.rb:252:in `context'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/session/abstract/id.rb:247:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/cookies.rb:560:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/query_cache.rb:36:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activerecord-4.2.11.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/callbacks.rb:29:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:88:in `__run_callbacks__'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:778:in `_run_call_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/callbacks.rb:27:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/remote_ip.rb:78:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/railties-4.2.11.1/lib/rails/rack/logger.rb:38:in `call_app'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/railties-4.2.11.1/lib/rails/rack/logger.rb:20:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/tagged_logging.rb:68:in `block in tagged'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/tagged_logging.rb:26:in `tagged'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/tagged_logging.rb:68:in `tagged'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/railties-4.2.11.1/lib/rails/rack/logger.rb:20:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/request_id.rb:21:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/action_dispatch/request_id.rb:12:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/methodoverride.rb:22:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/runtime.rb:18:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/activesupport-4.2.11.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/static.rb:120:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-1.6.13/lib/rack/sendfile.rb:113:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/rack-cors-1.0.6/lib/rack/cors.rb:98:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/honeybadger-4.5.6/lib/honeybadger/rack/error_notifier.rb:33:in `block in call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/honeybadger-4.5.6/lib/honeybadger/agent.rb:397:in `with_rack_env'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/honeybadger-4.5.6/lib/honeybadger/rack/error_notifier.rb:30:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/honeybadger-4.5.6/lib/honeybadger/rack/user_feedback.rb:31:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/honeybadger-4.5.6/lib/honeybadger/rack/user_informer.rb:21:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/skylight-core-4.3.2/lib/skylight/core/probes/middleware.rb:26:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/railties-4.2.11.1/lib/rails/engine.rb:518:in `call'
/home/deploy/.rvm/gems/ruby-2.4.10/gems/railties-4.2.11.1/lib/rails/application.rb:165:in `call'
/usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:107:in `process_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:149:in `accept_and_process_next_request'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:110:in `main_loop'
/usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:419:in `block (3 levels) in start_threads'
/usr/lib/ruby/vendor_ruby/phusion_passenger/utils.rb:113:in `block in create_thread_and_abort_on_exception'
E, [2022-10-20T16:52:57.845854 #1139231] ERROR -- honeybadger: ** [Honeybadger] Unable to send error report: API key is missing. id=e470aba6-7d9b-46bd-9663-1ddc2a7645f5 level=3 pid=1139231

ieducar 2.7.0
idiario 1.4.1