Database Error:
PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /www/wwwroot/filesgun.com/app/core/Database.class.php:187
Stack trace:
#0 /www/wwwroot/filesgun.com/app/core/Database.class.php(187): PDOStatement->execute()
#1 /www/wwwroot/filesgun.com/app/helpers/DownloadTrackerHelper.class.php(73): App\Core\Database->query()
#2 /www/wwwroot/filesgun.com/app/controllers/FileController.class.php(158): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads()
#3 [internal function]: App\Controllers\FileController->downloadHandler()
#4 /www/wwwroot/filesgun.com/app/helpers/RouteHelper.class.php(395): call_user_func_array()
#5 /www/wwwroot/filesgun.com/app/core/Framework.class.php(222): App\Helpers\RouteHelper::processRoutes()
#6 /www/wwwroot/filesgun.com/app/core/Framework.class.php(25): App\Core\Framework::dispatch()
#7 /www/wwwroot/filesgun.com/index.php(21): App\Core\Framework::run()
#8 {main}
Last Rendered Query:
UPDATE download_tracker SET date_finished=NOW(), status='cancelled' WHERE status='downloading' AND date_updated < DATE_SUB(NOW(), INTERVAL 15 second)
#0 App\Core\Database->notify(PDOException Object ([ * message] => SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction,[ Exception string] => PDOException: SQLSTATE[40001]: Serialization failure: 1213 Deadlock found when trying to get lock; try restarting transaction in /www/wwwroot/filesgun.com/app/core/Database.class.php:187 Stack trace: #0 /www/wwwroot/filesgun.com/app/core/Database.class.php(187): PDOStatement->execute() #1 /www/wwwroot/filesgun.com/app/helpers/DownloadTrackerHelper.class.php(73): App\Core\Database->query() #2 /www/wwwroot/filesgun.com/app/controllers/FileController.class.php(158): App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads() #3 [internal function]: App\Controllers\FileController->downloadHandler() #4 /www/wwwroot/filesgun.com/app/helpers/RouteHelper.class.php(395): call_user_func_array() #5 /www/wwwroot/filesgun.com/app/core/Framework.class.php(222): App\Helpers\RouteHelper::processRoutes() #6 /www/wwwroot/filesgun.com/app/core/Framework.class.php(25): App\Core\Framework::dispatch() #7 /www/wwwroot/filesgun.com/index.php(21): App\Core\Framework::run() #8 {main},[ * code] => 40001,[ * file] => /www/wwwroot/filesgun.com/app/core/Database.class.php,[ * line] => 187,[ Exception trace] => Array ([0] => Array ([file] => /www/wwwroot/filesgun.com/app/core/Database.class.php,[line] => 187,[function] => execute,[class] => PDOStatement,[type] => ->),[1] => Array ([file] => /www/wwwroot/filesgun.com/app/helpers/DownloadTrackerHelper.class.php,[line] => 73,[function] => query,[class] => App\Core\Database,[type] => ->),[2] => Array ([file] => /www/wwwroot/filesgun.com/app/controllers/FileController.class.php,[line] => 158,[function] => clearTimedOutDownloads,[class] => App\Helpers\DownloadTrackerHelper,[type] => ::),[3] => Array ([function] => downloadHandler,[class] => App\Controllers\FileController,[type] => ->),[4] => Array ([file] => /www/wwwroot/filesgun.com/app/helpers/RouteHelper.class.php,[line] => 395,[function] => call_user_func_array),[5] => Array ([file] => /www/wwwroot/filesgun.com/app/core/Framework.class.php,[line] => 222,[function] => processRoutes,[class] => App\Helpers\RouteHelper,[type] => ::),[6] => Array ([file] => /www/wwwroot/filesgun.com/app/core/Framework.class.php,[line] => 25,[function] => dispatch,[class] => App\Core\Framework,[type] => ::),[7] => Array ([file] => /www/wwwroot/filesgun.com/index.php,[line] => 21,[function] => run,[class] => App\Core\Framework,[type] => ::)),[ Exception previous] => ,[errorInfo] => Array ([0] => 40001,[1] => 1213,[2] => Deadlock found when trying to get lock; try restarting transaction))) called at [/www/wwwroot/filesgun.com/app/core/Database.class.php:191] #1 App\Core\Database->query(UPDATE download_tracker SET date_finished=NOW(), status='cancelled' WHERE status='downloading' AND date_updated < DATE_SUB(NOW(), INTERVAL 15 second)) called at [/www/wwwroot/filesgun.com/app/helpers/DownloadTrackerHelper.class.php:73] #2 App\Helpers\DownloadTrackerHelper::clearTimedOutDownloads() called at [/www/wwwroot/filesgun.com/app/controllers/FileController.class.php:158] #3 App\Controllers\FileController->downloadHandler(5M3) #4 call_user_func_array(Array ([0] => Themes\Spirit\Controllers\FileController Object (),[1] => downloadHandler), Array ([path] => 5M3)) called at [/www/wwwroot/filesgun.com/app/helpers/RouteHelper.class.php:395] #5 App\Helpers\RouteHelper::processRoutes() called at [/www/wwwroot/filesgun.com/app/core/Framework.class.php:222] #6 App\Core\Framework::dispatch() called at [/www/wwwroot/filesgun.com/app/core/Framework.class.php:25] #7 App\Core\Framework::run() called at [/www/wwwroot/filesgun.com/index.php:21]