有没有办法停止magento索引器进程? [英] Is there a way to stop a magento indexer process?

查看:54
本文介绍了有没有办法停止magento索引器进程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了类似的主题,但似乎没有解决方案.有没有办法停止特定的magento索引器进程?

I've searched similar topics but no solution seems to work. Is there a way to stop a specific magento indexer process?

当我尝试从shell重新编制索引时,我得到了:

When I try to reindex from shell I get this:

php -f indexer.php reindex all
Stock Status Index process is working now. Please try run this process later.
Product Prices Index process is working now. Please try run this process later.
Catalog URL Rewrites Index process is working now. Please try run this process later.
Product Flat Data Index process is working now. Please try run this process later.
Category Flat Data Index process is working now. Please try run this process later.
Category Products Index process is working now. Please try run this process later.
Catalog Search Index Index process is working now. Please try run this process later.
Stock Status index was rebuilt successfully
Tag Aggregation Data Index process is working now. Please try run this process later.

当我尝试查看索引器状态时,我得到了:

When I try to see indexer status I get this:

Product Attributes:            Pending
Product Prices:                Pending
Catalog URL Rewrites:          Pending
Product Flat Data:             Pending
Category Flat Data:            Pending
Category Products:             Pending
Catalog Search Index:          Pending
Stock Status:                  Pending
Tag Aggregation Data:          Pending

如果我从管理员重新编制索引,则重新编制索引的过程不会引发任何错误.是否有指向此问题的某些文档的链接?

If I reindex from the admin, reindexing process throws no errors. Is there a link to some documentation on this matter?

谢谢, 拉杜

推荐答案

索引编制主要是在单个HTTP请求期间进行的(主要是我很确定它始终处于索引状态).如果该请求由于PHP错误而停止/超时/失败,则即使没有进行索引操作,索引器也会留下锁定文件.这些文件位于

Indexing mostly (mostly meaning I'm pretty sure it's always) happens during a single HTTP request. If that request stop/timeouts/fails because of a PHP error, the indexer leaves lock files lying around even though there's no indexing going on. These files are located in

/path/to/mage/var/locks/index_process*.lock

索引过程现在正在工作.请稍后尝试运行此过程

Index process is working now. Please try run this process later

异常是Magento告诉您的,它看到了这些锁定文件之一.如果您确定没有其他人尝试运行索引,则只需删除文件并重新开始索引即可.

exception is Magento telling you it sees one of these lock files. If you know for sure no one else is trying to run an index, just delete the files and restart your indexing.

这篇关于有没有办法停止magento索引器进程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆