Thinking sphinx doesn't start - “Failed to start searchd daemon”

拟墨画扇 提交于 2019-12-03 14:08:49

I solved it. I had sphinx process in the background, so i just killed it:

$ ps -efa | grep sphinx
root     23823     1  0 14:12 ?        00:00:00 searchd --pidfile --config /vol/www/apps/ror_tutorial/releases/20120202111104/config/production.sphinx.conf
root     27069 20413  0 14:49 pts/1    00:00:00 grep sphinx
$ kill 23823 

Then i started sphinx:

$ rake ts:start RAILS_ENV=production
Started successfully (pid 27097).

It sounds like init has already started an instance of searchd bound to port 9312.

There are a few solutions:

  1. Kill the system instance of searchd: sudo service sphinxsearch stop.
  2. Modify config/sphinx.yml and tell Sphinx to use a different port in production. (config/thinking_sphinx.yml if you're using TS 3.x)
  3. Configure your server to not start searchd when the system boots up. On Ubuntu 14.04 you can do that by editing /etc/defaults/sphinxsearch and setting START=no.

Our server runs Ubuntu, and I installed Sphinx from the Debian package available on the Sphinx website.

In my case I checked this file: ../yourdirectory/log/searchd.log and it was written that: /usr/local/var/data/binlog.002: No such file or directory I only do this:

touch /usr/local/var/data/binlog.002

Done, works fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!