思考Sphinx Rake中止,searchd在重建或启动/停止ts时运行。索引工作正常 [英] Thinking Sphinx Rake aborted, searchd is running while rebuilding or start/stop ts. Index works fine

查看:421
本文介绍了思考Sphinx Rake中止,searchd在重建或启动/停止ts时运行。索引工作正常的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我调用 rake ts:rebuild RAILS_ENV = production 时,我得到以下结果:

When I invoke rake ts:rebuild RAILS_ENV=production, I get the following:

(in /var/www/abc.com/public/abc/releases/20101008073517)
** Erubis 2.6.6
Stopped search daemon (pid 22531).
Generating Configuration to /var/www/abc.com/public/abc/releases/20101008073517/config/production.sphinx.conf
Sphinx 1.10-beta (r2420)
Copyright (c) 2001-2010, Andrew Aksyonoff
Copyright (c) 2008-2010, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/var/www/abc.com/public/abc/releases/20101008073517/config/production.sphinx.conf'...
indexing index 'spot_core'...
collected 6 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 6 docs, 4622 bytes
total 0.016 sec, 278316 bytes/sec, 361.29 docs/sec
skipping non-plain index 'spot'...
indexing index 'trip_core'...
collected 3 docs, 0.0 MB
sorted 0.0 Mhits, 100.0% done
total 3 docs, 52 bytes
total 0.004 sec, 11326 bytes/sec, 653.45 docs/sec
skipping non-plain index 'trip'...
total 12 reads, 0.000 sec, 6.9 kb/call avg, 0.0 msec/call avg
total 24 writes, 0.000 sec, 7.8 kb/call avg, 0.0 msec/call avg
rake aborted!
searchd is already running.

(See full trace by running task with --trace)

每当我试着开始/停止,它总是说

Whenever I try to start/stop, it always says

rake aborted!
searchd is already running.

即使我手动停止搜索并再次运行,它仍然会说同样的话:

Even when I manually stop the searchd and run again, it still says the same:

searchd --config /path/to/app/current/config/production.sphinx.conf--stop


推荐答案

使用sudo命令管理停止搜索!!!然后重新运行重建,一切都很好。

Managed to stop searchd with the command sudo!!! Then re-run rebuild, everything is fine now.

sudo searchd --stop

这篇关于思考Sphinx Rake中止,searchd在重建或启动/停止ts时运行。索引工作正常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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