[2019-01-09 02:42:30] Espo.ALERT: Rebuild database fault: PDOException: SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:699 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(699): PDO->query('ALTER TABLE `sc...') #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('ALTER TABLE `sc...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #13 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Auth.php(138): Slim\Middleware\MethodOverride->call() #14 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Slim.php(125): Espo\Core\Utils\Api\Auth->call() #15 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(93): Espo\Core\Utils\Api\Slim->run() #16 /var/www/vhosts/crm.velirs.com/httpdocs/api/v1/index.php(33): Espo\Core\Application->run() #17 {main} Next Doctrine\DBAL\DBALException: An exception occurred while executing 'ALTER TABLE `scheduled_job_log_record` ADD PRIMARY KEY (id)': SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(702): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'ALTER TABLE `sc...', Array) #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('ALTER TABLE `sc...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Me... [] [] [2019-01-09 02:42:30] Espo.ALERT: Rebuild database fault: PDOException: SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:699 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(699): PDO->query('CREATE INDEX ID...') #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('CREATE INDEX ID...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #13 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Auth.php(138): Slim\Middleware\MethodOverride->call() #14 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Slim.php(125): Espo\Core\Utils\Api\Auth->call() #15 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(93): Espo\Core\Utils\Api\Slim->run() #16 /var/www/vhosts/crm.velirs.com/httpdocs/api/v1/index.php(33): Espo\Core\Application->run() #17 {main} Next Doctrine\DBAL\DBALException: An exception occurred while executing 'CREATE INDEX IDX_SCHEDULED_JOB_ID ON `scheduled_job_log_record` (scheduled_job_id)': SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(702): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'CREATE INDEX ID...', Array) #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('CREATE INDEX ID...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/... [] [] [2019-01-09 02:42:30] Espo.ALERT: Rebuild database fault: PDOException: SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:699 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(699): PDO->query('CREATE INDEX ID...') #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('CREATE INDEX ID...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/MethodOverride.php(92): Slim\Middleware\Flash->call() #13 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Auth.php(138): Slim\Middleware\MethodOverride->call() #14 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Api/Slim.php(125): Espo\Core\Utils\Api\Auth->call() #15 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(93): Espo\Core\Utils\Api\Slim->run() #16 /var/www/vhosts/crm.velirs.com/httpdocs/api/v1/index.php(33): Espo\Core\Application->run() #17 {main} Next Doctrine\DBAL\DBALException: An exception occurred while executing 'CREATE INDEX IDX_TARGET ON `scheduled_job_log_record` (target_id, target_type)': SQLSTATE[HY000]: General error: 144 Table './apps_crm/scheduled_job_log_record' is marked as crashed and last (automatic?) repair failed in /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:91 Stack trace: #0 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(702): Doctrine\DBAL\DBALException::driverExceptionDuringQuery(Object(PDOException), 'CREATE INDEX ID...', Array) #1 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Utils/Database/Schema/Schema.php(196): Doctrine\DBAL\Connection->executeQuery('CREATE INDEX ID...') #2 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(95): Espo\Core\Utils\Database\Schema\Schema->rebuild(NULL) #3 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/DataManager.php(62): Espo\Core\DataManager->rebuildDatabase(NULL) #4 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Controllers/Admin.php(51): Espo\Core\DataManager->rebuild() #5 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(143): Espo\Controllers\Admin->postActionRebuild(Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #6 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/ControllerManager.php(159): Espo\Core\ControllerManager->processRequest(Object(Espo\Controllers\Admin), 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #7 /var/www/vhosts/crm.velirs.com/httpdocs/application/Espo/Core/Application.php(281): Espo\Core\ControllerManager->process('Admin', 'rebuild', Array, '', Object(Slim\Http\Request), Object(Slim\Http\Response)) #8 [internal function]: Espo\Core\Application->Espo\Core\{closure}() #9 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1210): call_user_func_array(Object(Closure), Array) #10 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Slim.php(1356): Slim\Slim->applyHook('slim.before.dis...') #11 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim/Slim/Middleware/Flash.php(85): Slim\Slim->call() #12 /var/www/vhosts/crm.velirs.com/httpdocs/vendor/slim/slim... [] [] [2019-01-09 02:42:30] Espo.ERROR: API [POST]:/Admin/rebuild, Params:Array ( ) , InputData: - Error while rebuilding database. See log file for details. [] [] [2019-01-09 02:42:30] Espo.ERROR: Display Error: Error while rebuilding database. See log file for details., Code: 500 URL: /api/v1/Admin/rebuild [] []