认为 Sphinx Rake 已中止,searchd 正在重建或启动/停止 ts 时运行。索引工作正常

发布于 2024-09-29 02:54:53 字数 1390 浏览 3 评论 0原文

当我调用 rake ts:rebuild RAILS_ENV=Production 时,我得到以下信息:

(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)

每当我尝试启动/停止时,它总是显示

rake aborted!
searchd is already running.

即使我手动停止 searchd 并再次运行,它仍然显示相同的内容:

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

和影子一齐双人舞 2024-10-06 02:54:53

设法用命令 sudo 停止 searchd!!!然后重新运行rebuild,现在一切都很好了。

sudo searchd --stop

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

sudo searchd --stop
花开柳相依 2024-10-06 02:54:53

您的任务可能会运行两次。

看看你的 Rakefile。您是否有该行:

require 'thinking_sphinx/tasks'

如果有,请将其删除。 Rails 3.x 和 Thinking Sphinx 2.x 不需要它。

检查这个:https://github.com/freelancing-god/thinking-sphinx/issues/207

Your task may be running twice.

Have a look in your Rakefile. Do you have the line:

require 'thinking_sphinx/tasks'

If so remove it. Rails 3.x with Thinking Sphinx 2.x does not need it.

Check this: https://github.com/freelancing-god/thinking-sphinx/issues/207

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文