I try to start thinking sphinx on my server but it doesn\'t want to work.
I do:
$ rake thinking_sphinx:index && rake thinking_sphinx:start
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).
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.
It sounds like init has already started an instance of searchd bound to port 9312.
There are a few solutions:
sudo service sphinxsearch stop
.config/sphinx.yml
and tell Sphinx to use a different port in production. (config/thinking_sphinx.yml
if you're using TS 3.x)/etc/defaults/sphinxsearch
and setting START=no
.Our server runs Ubuntu, and I installed Sphinx from the Debian package available on the Sphinx website.