我有一些不会运行的索引(产品属性、类别产品)和其他似乎在无休止地处理的索引,但有些确实运行并快速完成(类别平面数据)。我删除了 Var/locks 中的锁定文件,并删除了 catalog_product_flat_1 和 catalog_category_product_index,但索引仍然没有运行。尝试通过 SSH 重新索引所有内容时收到以下错误
产品属性索引进程未知错误:异常 'PDOException' 带有消息 'SQLSTATE[HY000]:一般错误:超过 1205 锁定等待超时;尝试在 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Statement/Pdo.php:228 中重新启动事务' 堆栈跟踪:
0 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Statement/Pdo.php(228): PDOStatement->execute(数组)
1 /home/sites/buzzcateringsupplies.com/public_html/lib/Varien/Db/Statement/Pdo/Mysql.php(110): Zend_Db_Statement_Pdo->_execute(数组)
2 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Statement.php(300): Varien_Db_Statement_Pdo_Mysql->_execute(数组)
3 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(数组)
4 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('INSERT INTO `ca...', Array)
5 /home/sites/buzzcateringsupplies.com/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('INSERT INTO `ca...', Array)
6 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/CatalogInventory/Model/Resource/Indexer/Stock/Default.php(212): Varien_Db_Adapter_Pdo_Mysql->query('INSERT INTO `ca... ')
7 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/CatalogInventory/Model/Resource/Indexer/Stock/Default.php(72):Mage_CatalogInventory_Model_Resource_Indexer_Stock_Default->_prepareIndexTable()
8 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/CatalogInventory/Model/Resource/Indexer/Stock.php(248):Mage_CatalogInventory_Model_Resource_Indexer_Stock_Default->reindexAll()
9 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/Index/Model/Indexer/Abstract.php(143): Mage_CatalogInventory_Model_Resource_Indexer_Stock->reindexAll()
10 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/Index/Model/Process.php(209): Mage_Index_Model_Indexer_Abstract->reindexAll()
11 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/Index/Model/Process.php(255): Mage_Index_Model_Process->reindexAll()
12 /home/sites/buzzcateringsupplies.com/public_html/app/code/core/Mage/Index/Model/Process.php(249): Mage_Index_Model_Process->reindexEverything()
13 /home/sites/buzzcateringsupplies.com/public_html/shell/indexer.php(158): Mage_Index_Model_Process->reindexEverything()
14 /home/sites/buzzcateringsupplies.com/public_html/shell/indexer.php(198): Mage_Shell_Compiler->run()
15 {主要}
下一个异常 'Zend_Db_Statement_Exception' 带有消息 'SQLSTATE[HY000]:一般错误:1205 超过锁定等待超时;尝试在 /home/sites/buzzcateringsupplies.com/public_html/lib/Zend/Db/Statement/Pdo.php:234 中重新启动事务' 堆栈跟踪: