fjordllc / bootcamp

プログラマー向けEラーニングシステム
https://bootcamp.fjord.jp
MIT License
286 stars 71 forks source link

ActiveRecord::RecordInvalid: バリデーションに失敗しました: Userはすでに存在します #8155

Open komagata opened 1 month ago

komagata commented 1 month ago

View details in Rollbar: https://app.rollbar.com/a/komagata/fix/item/Bootcamp/1751



ActiveRecord::RecordInvalid: バリデーションに失敗しました: Userはすでに存在します
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/validations.rb", line 80, in raise_validation_error
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/validations.rb", line 53, in save!
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/transactions.rb", line 302, in block in save!
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/transactions.rb", line 354, in block in with_transaction_returning_status
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/database_statements.rb", line 320, in block in transaction
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/transaction.rb", line 319, in block in within_new_transaction
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 26, in block (2 levels) in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 25, in block in synchronize
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in handle_interrupt
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/concurrency/load_interlock_aware_monitor.rb", line 21, in synchronize
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/transaction.rb", line 317, in within_new_transaction
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/connection_adapters/abstract/database_statements.rb", line 320, in transaction
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/transactions.rb", line 350, in with_transaction_returning_status
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/transactions.rb", line 302, in save!
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/suppressor.rb", line 48, in save!
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/persistence.rb", line 55, in create!
  File "/app/app/models/report_notifier.rb", line 54, in create_advisers_watch
  File "/app/app/models/report_notifier.rb", line 36, in block in notify_advisers
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation/delegation.rb", line 88, in each
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/relation/delegation.rb", line 88, in each
  File "/app/app/models/report_notifier.rb", line 34, in notify_advisers
  File "/app/app/models/report_notifier.rb", line 19, in notify_users
  File "/app/app/models/report_notifier.rb", line 12, in call
  File "/usr/local/bundle/gems/newspaper-0.2.0/lib/newspaper.rb", line 22, in block in publish
  File "/usr/local/bundle/gems/newspaper-0.2.0/lib/newspaper.rb", line 21, in each
  File "/usr/local/bundle/gems/newspaper-0.2.0/lib/newspaper.rb", line 21, in publish
  File "/app/app/controllers/reports_controller.rb", line 73, in update
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/basic_implicit_render.rb", line 6, in send_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 228, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rendering.rb", line 30, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 42, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 117, in block in run_callbacks
  File "/usr/local/bundle/gems/react-rails-3.1.1/lib/react/rails/controller_lifecycle.rb", line 33, in use_react_component_helper
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 37, in block (3 levels) in <module:Filter>
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 25, in run_with
  File "/usr/local/bundle/gems/active_decorator-1.4.1/lib/active_decorator/view_context.rb", line 36, in block (2 levels) in <module:Filter>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/rendering.rb", line 20, in with_renderer
  File "/usr/local/bundle/gems/actiontext-6.1.4.7/lib/action_text/engine.rb", line 59, in block (4 levels) in <class:Engine>
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in instance_exec
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 126, in block in run_callbacks
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/callbacks.rb", line 137, in run_callbacks
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/callbacks.rb", line 41, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/rescue.rb", line 22, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 34, in block in process_action
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in block in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications/instrumenter.rb", line 24, in instrument
  File "/usr/local/bundle/gems/activesupport-6.1.4.7/lib/active_support/notifications.rb", line 203, in instrument
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/instrumentation.rb", line 33, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal/params_wrapper.rb", line 249, in process_action
  File "/usr/local/bundle/gems/activerecord-6.1.4.7/lib/active_record/railties/controller_runtime.rb", line 27, in process_action
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/abstract_controller/base.rb", line 165, in process
  File "/usr/local/bundle/gems/actionview-6.1.4.7/lib/action_view/rendering.rb", line 39, in process
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/lib/action_controller/metal.rb", line 190, in dispatch
  File "/usr/local/bundle/gems/actionpack-6.1.4.7/li