morph
morph copied to clipboard
Exception thrown when trying to create connection logs
[Morph/production] ActiveRecord::StatementInvalid: Mysql2::Error: Deadlock found when trying to get lock; try restarting transaction: UPDATE `runs` SET `connection_logs_count` = COALESCE(`connection_logs_count`, 0) + 1 WHERE `runs`.`id` = 506225
Backtrace
line 14 of [PROJECT_ROOT]/app/controllers/connection_logs_controller.rb: create
This has recently been starting to happen hundreds and sometimes thousands of times an hour so I'm pretty sure it's related to a recent change. It just affects the backend so users aren't directly impacted but AFAIK it means mitmproxy can't log connections.
Assigning to @mlandauer.