Deadlock found when trying to get lock; try restarting transaction: INSERT into metrics (`site_id` , `blog_id` , `category_id` , `location` , `ip` , `page` , `agent`) VALUES ('1' , '561' , '0' , 'US' , '2600:1f28:365:80b0:97a4:e9e4:30fc:b589' , '' , 'CCBot/2.0 (https://commoncrawl.org/faq/)')#0 active_records->insert(metrics, Array ([site_id] => '1',[blog_id] => '561',[category_id] => '0',[location] => 'US',[ip] => '2600:1f28:365:80b0:97a4:e9e4:30fc:b589',[page] => '',[agent] => 'CCBot/2.0 (https://commoncrawl.org/faq/)'), ) called at [/var/www/html/_core/API_model.php:1750] #1 API_Model->__f_save() called at [/var/www/html/_core/API_model.php:469] #2 API_Model->__f_loadAndRun(Array ([blog_id] => 561,[category_id] => 0,[page] => ,[location] => US,[ip] => 2600:1f28:365:80b0:97a4:e9e4:30fc:b589,[source] => ,[search_keywords] => ,[undefined_url] => ,[agent] => CCBot/2.0 (https://commoncrawl.org/faq/))) called at [/var/www/html/_core/GlobalFunctions.php:627] #3 GlobalFunctions->saveMetrics(, 561) called at [/var/www/html/_actions/pages_auth/tpl/components/blog/index.php:438] #4 blogAjax->render(1786164247_3033_) called at [/var/www/html/_core/API_routing.php:1663] #5 AJAX_component->drow() called at [/var/www/html/_actions/pages_auth/tpl/blog.php:3] #6 include_once(/var/www/html/_actions/pages_auth/tpl/blog.php) called at [/var/www/html/_core/API_routing.php:1972] #7 API_Controller->__loadView(tpl/blog, non_auth) called at [/var/www/html/_actions/pages_auth/index.php:64] #8 Controller->blog(Array ([permalink] => ansible-redis)) called at [/var/www/html/_core/API_routing.php:2253] #9 run() called at [/var/www/html/index.php:47]