yeti-web
yeti-web copied to clipboard
Account batch delete issue
delay job crashing with error:
PG::NotNullViolation: ERROR: null value in column "item_id" of relation "versions" violates not-null constraint
DETAIL: Failing row contains (4226, Account, null, destroy, 3, ---
t0_r0: 53
t0_r1: 35
t0_r2: !ruby/object:BigDecimal 36:-0.797..., 2024-02-02 06:23:25.759452+00, 176.37.31.98, ---
t0_r0:
- 53
-
t0_r1:
- 35
-
t0_r2:
- !ruby/object:BigDecimal..., 823245).
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `exec_params'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:768:in `block (2 levels) in exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/share_lock.rb:187:in `yield_shares'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/dependencies/interlock.rb:41:in `permit_concurrent_loads'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:767:in `block in exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `handle_interrupt'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:25:in `block in synchronize'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `handle_interrupt'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/concurrency/load_interlock_aware_monitor.rb:21:in `synchronize'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:752:in `block in log'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activesupport-7.0.7.2/lib/active_support/notifications/instrumenter.rb:24:in `instrument'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract_adapter.rb:743:in `log'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:766:in `exec_no_cache'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql_adapter.rb:745:in `execute_and_clear'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:54:in `exec_query'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:132:in `exec_insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/postgresql/database_statements.rb:88:in `exec_insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/database_statements.rb:167:in `insert'
/opt/yeti-web/vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.7.2/lib/active_record/connection_adapters/abstract/query_cache.rb:22:in `insert'