【发布时间】:2013-01-17 06:07:55
【问题描述】:
当我从 Index Management 运行 Reindex 时,它会给出错误 “无法初始化索引器进程。”
所以根据下面的文章here http://jasonehmke.com/ecommerce/cannot-initialize-the-indexer-process-in-magento/
我跑了
php -f indexer.php reindexall
它给出了以下输出:
Product Prices index was rebuilt successfully
Catalog URL Rewrites index was rebuilt successfully
Product Flat Data index was rebuilt successfully
Category Flat Data index was rebuilt successfully
Category Products index was rebuilt successfully
Catalog Search Index index was rebuilt successfully
Stock Status index was rebuilt successfully
Tag Aggregation Data index was rebuilt successfully
Product Attributes index process unknown error:
exception 'PDOException' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '65-542-1-65' for key 'PRIMARY'' in /home/bizzosph/public_html/lib/Zend/Db/Statement/Pdo.php:228
Next exception 'Zend_Db_Statement_Exception' with message 'SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '65-542-1-65' for key 'PRIMARY'' in /home/bizzosph/public_html/lib/Zend/Db/Statement/Pdo.php:234
知道如何解决这个问题吗?它没有告诉我哪个表有重复条目。
谢谢
【问题讨论】:
-
其实我也遇到过类似的问题。我可以通过从
var/locks文件夹中删除所有.locks文件,然后删除(trunacate)表catalog_flat_product_1中的所有行,最后再次运行索引器来修复它。
标签: mysql magento magento-1.7