openaustralia / morph

Take the hassle out of web scraping
https://morph.io
GNU Affero General Public License v3.0
461 stars 74 forks source link

Exception thrown when trying to create connection logs #1071

Open henare opened 8 years ago

henare commented 8 years ago
[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

View full backtrace and more info at honeybadger.io

henare commented 8 years ago

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.