本文介绍了部署后思考 Sphinx - ThinkingSphinx::SphinxError(搜索请求中的未知本地索引“user_core"):的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我检查了这个主题:Sphinx 错误:未知本地索引INDEX_NAME"在搜索请求中,但它已关闭,无法解决我的 rails 应用程序中的问题.

I check this topic: Sphinx error: unknown local index "INDEX_NAME" in search request , but it's closed and it's not resolve problem in my rails application.

我将 TS 更新到 3.0.2,并将其包含到 deploy.rb.我还更改了模型中的代码.现在它在开发中工作,一些示例在测试中工作,有些则没有.但成功部署后,我收到错误:

I update TS to 3.0.2, and include it to deploy.rb. I also change code in model. Now it works in development, and some examples work in test, and some not. But after successful deployment I get error:

ThinkingSphinx::SphinxError (unknown local index 'user_core' in search request):

我尝试重建、重启和其他事情,但它不起作用:(

I try rebuild, restart, and other things, but it doesn't work :(

有人可以帮我吗?

谢谢!

推荐答案

看起来已经有一个 Sphinx 守护进程在运行,Thinking Sphinx 没有停止(如果你仍然遇到同样的错误),所以我建议杀死那个流氓 searchd 进程(您应该能够通过 ps aux | grep searchd 找到它 - 如果权限正常,killall searchd 将停止该 Sphinx 进程).

It looks like there's already a Sphinx daemon running that Thinking Sphinx hasn't stopped (if you're still getting the same error) so I'd recommend killing that rogue searchd process (which you should be able to find via ps aux | grep searchd - and, if the permissions are fine, killall searchd will stop that Sphinx process).

这篇关于部署后思考 Sphinx - ThinkingSphinx::SphinxError(搜索请求中的未知本地索引“user_core"):的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-10 00:33