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' , '0' , '59' , 'US' , '18.97.14.86' , 'blogs' , 'CCBot/2.0 (https://commoncrawl.org/faq/)')#0 active_records->insert(metrics, Array ([site_id] => '1',[blog_id] => '0',[category_id] => '59',[location] => 'US',[ip] => '18.97.14.86',[page] => 'blogs',[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] => 0,[category_id] => 59,[page] => blogs,[location] => US,[ip] => 18.97.14.86,[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(blogs, 0, 59) called at [/var/www/html/_actions/pages_auth/tpl/components/blogs/index.php:275] #4 blogsAjax->render(1762462284_6259_) called at [/var/www/html/_core/API_routing.php:1663] #5 AJAX_component->drow() called at [/var/www/html/_actions/pages_auth/tpl/blogs.php:3] #6 include_once(/var/www/html/_actions/pages_auth/tpl/blogs.php) called at [/var/www/html/_core/API_routing.php:1972] #7 API_Controller->__loadView(tpl/blogs, non_auth) called at [/var/www/html/_actions/pages_auth/index.php:56] #8 Controller->blogs(Array ([category] => platforms,[page] => 1,[per_page] => 10,[order] => desc)) called at [/var/www/html/_core/API_routing.php:2253] #9 run() called at [/var/www/html/index.php:47]